TomTom Maps for JavaScript
    Preparing search index...

    Type Alias SystemPromptSectionOverrides

    SystemPromptSectionOverrides: Partial<Record<SystemPromptSection, string>>

    Per-section body overrides. Each key replaces that section's body; omitted sections fall back to SYSTEM_PROMPT_SECTIONS. Accepted by composeSystemPrompt and MapAgentOptions.systemPrompt.

    To extend rather than replace a section, read its current default from the exported SYSTEM_PROMPT_SECTIONS map and override with a derived string — e.g. append a rule, prepend a note, or hand the default to a coding agent to rewrite under some criteria:

    composeSystemPrompt({
    // Keep the default behaviour, add one extra line.
    responseFormatting: `${SYSTEM_PROMPT_SECTIONS.responseFormatting}\n- Always answer in Spanish.`,
    });