mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-23 17:01:35 +00:00

Co-authored-by: Jack Gerrits <jack@jackgerrits.com> Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
12 lines
618 B
Markdown
12 lines
618 B
Markdown
## AssistantAgent
|
|
|
|
[`AssistantAgent`](../api/AutoGen.AssistantAgent.yml) is a built-in agent in `AutoGen` that acts as an AI assistant. It uses LLM to generate response to user input. It also supports function call if the underlying LLM model supports it (e.g. `gpt-3.5-turbo-0613`).
|
|
|
|
## Create an `AssistantAgent` using OpenAI model.
|
|
|
|
[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/CreateAnAgent.cs?name=code_snippet_1)]
|
|
|
|
## Create an `AssistantAgent` using Azure OpenAI model.
|
|
|
|
[!code-csharp[](../../samples/AgentChat/Autogen.Basic.Sample/CodeSnippet/CreateAnAgent.cs?name=code_snippet_2)]
|