Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    TextChunk
    ToolCallArguments
    Implements
    ITextChunk
    Inherited Members
    TextChunk.Type
    TextChunk.Role
    TextChunk.Text
    TextChunk.Annotations
    TextChunk.FinishReason
    TextChunk.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class ToolCallArguments : TextChunk, ITextChunk

    Constructors

    | Edit this page View Source

    ToolCallArguments()

    Declaration
    public ToolCallArguments()
    | Edit this page View Source

    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.

    | Edit this page View Source

    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 Source

    ToolCallKey

    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 Source

    implicit operator string(ToolCallArguments)

    Declaration
    public static implicit operator string(ToolCallArguments delta)
    Parameters
    Type Name Description
    ToolCallArguments delta
    Returns
    Type Description
    string

    Implements

    ITextChunk

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation