This is the documentation of version 1.0.0-rc.7. Go to the latest version, 1.0.0.
TomTom Maps for JavaScript
    Preparing search index...

    Variable getDefaultToolPromptsConst

    getDefaultToolPrompts: () => Record<ToolName, readonly string[]>

    Returns each default tool's examplePrompts keyed by tool name. Builders are materialised with empty ToolBuildOptions so the prompts reflect the tool's default (full-surface) shape. Tools without prompts map to [].

    It covers the full default registry, whatever an agent's datasets or tools options drop, so filter the result to the agent's resolved tools before surfacing these as starter suggestions in a chat UI.

    Type Declaration

      • (): Record<ToolName, readonly string[]>
      • Returns Record<ToolName, readonly string[]>