Table of Contents

Class ToolCallAggregateMessage

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll

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 ToolCallMessage
message2 ToolCallResultMessage
from string

Methods

GetContent()

public string? GetContent()

Returns

string

GetToolCalls()

public IEnumerable<ToolCall> GetToolCalls()

Returns

IEnumerable<ToolCall>