Define the system prompt
Create tools
getUserLocation
tool does exactly that:schema
property as a JSON schema object. Keep in mind that JSON schemas won’t be validated at runtime.Example: Using JSON schema for tool input
Configure your model
Define response format
Add memory
Bring it all together