TomTom Maps for JavaScript
    Preparing search index...

    Variable BASE_SYSTEM_PROMPTConst

    BASE_SYSTEM_PROMPT: string

    The base system prompt that teaches the LLM how to use the agent toolkit tools.

    Equivalent to composeSystemPrompt() with no overrides. Export this constant so consumers can reference or extend it when providing a custom system prompt via MapAgentOptions.systemPrompt. To replace just one section, prefer composeSystemPrompt instead of rebuilding the whole string.

    import { createMapAgent, BASE_SYSTEM_PROMPT } from '@tomtom-org/maps-sdk-plugin-agent-toolkit';

    const agent = createMapAgent(map, {
    model: openai('gpt-4o'),
    systemPrompt: BASE_SYSTEM_PROMPT + '\n\nAlways respond in Spanish.'
    });