Search Results for

    Show / Hide Table of Contents

    Class ToolEnvelope

    Inheritance
    object
    ToolEnvelope
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class ToolEnvelope

    Properties

    | Edit this page View Source

    CodeInterpreterTool

    For Assistants API. Only available when type is "code_interpreter".

    Declaration
    [JsonProperty("code_interpreter")]
    public CodeInterpreter CodeInterpreterTool { get; set; }
    Property Value
    Type Description
    CodeInterpreter
    | Edit this page View Source

    CustomTool

    Only available when type is "custom".

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

    FileSearchTool

    For Assistants API. Only available when type is "file_search".

    Declaration
    [JsonProperty("file_search")]
    public FileSearch FileSearchTool { get; set; }
    Property Value
    Type Description
    FileSearch
    | Edit this page View Source

    FunctionTool

    Only available when type is "function".

    Declaration
    [JsonProperty("function")]
    public Function FunctionTool { get; set; }
    Property Value
    Type Description
    Function
    | Edit this page View Source

    Type

    The type of the tool.

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

    Methods

    | Edit this page View Source

    CodeInterpreter(CodeInterpreter)

    Declaration
    public static ToolEnvelope CodeInterpreter(CodeInterpreter codeInterpreter = null)
    Parameters
    Type Name Description
    CodeInterpreter codeInterpreter
    Returns
    Type Description
    ToolEnvelope
    | Edit this page View Source

    Custom(CustomTool)

    Declaration
    public static ToolEnvelope Custom(CustomTool custom)
    Parameters
    Type Name Description
    CustomTool custom
    Returns
    Type Description
    ToolEnvelope
    | Edit this page View Source

    FileSearch(FileSearch)

    Declaration
    public static ToolEnvelope FileSearch(FileSearch fileSearch = null)
    Parameters
    Type Name Description
    FileSearch fileSearch
    Returns
    Type Description
    ToolEnvelope
    | Edit this page View Source

    Function(Function)

    Declaration
    public static ToolEnvelope Function(Function function)
    Parameters
    Type Name Description
    Function function
    Returns
    Type Description
    ToolEnvelope

    Extension Methods

    ToolEnvelopeExtensions.IsFunction(ToolEnvelope)
    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