TomTom Maps for JavaScript
    Preparing search index...

    Variable createClarifyIntentToolConst

    createClarifyIntentTool: (options?: ClarifyIntentToolOptions) => ToolEntry

    Build a clarifyIntent ToolEntry, optionally overriding its description and examples for a specific domain. The schema and execute are fixed; only the classifier-facing metadata is customizable. Pass the result to createMapAgent's tools option to replace the built-in default:

    createMapAgent(map, {
    model,
    tools: {
    clarifyIntent: createClarifyIntentTool({
    description: 'Ask before running a site analysis — surface demand anchors, competitors, scoring weights…',
    examplePrompts: ['Profile this site for me', 'Rank these addresses'],
    }),
    },
    });

    Type Declaration