Class ToolCallAggregateMessage
An aggregate message that contains a tool call message and a tool call result message. This message type is used by FunctionCallMiddleware to return both ToolCallMessage and ToolCallResultMessage.
public class ToolCallAggregateMessage : AggregateMessage<ToolCallMessage, ToolCallResultMessage>, ICanGetTextContent, ICanGetToolCalls, IMessage
- Inheritance
-
ToolCallAggregateMessage
- Implements
- Inherited Members
- Extension Methods
Constructors
ToolCallAggregateMessage(ToolCallMessage, ToolCallResultMessage, string?)
public ToolCallAggregateMessage(ToolCallMessage message1, ToolCallResultMessage message2, string? from = null)
Parameters
message1
ToolCallMessagemessage2
ToolCallResultMessagefrom
string
Methods
GetContent()
public string? GetContent()
Returns
GetToolCalls()
public IEnumerable<ToolCall> GetToolCalls()