Chatoyant - v0.2.1
    Preparing search index...

    Interface ToolOptions

    Options for tool execution.

    interface ToolOptions {
        maxIterations?: number;
        toolTimeout?: number;
        onToolError?: "respond" | "throw";
    }

    Hierarchy (View Summary)

    Index

    Properties

    maxIterations?: number

    Maximum tool call iterations before stopping.

    5
    
    toolTimeout?: number

    Timeout for each tool execution in milliseconds.

    10000
    
    onToolError?: "respond" | "throw"

    How to handle tool execution errors.

    • 'respond': Send error back to model (default)
    • 'throw': Throw immediately
    'respond'