| 229 | // Helper functions implementation |
| 230 | |
| 231 | Tool 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 | |
| 239 | Tool create_simple_async_tool( |
| 240 | const std::string& name, |