Interface IMessage
The universal message interface for all message types in AutoGen.
Related PR: https://github.com/microsoft/autogen/pull/1676
Built-in message types
- Text
Message : plain text message. - Image
Message : image message. - Multi
Modal : message type for multimodal message. The current support message items are TextMessage Message and ImageMessage . - Tool
Call : message type for tool call. This message supports both single and parallel tool call.Message - Tool
Call : message type for tool call result.Result Message - Message: This type is used by previous version of AutoGen. And it's reserved for backward compatibility.
- AggregateMessage<TMessage1, TMessage2>: an aggregate message type that contains two message types.
This type is useful when you want to combine two message types into one unique message type. One example is when invoking a tool call and you want to return both Tool
Call and ToolMessage Call . One example of how this type is used in AutoGen is FunctionResult Message Call and its return message ToolMiddleware Call Aggregate Message
- Extension Methods