use mofa_foundation::llm::function_tool;
use serde_json::json;
let tool = function_tool(
"get_weather",
"Get the current weather for a location",
json!({
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City name"
}
},
"required": ["location"]
})
);