Search Results for

    Show / Hide Table of Contents

    Class CustomToolOutput

    The output of a custom tool call from your code, being sent back to the model.

    Inheritance
    object
    ConversationItem
    ToolOutput
    CustomToolOutput
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    IToolCallOutput
    Inherited Members
    ToolOutput.Index
    ToolOutput.CallId
    ToolOutput.Status
    ConversationItem.Id
    ConversationItem.Type
    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 class CustomToolOutput : ToolOutput, IPrompt, IValidatable, IHasId<string>, IToolCallOutput

    Constructors

    | Edit this page View Source

    CustomToolOutput()

    Declaration
    public CustomToolOutput()

    Properties

    | Edit this page View Source

    Name

    The name of the custom tool being called.

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

    Output

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

    Methods

    | Edit this page View Source

    Error(CustomToolCall, string)

    Declaration
    public static CustomToolOutput Error(CustomToolCall call, string message)
    Parameters
    Type Name Description
    CustomToolCall call
    string message
    Returns
    Type Description
    CustomToolOutput
    | Edit this page View Source

    Success(CustomToolCall, object)

    Declaration
    public static CustomToolOutput Success(CustomToolCall call, object result)
    Parameters
    Type Name Description
    CustomToolCall call
    object result
    Returns
    Type Description
    CustomToolOutput

    Implements

    IPrompt
    IValidatable
    IHasId<TId>
    IToolCallOutput

    Extension Methods

    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    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