Const
Builds a getCurrentLocation ToolEntry. Pass the result to createMapAgent's tools option to replace the built-in default, for example to send the exact position:
createMapAgent
tools
createMapAgent(map, { model, tools: { getCurrentLocation: createGetCurrentLocationTool({ fullPrecision: true }) },}); Copy
createMapAgent(map, { model, tools: { getCurrentLocation: createGetCurrentLocationTool({ fullPrecision: true }) },});
Optional
Builds a getCurrentLocation ToolEntry. Pass the result to
createMapAgent'stoolsoption to replace the built-in default, for example to send the exact position: