| 237 | } |
| 238 | |
| 239 | Tool create_simple_async_tool( |
| 240 | const std::string& name, |
| 241 | const std::string& description, |
| 242 | const std::map<std::string, std::string>& parameters, |
| 243 | AsyncToolExecuteFunction execute_func) { |
| 244 | JsonValue schema = create_object_schema(parameters); |
| 245 | return create_async_tool(description, schema, std::move(execute_func)); |
| 246 | } |
| 247 | |
| 248 | ToolSet create_tool_set( |
| 249 | const std::vector<std::pair<std::string, Tool>>& tool_list) { |