Class ToolCallConfig
Configuration settings that control how an AI agent handles function/tool calls during interactions.
Inherited Members
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 SourceDefault
Declaration
public static ToolCallConfig Default { get; }
Property Value
| Type | Description |
|---|---|
| ToolCallConfig |
McpApprovalTimeoutSeconds
Timeout in seconds for MCP approval requests.
Declaration
public int McpApprovalTimeoutSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
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 |
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 |
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.