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

Function create_simple_async_tool

src/tools/tool_executor.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 return create_tool(description, schema, std::move(execute_func));
238}
239
240Tool create_simple_async_tool(
241 const std::string& name,
242 const std::string& description,
243 const std::map<std::string, std::string>& parameters,
244 AsyncToolExecuteFunction execute_func) {
245 (void)name; // The ToolSet key is the canonical tool name.
246 JsonValue schema = create_object_schema(parameters);
247 return create_async_tool(description, schema, std::move(execute_func));
248}
249

Callers 2

createAsyncTimeToolMethod · 0.85
mainFunction · 0.85

Calls 2

create_object_schemaFunction · 0.85
create_async_toolFunction · 0.85

Tested by 1

createAsyncTimeToolMethod · 0.68