TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ClassificationResult

    Result returned by classifyUserIntent.

    type ClassificationResult = {
        activeToolNames: string[];
        timeMs: number;
        toolScopes?: Record<string, unknown>;
        usage: { inputTokens: number; outputTokens: number; totalTokens: number };
    }
    Index

    Properties

    activeToolNames: string[]

    Tool names selected by the classifier.

    timeMs: number

    Wall-clock time in ms for the classification step only (not the agent response).

    toolScopes?: Record<string, unknown>

    Optional per-tool scope. Keyed by tool name, value is the raw classifier output for that tool — validated against the tool's scopeSchema in prepareStep before any narrowing is applied. Tools without scopeSchema, or for which the classifier omitted a scope, retain their full description and inputSchema for the turn.

    usage: { inputTokens: number; outputTokens: number; totalTokens: number }

    Token usage for the classification LLM call.