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}
238
239Tool create_simple_async_tool(
240 const std::string& name,
241 const std::string& description,
242 const std::map<std::string, std::string>& parameters,
243 AsyncToolExecuteFunction execute_func) {
244 JsonValue schema = create_object_schema(parameters);
245 return create_async_tool(description, schema, std::move(execute_func));
246}
247
248ToolSet create_tool_set(
249 const std::vector<std::pair<std::string, Tool>>& tool_list) {

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