@tomtom-org/maps-sdk-plugin-agent-toolkit 0.2.11 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -119,6 +119,8 @@ The plugin ships a `DEFAULT_TOOLS` registry covering search, routing, traffic, r
119
119
  | `recallByod` | List BYOD entries, or retrieve a single entry's full `FeatureCollection` by id |
120
120
  | `updateByodDisplay` | Show, hide, or clear BYOD layers on the map |
121
121
 
122
+ > See the [Bring your own data](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/byod) guide for ingestion patterns, visibility lifecycle, and how BYOD entries feed into `analyseData` / `processData`.
123
+
122
124
  ### Unified data tools — scope-aware code generation
123
125
 
124
126
  | Tool | Description |
@@ -127,7 +129,7 @@ The plugin ships a `DEFAULT_TOOLS` registry covering search, routing, traffic, r
127
129
  | `processData` | Transform entries into new `places`, `placeConnections`, `geometries`, `byod`, or a `fitOnMap` camera move via dynamic JS |
128
130
  | `executeMaplibreCode` | Execute arbitrary MapLibre JS against the live `Map` instance — escape hatch for custom layers, animations, raster overlays |
129
131
 
130
- > See the [Code generation](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/tools#code-generation) section of the guide for the threat model — these tools have no sandbox.
132
+ > See [Code generation](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/code-generation) for the injected identifiers, output contracts, and threat model (these tools have no sandbox), and [Scope-aware data tools](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/scope-aware-data-tools) for how the per-turn classifier scope keeps the prompt small.
131
133
 
132
134
  ### Map display
133
135
 
@@ -184,6 +186,8 @@ The plugin ships a `DEFAULT_TOOLS` registry covering search, routing, traffic, r
184
186
 
185
187
  ## Customization
186
188
 
189
+ > See [Customizing tools](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/customizing-tools) for the full walkthrough — registry resolution, removing or replacing defaults, adding scopable custom tools, and starting from a blank slate.
190
+
187
191
  ### `createMapAgent` options
188
192
 
189
193
  ```typescript
@@ -329,6 +333,8 @@ type ToolEntry<S extends ToolState = ToolState> = {
329
333
 
330
334
  ## State management
331
335
 
336
+ > See the [State](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/state) guide for a per-slice deep dive, `entryMode` semantics (`multiple` vs `single`), inspecting state from your application, and adding custom slices.
337
+
332
338
  `ToolState` is organized by feature area. Each slice manages lazy-initialized map modules and an append-only history of results produced during the session. Built-in slices:
333
339
 
334
340
  - `PlacesState` — place / geometry entry history
@@ -360,7 +366,7 @@ agent.state.places; // PlacesState — append-only history of place entries
360
366
 
361
367
  ## Intent classifier
362
368
 
363
- The intent classifier is an optional per-turn optimization that selects which tools the LLM sees, reducing noise and improving accuracy.
369
+ The intent classifier is an optional per-turn optimization that selects which tools the LLM sees, reducing noise and improving accuracy. See the [How it works](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/how-it-works) guide for the full two-phase pipeline (classification → tool loop), prompt assembly, and observability hooks.
364
370
 
365
371
  ```typescript
366
372
  import { createMapAgent, createDefaultClassifier } from '@tomtom-org/maps-sdk-plugin-agent-toolkit';
@@ -563,6 +569,14 @@ export type * from '@tomtom-org/maps-sdk-plugin-agent-toolkit';
563
569
 
564
570
  ## References
565
571
 
572
+ - [Agent Toolkit guides](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/overview) — full documentation set:
573
+ - [How it works](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/how-it-works) — two-phase pipeline (classifier + tool loop), prompt assembly, observability
574
+ - [Tools](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/tools) — per-tool reference
575
+ - [State](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/state) — per-slice reference, entry modes, custom slices
576
+ - [Customizing tools](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/customizing-tools) — add, replace, remove, or start from a blank slate
577
+ - [Code generation](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/code-generation) — `analyseData` / `processData` / `executeMaplibreCode` (threat model included)
578
+ - [Scope-aware data tools](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/scope-aware-data-tools) — per-turn scope mechanism
579
+ - [Bring your own data](https://docs.tomtom.com/maps-sdk-js/guides/plugins/agent-toolkit/byod) — ingest customer GeoJSON layers
566
580
  - [AI SDK v6 documentation](https://ai-sdk.dev/)
567
581
  - [TomTom Maps SDK documentation](https://developer.tomtom.com/)
568
582
  - [Engineering guidelines](./ENGINEERING-GUIDELINES.md) — tool design standards, state management, system prompt structure