List Available Tools • AI Agent SDK
list_available_tools: List only currently available tools (those that pass availability checks).
list_available_tools
Method
</div>
This is a method of the ToolRegistry class in the registry module.
List only currently available tools (those that pass availability checks).
Uses TTL cache to avoid expensive availability checks on every call.
Signature
def list_available_tools(context: Optional[Dict[str, Any]], ttl_seconds: Optional[float]) -> List[Union[BaseTool, Callable]]Parameters
ParamField
OptionalOptional context for availability checks (unused currently)
ParamField
Optional[float]Cache TTL override (default: 30.0 seconds)
Returns
ResponseField
List[Union[BaseTool, Callable]]List of available tools (both BaseTool instances and callables)
Uses
time.timecheck_availabilitylogging.debuglogging.warning
Used By
Source
View on GitHubpraisonaiagents/tools/registry.py at line 349