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
- TextMessage: plain text message.
- ImageMessage: image message.
- MultiModalMessage: message type for multimodal message. The current support message items are TextMessage and ImageMessage.
- ToolCallMessage: message type for tool call. This message supports both single and parallel tool call.
- ToolCallResultMessage: message type for tool call result.
- 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 ToolCallMessage and ToolCallResultMessage. One example of how this type is used in AutoGen is FunctionCallMiddleware and its return message ToolCallAggregateMessage
public interface IMessage
- Extension Methods
Properties
From
string? From { get; set; }