MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / get_weather

Function get_weather

examples/langfuse_tracing.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45ai::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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected