Search Results for

    Show / Hide Table of Contents

    Class ToolCall

    Inheritance
    object
    ConversationItem
    ToolCall
    ComputerUseCall
    CustomToolCall
    FunctionCall
    LocalShellCall
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    Inherited Members
    ConversationItem.Id
    ConversationItem.Type
    ConversationItem.Status
    ConversationItem.GetPromptText()
    ConversationItem.IsValid()
    ConversationItem.Validate()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public abstract class ToolCall : ConversationItem, IPrompt, IValidatable, IHasId<string>

    Constructors

    | Edit this page View Source

    ToolCall(string)

    Declaration
    protected ToolCall(string type)
    Parameters
    Type Name Description
    string type

    Properties

    | Edit this page View Source

    CallId

    The call ID, used to map this tool call output to a tool call.

    Declaration
    [JsonProperty("call_id")]
    public string CallId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Index

    Optional. Index of the tool call.

    Declaration
    [JsonProperty("index")]
    public int? Index { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Name

    The name of the custom tool being called. (if supported)

    Declaration
    [JsonProperty("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    FromKey(ToolCallKey, string)

    Declaration
    public static ToolCall FromKey(ToolCallKey key, string argumentsJson)
    Parameters
    Type Name Description
    ToolCallKey key
    string argumentsJson
    Returns
    Type Description
    ToolCall
    | Edit this page View Source

    GetToolArgs()

    Declaration
    public virtual string GetToolArgs()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetToolName()

    Declaration
    public string GetToolName()
    Returns
    Type Description
    string

    Implements

    IPrompt
    IValidatable
    IHasId<TId>

    Extension Methods

    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    ToolTypeUtility.GetToolType(ToolCall)
    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)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation