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

Function create_simple_tool

src/tools/tool_executor.cpp:231–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229// Helper functions implementation
230
231Tool create_simple_tool(const std::string& name,
232 const std::string& description,
233 const std::map<std::string, std::string>& parameters,
234 ToolExecuteFunction execute_func) {
235 JsonValue schema = create_object_schema(parameters);
236 return create_tool(description, schema, std::move(execute_func));
237}
238
239Tool create_simple_async_tool(
240 const std::string& name,

Callers 11

createWeatherToolMethod · 0.85
createErrorToolMethod · 0.85
TEST_PFunction · 0.85
test_openai_toolsFunction · 0.85
test_anthropic_toolsFunction · 0.85
test_multi_stepFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

create_object_schemaFunction · 0.85
create_toolFunction · 0.85

Tested by 9

createWeatherToolMethod · 0.68
createErrorToolMethod · 0.68
TEST_PFunction · 0.68
test_openai_toolsFunction · 0.68
test_anthropic_toolsFunction · 0.68
test_multi_stepFunction · 0.68