TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ToolExecutionInfo

    Per-tool execution outcome reported to MapAgentOptions.onToolExecute.

    type ToolExecutionInfo = {
        durationMs: number;
        errorMessage?: string;
        isError: boolean;
        toolName: string;
    }
    Index

    Properties

    durationMs: number

    Wall-clock duration of execute, in milliseconds (includes any network/IO).

    errorMessage?: string

    Error message when isError is true (the thrown message or the returned error).

    isError: boolean

    True if the tool threw or returned the standardized { error: string } shape.

    toolName: string

    Registered tool name (the defaultTools key).