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

    Type Alias ToolDefinition<S>

    ToolDefinition: ToolEntry<S> | ToolEntryBuilder<S>

    A registered tool definition: either a static ToolEntry or a ToolEntryBuilder that builds one from ToolBuildOptions at agent-creation time. Used wherever the tool registry, resolver, and setup pipeline accept either form interchangeably.

    Type Parameters

    • S extends ToolState = ToolState

      The ToolState shape this tool requires. Default: base ToolState.