Minimal map agent

The smallest conversational map agent: a map, a chat box and the Agent Toolkit, in plain TypeScript

View on GitHub
Agent toolkit plugin 0.19.0Public previewSDK 1.0.0

Type a request in the chat, and the map searches, pins and frames the answer while the reply streams in beside it.

  • createMapAgent binds a model to this map with the default tools and system prompt, so there is no tool or schema to write.
  • agent.stream runs a whole turn: it picks the tools, calls the TomTom services, draws the results and streams the reply.
  • What the agent draws stays in agent.state between turns, so a follow-up such as “only the closest ones” works on the same pins.

Related examples