| 237 | return create_tool(description, schema, std::move(execute_func)); |
| 238 | } |
| 239 | |
| 240 | Tool create_simple_async_tool( |
| 241 | const std::string& name, |
| 242 | const std::string& description, |
| 243 | const std::map<std::string, std::string>& parameters, |
| 244 | AsyncToolExecuteFunction execute_func) { |
| 245 | (void)name; // The ToolSet key is the canonical tool name. |
| 246 | JsonValue schema = create_object_schema(parameters); |
| 247 | return create_async_tool(description, schema, std::move(execute_func)); |
| 248 | } |
| 249 |