Search Results for

    Show / Hide Table of Contents

    Class ToolCallConfig

    Configuration settings that control how an AI agent handles function/tool calls during interactions.

    Inheritance
    object
    ToolCallConfig
    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 ToolCallConfig
    Remarks

    Tool calls allow LLMs to invoke external functions, APIs, or tools to complete tasks beyond text generation. This class defines policies for managing tool execution, timeouts, and approval workflows.

    Properties

    | Edit this page View Source

    Default

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

    McpApprovalTimeoutSeconds

    Timeout in seconds for MCP approval requests.

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

    SubmitToolOutputTimeoutSeconds

    Timeout (in seconds) used when waiting for tool outputs to be submitted under the SubmitToolOutput policy.

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

    UnhandledToolCallBehaviour

    Policy describing how to handle tool calls that do not have any registered executor.

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

    WaitForToolCallsCompletion

    Indicates whether this agent should wait for tool calls to complete before finalizing the response.

    Declaration
    public bool WaitForToolCallsCompletion { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    If agent has registered tool call executors, the agent response may only contain tool calls without a final response message.

    • When this property is true, the agent will wait until all tool calls are handled and tool outputs are submitted, then generate a final response message that includes the tool outputs.

    • If false, the agent will return the response message immediately after generating tool calls, and the client is responsible for handling tool calls and submitting tool outputs separately.

      Currently, this property is always true.

    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