Skip to main content

AgentTools

Abstract base class for agent toolkits. A toolkit groups a set of related Python methods that can be exposed to run_agent as a single tools=[...] entry. Subclass AgentTools and implement __tools__() to return the list of method names the agent may call. Each listed method must have type hints and a docstring — those become the tool's JSON schema and description.