haive.core.graph.tool_manager¶

Tool manager wrapper for dynamic tool management.

Classes¶

ToolManager

Wrapper for the core ToolManager with simplified interface.

Module Contents¶

class haive.core.graph.tool_manager.ToolManager(name='tool_manager', **kwargs)¶

Bases: pydantic.BaseModel

Wrapper for the core ToolManager with simplified interface.

This class provides a simplified interface for managing tools while maintaining compatibility with the existing ToolManager infrastructure.

Initialize a new tool manager.

Parameters:

name (str)

add_tool(tool_name, tool)¶

Add a tool to the manager.

Parameters:
  • tool_name (str)

  • tool (Any)

Return type:

ToolManager

get_tool(tool_name)¶

Get a tool by name.

Parameters:

tool_name (str)

Return type:

Any

list_tools()¶

List all available tools.

Return type:

list[str]