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)[source]ΒΆ

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)[source]ΒΆ

Add a tool to the manager.

Parameters:
  • tool_name (str)

  • tool (Any)

Return type:

ToolManager

get_tool(tool_name)[source]ΒΆ

Get a tool by name.

Parameters:

tool_name (str)

Return type:

Any

list_tools()[source]ΒΆ

List all available tools.

Return type:

list[str]