AutoGen.OpenAI Overview
AutoGen.OpenAI provides the following agents over openai models:
- OpenAIChatAgent: A slim wrapper agent over
OpenAIClient. This agent only supportIMessage<ChatRequestMessage>message type. To support more message types like TextMessage, register the agent with OpenAIChatRequestMessageConnector. - @AutoGen.OpenAI.GPTAgent: An agent that build on top of OpenAIChatAgent with more message types support like TextMessage, ImageMessage, MultiModalMessage and function call support. Essentially, it is equivalent to OpenAIChatAgent with FunctionCallMiddleware and OpenAIChatRequestMessageConnector registered.
Get start with AutoGen.OpenAI
To get start with AutoGen.OpenAI, firstly, follow the installation guide to make sure you add the AutoGen feed correctly. Then add AutoGen.OpenAI package to your project file.
<ItemGroup>
<PackageReference Include="AutoGen.OpenAI" Version="AUTOGEN_VERSION" />
</ItemGroup>