Migration Guide
Instead of usingReActAgent, migrate to workflow-based agents:
Before (Deprecated)
After (Recommended)
Legacy Documentation
ReActAgent
Reasoning and Acting agent that uses tools to solve problems.Constructor Options
LLM
Language model (defaults to Settings.llm)
BaseTool[]
required
Array of tools the agent can use
boolean
default:false
Whether to log reasoning steps
number
default:10
Maximum reasoning iterations
Methods
method
Chat with the agent
method
Reset agent memory
Why Migrate?
- More Flexible: Workflows provide fine-grained control over agent behavior
- Better Streaming: Built-in support for streaming events
- Composable: Easily combine multiple workflows
- State Management: Explicit state handling with Context
- Active Development: Workflows are actively maintained