Class ToolCallArguments
Represents tool call arguments as a specialized text chunk. When an LLM decides to invoke a tool/function, the arguments are streamed as JSON text through this chunk type.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class ToolCallArguments : TextChunk, ITextChunk
Constructors
| Edit this page View SourceToolCallArguments()
Declaration
public ToolCallArguments()
ToolCallArguments(ToolCallKey, string)
Creates tool call arguments with a pre-constructed key and JSON payload.
Declaration
public ToolCallArguments(ToolCallKey toolCallKey, string argsJson)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolCallKey | toolCallKey | The unique identifier for this tool call. |
| string | argsJson | The JSON-encoded arguments being passed to the tool. |
ToolCallArguments(ToolType, string, string, string)
Creates tool call arguments by constructing the key from individual components.
Declaration
public ToolCallArguments(ToolType type, string callId, string toolName, string argsJson)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolType | type | The type of tool being called (e.g., Function, Custom). |
| string | callId | The unique call identifier for this invocation. |
| string | toolName | The name of the tool/function being invoked. |
| string | argsJson | The JSON-encoded arguments being passed to the tool. |
Properties
| Edit this page View SourceToolCallKey
The unique identifier for this tool call, including the tool type, call ID, and function name.
Declaration
public ToolCallKey ToolCallKey { get; set; }
Property Value
| Type | Description |
|---|---|
| ToolCallKey |
Operators
| Edit this page View Sourceimplicit operator string(ToolCallArguments)
Declaration
public static implicit operator string(ToolCallArguments delta)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolCallArguments | delta |
Returns
| Type | Description |
|---|---|
| string |