cogency.tools

Classes

BaseTool

Base class for all tools in the cogency framework.


BaseTool(self, name: str, description: str)
                    

CalculatorTool

Base class for all tools in the cogency framework.


CalculatorTool(self)
                    

FileManagerTool

File operations within a safe base directory.


FileManagerTool(self, base_dir: str = 'sandbox')
                    

MemorizeTool

Tool for storing content in agent memory.


MemorizeTool(self, memory: cogency.memory.base.BaseMemory)
                    

RecallTool

Tool for retrieving content from agent memory.


RecallTool(self, memory: cogency.memory.base.BaseMemory)
                    

TimezoneTool

Get current time for any timezone/city using pytz - reliable local computation.


TimezoneTool(self)
                    

WeatherTool

Get current weather for any city using wttr.in (no API key required).


WeatherTool(self)
                    

WebSearchTool

Base class for all tools in the cogency framework.


WebSearchTool(self)
                    

Functions

_discover_tools

Auto-discover only standalone tool classes.


_discover_tools()
                    

get_tool_by_name

Get tool class by name.


get_tool_by_name(name: str)
                    

list_available_tools

List all available tool names.


list_available_tools()