Simple test tool
| 20 | |
| 21 | // Simple test tool |
| 22 | ai::JsonValue simple_test_tool(const ai::JsonValue& args, |
| 23 | const ai::ToolExecutionContext& context) { |
| 24 | std::string input = args["input"].get<std::string>(); |
| 25 | |
| 26 | std::cout << "🔧 Tool called with input: " << input << std::endl; |
| 27 | |
| 28 | return ai::JsonValue{{"result", "Tool executed successfully"}, |
| 29 | {"input_received", input}, |
| 30 | {"execution_id", context.tool_call_id}}; |
| 31 | } |
| 32 | |
| 33 | void test_openai_tools() { |
| 34 | std::cout << "\n=== Testing OpenAI Tool Integration ===\n"; |
nothing calls this directly
no outgoing calls
no test coverage detected