Namespace AutoGen.OpenAI
Classes
- OpenAIChatAgent
OpenAI client agent. This agent is a thin wrapper around OpenAI.OpenAIClient to provide a simple interface for chat completions.
OpenAIChatAgent supports the following message types:
- MessageEnvelope<T> where T is OpenAI.Chat.ChatMessage: chat message.
OpenAIChatAgent returns the following message types:
- MessageEnvelope<T> where T is OpenAI.Chat.ChatCompletion: chat response message. MessageEnvelope<T> where T is OpenAI.Chat.StreamingChatCompletionUpdate: streaming chat completions update.
- OpenAIChatRequestMessageConnector
This middleware converts the incoming IMessage to IMessage<T> where T is OpenAI.Chat.ChatMessage before sending to agent. And converts the output OpenAI.Chat.ChatCompletion to IMessage after receiving from agent.
Supported IMessage are
- IMessage<T> where T is OpenAI.Chat.ChatMessage
- AggregateMessage<TMessage1, TMessage2> where TMessage1 is ToolCallMessage and TMessage2 is ToolCallResultMessage