Skip to main content

Tools

cascadeflow provides a tool calling framework for agent loops. Define tools, execute them, and track tool call budgets.

ToolConfig

Define a tool with its schema and handler function.

ToolExecutor

Executes tool calls and returns results.

@tool Decorator

Define tools using a decorator for cleaner syntax.

Tool Call Limits

Use max_tool_calls in cascadeflow.run() to cap tool usage:
When the cap is reached, cascadeflow issues a deny_tool action — the agent continues with what it has.

ToolResult

Returned by ToolExecutor.execute().