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

Method validate_tool_call

src/tools/tool_executor.cpp:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123bool ToolExecutor::validate_tool_call(const ToolCall& tool_call,
124 const Tool& tool) {
125 // Basic validation - check if the arguments match the expected schema
126 return validate_json_schema(tool_call.arguments, tool.parameters_schema);
127}
128
129bool ToolExecutor::tool_exists(const std::string& tool_name,
130 const ToolSet& tools) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected