Search Results for

    Show / Hide Table of Contents

    Struct ToolOutputEvent

    Event raised when a tool produces output.

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

    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

    ToolName

    Gets the name of the tool that produced the output.

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

    ToolOutput

    Gets the tool output data.

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

    Type

    Gets the type of output event.

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

    Methods

    | Edit this page View Source

    CreateError(string, string)

    Creates an error tool output event.

    Declaration
    public static ToolOutputEvent CreateError(string responseId, string toolName)
    Parameters
    Type Name Description
    string responseId
    string toolName

    The name of the tool that produced the error.

    Returns
    Type Description
    ToolOutputEvent

    A new ToolOutputEvent instance.

    | Edit this page View Source

    CreateResult(string, string, ToolOutput)

    Creates a result tool output event.

    Declaration
    public static ToolOutputEvent CreateResult(string responseId, string toolName, ToolOutput toolOutput)
    Parameters
    Type Name Description
    string responseId
    string toolName

    The name of the tool.

    ToolOutput toolOutput

    The tool output data.

    Returns
    Type Description
    ToolOutputEvent

    A new ToolOutputEvent instance.

    | Edit this page View Source

    CreateSubmitting(string, string, ToolOutput)

    Creates a submitting tool output event.

    Declaration
    public static ToolOutputEvent CreateSubmitting(string responseId, string toolName, ToolOutput toolOutput)
    Parameters
    Type Name Description
    string responseId
    string toolName

    The name of the tool.

    ToolOutput toolOutput

    The tool output data.

    Returns
    Type Description
    ToolOutputEvent

    A new ToolOutputEvent instance.

    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