Search Results for

    Show / Hide Table of Contents

    Class ToolController

    Inheritance
    object
    ToolController
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Agents
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class ToolController : IDisposable

    Methods

    | Edit this page View Source

    Dispose()

    Declaration
    public void Dispose()
    | Edit this page View Source

    GetTools()

    Declaration
    public Tool[] GetTools()
    Returns
    Type Description
    Tool[]
    | Edit this page View Source

    RegisterTool(Tool)

    Declaration
    public void RegisterTool(Tool tool)
    Parameters
    Type Name Description
    Tool tool
    | Edit this page View Source

    RegisterToolDefinition(HostedToolDefinitionBase)

    Declaration
    public void RegisterToolDefinition(HostedToolDefinitionBase toolDef)
    Parameters
    Type Name Description
    HostedToolDefinitionBase toolDef
    | Edit this page View Source

    RegisterToolDefinitions(IEnumerable<HostedToolDefinitionBase>)

    Declaration
    public void RegisterToolDefinitions(IEnumerable<HostedToolDefinitionBase> toolDefs)
    Parameters
    Type Name Description
    IEnumerable<HostedToolDefinitionBase> toolDefs
    | Edit this page View Source

    RegisterToolExecutor<TCall, TOutput>(IToolCallExecutor<TCall, TOutput>)

    Declaration
    public void RegisterToolExecutor<TCall, TOutput>(IToolCallExecutor<TCall, TOutput> executor) where TCall : ToolCall where TOutput : ToolOutput
    Parameters
    Type Name Description
    IToolCallExecutor<TCall, TOutput> executor
    Type Parameters
    Name Description
    TCall
    TOutput
    | Edit this page View Source

    RegisterTools(IEnumerable<Tool>)

    Declaration
    public void RegisterTools(IEnumerable<Tool> tools)
    Parameters
    Type Name Description
    IEnumerable<Tool> tools
    | Edit this page View Source

    RouteToolsAsync(string, int, CancellationToken)

    Returns the top-K tools most relevant to the user message for semantic routing. If EnableSemanticRouting is disabled, returns the full tool list.

    Declaration
    public UniTask<List<Tool>> RouteToolsAsync(string userMessage, int topK = 12, CancellationToken ct = default)
    Parameters
    Type Name Description
    string userMessage
    int topK
    CancellationToken ct
    Returns
    Type Description
    UniTask<List<Tool>>
    | Edit this page View Source

    SetRouter(IToolRouter)

    Sets a new router, replacing the previous one. If a previous router exists, unsubscribes it from the OnToolsChanged event.

    Declaration
    public void SetRouter(IToolRouter router)
    Parameters
    Type Name Description
    IToolRouter router
    | Edit this page View Source

    SubmitUserToolOutput(string, ToolOutput)

    Allows user to manually submit a tool output. Used when UnhandledToolCallBehaviour is SubmitToolOutput. The output will be cached and included in the batch submission when the response is complete.

    Declaration
    public void SubmitUserToolOutput(string responseId, ToolOutput output)
    Parameters
    Type Name Description
    string responseId
    ToolOutput output
    | Edit this page View Source

    UnregisterTool(Tool)

    Declaration
    public void UnregisterTool(Tool tool)
    Parameters
    Type Name Description
    Tool tool
    | Edit this page View Source

    UnregisterToolDefinition(HostedToolDefinitionBase)

    Declaration
    public void UnregisterToolDefinition(HostedToolDefinitionBase toolDef)
    Parameters
    Type Name Description
    HostedToolDefinitionBase toolDef
    | Edit this page View Source

    UnregisterToolDefinitions(IEnumerable<HostedToolDefinitionBase>)

    Declaration
    public void UnregisterToolDefinitions(IEnumerable<HostedToolDefinitionBase> toolDefs)
    Parameters
    Type Name Description
    IEnumerable<HostedToolDefinitionBase> toolDefs
    | Edit this page View Source

    UnregisterToolExecutor<TCall, TOutput>(IToolCallExecutor<TCall, TOutput>)

    Declaration
    public bool UnregisterToolExecutor<TCall, TOutput>(IToolCallExecutor<TCall, TOutput> executor) where TCall : ToolCall where TOutput : ToolOutput
    Parameters
    Type Name Description
    IToolCallExecutor<TCall, TOutput> executor
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    TCall
    TOutput
    | Edit this page View Source

    UnregisterTools(IEnumerable<Tool>)

    Declaration
    public void UnregisterTools(IEnumerable<Tool> tools)
    Parameters
    Type Name Description
    IEnumerable<Tool> tools

    Implements

    IDisposable

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