@tomtom-org/maps-sdk-plugin-agent-toolkit 0.6.0 → 0.7.0
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 +1 -5
- package/dist/index.d.ts +17 -23
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -175,7 +175,6 @@ const agent = createMapAgent(map, {
|
|
|
175
175
|
| `getStandardMapStyles` | List available standard map style presets |
|
|
176
176
|
| `setMapStandardStyle` | Switch map style (light, dark, satellite, driving, etc.) |
|
|
177
177
|
| `setLanguage` | Change the language for map labels and API responses |
|
|
178
|
-
| `toggleTilesBaseMapLayerGroups` | Show/hide named layer groups (buildings3D, roadLabels, water, etc.) |
|
|
179
178
|
| `toggleTilesPOIs` | Show/hide built-in map POI icons with optional category filtering |
|
|
180
179
|
|
|
181
180
|
### MapLibre direct access
|
|
@@ -262,9 +261,6 @@ const agent = createMapAgent<MyState>(map, {
|
|
|
262
261
|
// Max tool-loop iterations (default: 10)
|
|
263
262
|
maxSteps: 15,
|
|
264
263
|
|
|
265
|
-
// Opt into experimental features (subject to change without notice)
|
|
266
|
-
featureFlags: { experimentalSearch: true },
|
|
267
|
-
|
|
268
264
|
// Provider-specific options forwarded to the AI SDK on every step
|
|
269
265
|
providerOptions: {
|
|
270
266
|
openai: { reasoningEffort: 'low', reasoningSummary: 'auto' },
|
|
@@ -514,7 +510,7 @@ const agent = createMapAgent(map, {
|
|
|
514
510
|
setLanguage: false,
|
|
515
511
|
setLayoutProperties: false,
|
|
516
512
|
setPaintProperties: false,
|
|
517
|
-
|
|
513
|
+
toggleTilesPOIs: false,
|
|
518
514
|
},
|
|
519
515
|
});
|
|
520
516
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryTheme,
|
|
1
|
+
import { BaseMapModule, CustomGeoJSONLayerSpec, CustomGeoJSONModule, GeometriesModule, GeometryTheme, POIsModule, PlaceConnectionDisplay, PlacesModule, PlanningWaypoint, RoutingModule, StylingModule, TomTomMap, TrafficAreaAnalyticsConfig, TrafficAreaAnalyticsModule, TrafficFlowModule, TrafficIncidentOverlayModule, TrafficIncidentsModule } from "@tomtom-org/maps-sdk/map";
|
|
2
2
|
import { BBox, CommonPlaceProps, GeographyType, POICategory, Place, Places, PolygonFeature, PolygonFeatures, Route, Routes, TrafficAreaAnalytics, TrafficIncident, WaypointLike } from "@tomtom-org/maps-sdk/core";
|
|
3
3
|
import { ChartConfiguration } from "chart.js";
|
|
4
4
|
import { Map as Map$1 } from "maplibre-gl";
|
|
@@ -698,22 +698,20 @@ type BYODEntry = BaseEntry<FeatureCollection$1> & {
|
|
|
698
698
|
//#endregion
|
|
699
699
|
//#region src/state/base-map/state.d.ts
|
|
700
700
|
/**
|
|
701
|
-
* State for base map display: style, language, viewport
|
|
701
|
+
* State for base map display: style, language, viewport and layers.
|
|
702
702
|
*
|
|
703
703
|
* Provides direct access to the TomTomMap and MapLibre instances alongside
|
|
704
|
-
* lazy-initialized BaseMapModule and
|
|
704
|
+
* lazy-initialized BaseMapModule and StylingModule.
|
|
705
705
|
*
|
|
706
706
|
* @group Agent Toolkit
|
|
707
707
|
*/
|
|
708
708
|
declare class BaseMapState implements StateSlice {
|
|
709
709
|
readonly ttMap: TomTomMap;
|
|
710
710
|
private _baseMapModule?;
|
|
711
|
-
private _hillshadeModule?;
|
|
712
711
|
private _stylingModule?;
|
|
713
712
|
constructor(ttMap: TomTomMap);
|
|
714
713
|
get mapLibreMap(): Map$1;
|
|
715
714
|
getBaseMapModule(): Promise<BaseMapModule>;
|
|
716
|
-
getHillshadeModule(): Promise<HillshadeModule>;
|
|
717
715
|
getStylingModule(): Promise<StylingModule>;
|
|
718
716
|
reset(): void;
|
|
719
717
|
}
|
|
@@ -2866,12 +2864,16 @@ export declare const packSandboxArgs: (sandbox: SandboxInputs, libs: {
|
|
|
2866
2864
|
* sandboxed code. `Places` is a FeatureCollection of Point Features; only the
|
|
2867
2865
|
* `properties` shape (the TomTom-specific bit) is documented here.
|
|
2868
2866
|
*
|
|
2867
|
+
* @remarks
|
|
2868
|
+
* Takes {@link FeatureFlags} so a future flag can vary the doc; no flag
|
|
2869
|
+
* currently does, so every caller gets the same text.
|
|
2870
|
+
*
|
|
2869
2871
|
* @ignore
|
|
2870
2872
|
*/
|
|
2871
|
-
export declare const buildPlacesSchemaDoc: (
|
|
2873
|
+
export declare const buildPlacesSchemaDoc: (_flags: FeatureFlags) => string;
|
|
2872
2874
|
/**
|
|
2873
|
-
*
|
|
2874
|
-
*
|
|
2875
|
+
* Places schema doc — preserved as a named constant so non-flag-aware tools
|
|
2876
|
+
* keep working.
|
|
2875
2877
|
*
|
|
2876
2878
|
* @ignore
|
|
2877
2879
|
*/
|
|
@@ -3912,7 +3914,6 @@ export declare const DEFAULT_TOOLS: {
|
|
|
3912
3914
|
getStandardMapStyles: ToolDefinition;
|
|
3913
3915
|
setMapStandardStyle: ToolDefinition;
|
|
3914
3916
|
setLanguage: ToolDefinition;
|
|
3915
|
-
toggleTilesBaseMapLayerGroups: ToolDefinition;
|
|
3916
3917
|
toggleTilesPOIs: ToolDefinition;
|
|
3917
3918
|
describeMapStyling: ToolDefinition;
|
|
3918
3919
|
setMapStyling: ToolDefinition;
|
|
@@ -4115,7 +4116,7 @@ export type ToolState = {
|
|
|
4115
4116
|
mapPOIs: MapPOIsState;
|
|
4116
4117
|
/** Route calculation, waypoint management, and planning parameter state. */
|
|
4117
4118
|
routing: RoutingState;
|
|
4118
|
-
/** Base map display: style, language, viewport
|
|
4119
|
+
/** Base map display: style, language, viewport and layers. */
|
|
4119
4120
|
baseMap: BaseMapState;
|
|
4120
4121
|
/** Traffic tile overlays: flow tiles + incident overlay tiles. */
|
|
4121
4122
|
trafficTiles: TrafficTilesState;
|
|
@@ -4327,21 +4328,14 @@ export type Classifier = (context: ClassifierContext) => Promise<ClassificationR
|
|
|
4327
4328
|
*/
|
|
4328
4329
|
export type FeatureFlags = {
|
|
4329
4330
|
/**
|
|
4330
|
-
*
|
|
4331
|
-
* backend (and expose its richer input surface — `municipalities`,
|
|
4332
|
-
* multiple `boundingBoxes`, `placeTypes`, `areaId`, `areaTags`). When
|
|
4333
|
-
* `false`/unset, `discoverPlaces` uses the stable default search
|
|
4334
|
-
* service and a reduced input schema that matches what the default
|
|
4335
|
-
* service supports.
|
|
4336
|
-
*
|
|
4337
|
-
* **Internal experiment.** Not part of the public agent-toolkit
|
|
4338
|
-
* contract; subject to removal at any time.
|
|
4331
|
+
* No feature flags are currently defined.
|
|
4339
4332
|
*
|
|
4340
|
-
* @
|
|
4341
|
-
*
|
|
4342
|
-
*
|
|
4333
|
+
* @remarks
|
|
4334
|
+
* The bag is kept because the tool builders (`ToolEntryBuilder`,
|
|
4335
|
+
* `buildDiscoverPlacesSchema`, …) thread it through as their extension
|
|
4336
|
+
* point for schema and description variation. A future flag is added here.
|
|
4343
4337
|
*/
|
|
4344
|
-
|
|
4338
|
+
readonly [flag: string]: never;
|
|
4345
4339
|
};
|
|
4346
4340
|
/**
|
|
4347
4341
|
* Build-time options passed to a {@link ToolEntryBuilder}. Lets each tool
|