TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ToolEntryBuilder<S, Scope>

    ToolEntryBuilder: (options: ToolBuildOptions<Scope>) => ToolEntry<S, Scope>

    A builder that produces a ToolEntry from ToolBuildOptions. Use this when a tool's metadata, schema, or executor depends on options resolved at agent-creation time (e.g. feature flags) or per turn (classifier-emitted scope).

    Type Parameters

    • S extends ToolState = ToolState

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

    • Scope = unknown

      The per-tool scope shape, propagated to the produced ToolEntry so the scopeSchema and runtime scope stay in lockstep.

    Type Declaration