ReActAgent for developers.
It supports the following features:
- Basic Features
- Hooks around
reasoningandacting - Structured output
- Hooks around
- Realtime Steering
- User interruption
- Custom interrupt handling
- Tools
- Sync/async tool functions
- Streaming tool responses
- Parallel tool calls
- MCP server integration
- Memory
- Agent-controlled long-term memory
- Static long-term memory management
Creating ReActAgent
TheReActAgent class exposes the following parameters in its constructor:
Using DashScope API as an example, we create an agent as follows: