Search Results for

    Show / Hide Table of Contents

    Struct ToolCallEvent

    Event raised when a tool call is requested by the model. Wraps the ToolCall domain model for event propagation.

    Implements
    IEvent
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public readonly struct ToolCallEvent : IEvent

    Constructors

    | Edit this page View Source

    ToolCallEvent(string, ToolCall)

    Initializes a new instance of the ToolCallEvent struct .

    Declaration
    public ToolCallEvent(string responseId, ToolCall toolCall)
    Parameters
    Type Name Description
    string responseId

    Optional response ID for batch submission tracking.

    ToolCall toolCall

    The tool call that was requested.

    Properties

    | Edit this page View Source

    ResponseId

    Gets the response ID that this tool call belongs to. Used for batch submission of tool outputs.

    Declaration
    public string ResponseId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ToolCall

    Gets the tool call that was requested.

    Declaration
    public ToolCall ToolCall { get; }
    Property Value
    Type Description
    ToolCall
    | Edit this page View Source

    Type

    Gets the type of tool being called.

    Declaration
    public ToolType Type { get; }
    Property Value
    Type Description
    ToolType

    Methods

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Implements

    IEvent

    Extension Methods

    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.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation