Search Results for

    Show / Hide Table of Contents

    Class Tool

    Base class for all tools, includes type.

    Inheritance
    object
    Tool
    ClaudeTool
    CodeInterpreter
    ComputerUse
    CustomTool
    FileSearch
    Function
    GoogleCodeExecution
    GoogleSearch
    GoogleUrlContext
    ImageGenerationTool
    LocalShell
    Mcp
    PerplexityWebSearch
    WebSearch
    WebSearchPreview
    XSearch
    XWebSearch
    Inherited Members
    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
    [JsonConverter(typeof(ToolJsonConverter))]
    public abstract class Tool

    Properties

    | Edit this page View Source

    Type

    Required. The logical type of the tool. The serialized string is resolved by API settings (ApiPolicy.TryGetToolTypeString).

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

    Methods

    | Edit this page View Source

    TryGetToolName(out string)

    Declaration
    public bool TryGetToolName(out string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    bool

    Extension Methods

    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