Table of Contents

Class ToolCallMessage

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll
public class ToolCallMessage : ICanGetToolCalls, ICanGetTextContent, IMessage
Inheritance
ToolCallMessage
Implements
Inherited Members
Extension Methods

Constructors

ToolCallMessage(ToolCallMessageUpdate)

public ToolCallMessage(ToolCallMessageUpdate update)

Parameters

update ToolCallMessageUpdate

ToolCallMessage(IEnumerable<ToolCall>, string?)

public ToolCallMessage(IEnumerable<ToolCall> toolCalls, string? from = null)

Parameters

toolCalls IEnumerable<ToolCall>
from string

ToolCallMessage(string, string, string?)

public ToolCallMessage(string functionName, string functionArgs, string? from = null)

Parameters

functionName string
functionArgs string
from string

Properties

Content

Some LLMs might also include text content in a tool call response, like GPT. This field is used to store the text content in that case.

public string? Content { get; set; }

Property Value

string

From

public string? From { get; set; }

Property Value

string

ToolCalls

public IList<ToolCall> ToolCalls { get; set; }

Property Value

IList<ToolCall>

Methods

GetContent()

public string? GetContent()

Returns

string

GetToolCalls()

public IEnumerable<ToolCall> GetToolCalls()

Returns

IEnumerable<ToolCall>

ToString()

public override string ToString()

Returns

string

Update(ToolCallMessageUpdate)

public void Update(ToolCallMessageUpdate update)

Parameters

update ToolCallMessageUpdate