Registry for tools that agents can use.
More...
#include <tool_registry.h>
Registry for tools that agents can use.
The ToolRegistry provides a central place to register, retrieve, and manage tools that agents can use.
◆ getAllTools()
std::vector< std::shared_ptr< Tool > > agents::tools::ToolRegistry::getAllTools |
( |
| ) |
const |
Get all registered tools.
- Returns
- The tools
◆ getTool()
std::shared_ptr< Tool > agents::tools::ToolRegistry::getTool |
( |
const String & | name | ) |
const |
Get a tool by name.
- Parameters
-
- Returns
- The tool
◆ getToolSchemas()
JsonObject agents::tools::ToolRegistry::getToolSchemas |
( |
| ) |
const |
Get tool schemas as JSON.
- Returns
- The tool schemas
◆ global()
static ToolRegistry & agents::tools::ToolRegistry::global |
( |
| ) |
|
|
static |
Get the global tool registry.
- Returns
- The global tool registry
◆ hasTool()
bool agents::tools::ToolRegistry::hasTool |
( |
const String & | name | ) |
const |
Check if a tool is registered.
- Parameters
-
- Returns
- True if the tool is registered, false otherwise
◆ registerTool()
void agents::tools::ToolRegistry::registerTool |
( |
std::shared_ptr< Tool > | tool | ) |
|
Register a tool.
- Parameters
-
◆ removeTool()
void agents::tools::ToolRegistry::removeTool |
( |
const String & | name | ) |
|
Remove a tool.
- Parameters
-