Class ToolCallMessage
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
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
From
public string? From { get; set; }
Property Value
ToolCalls
public IList<ToolCall> ToolCalls { get; set; }
Property Value
Methods
GetContent()
public string? GetContent()
Returns
GetToolCalls()
public IEnumerable<ToolCall> GetToolCalls()
Returns
ToString()
public override string ToString()
Returns
Update(ToolCallMessageUpdate)
public void Update(ToolCallMessageUpdate update)
Parameters
update
ToolCallMessageUpdate