Skip to main content
AgentScope provides an out-of-the-box ReAct agent ReActAgent for developers. It supports the following features:
  • Basic Features
    • Hooks around reasoning and acting
    • Structured output
  • 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

The ReActAgent class exposes the following parameters in its constructor: Using DashScope API as an example, we create an agent as follows:

Additional Configuration

Execution Control

Timeout and Retry

Tool Execution Context

Pass business context (e.g., user info) to tools without exposing to LLM:

Plan Management

Enable PlanNotebook for complex multi-step tasks:

UserAgent

An agent that receives external input (e.g., command line, Web UI):