TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ToolDefinition<S, Scope>

    ToolDefinition: ToolEntry<S, Scope> | ToolEntryBuilder<S, Scope>

    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.

    • Scope = any

      Optional per-tool scope shape (only relevant for builder form). Defaults to never for non-scopable tools.