TomTom Maps for JavaScript
    Preparing search index...

    Type Alias MapAgentInstance<CS>

    MapAgentInstance: ToolLoopAgent & { state: CS; destroy(): void }

    The return type of createMapAgent(). A real ToolLoopAgent instance with state access and cleanup.

    Type Parameters

    Type Declaration

    • Readonlystate: CS

      Live agent state (built-in + custom slices).

    • destroy: function
      • Tear down: resets all state slices that have a reset() method.

        Returns void