| 43 | } |
| 44 | |
| 45 | ai::JsonValue get_weather(const ai::JsonValue& args, |
| 46 | const ai::ToolExecutionContext&) { |
| 47 | auto loc = args.value("location", std::string{"unknown"}); |
| 48 | return ai::JsonValue{ |
| 49 | {"location", loc}, {"temperature_c", 21}, {"sky", "clear"}}; |
| 50 | } |
| 51 | |
| 52 | } // namespace |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected