Installation
AgentScope requires Python 3.11+, and you can install it from PyPI or from source. It’s recommended to install AgentScope by using uv.From Source
This documentation targets2.0.12dev on main. Install from source to use this development version; the latest stable PyPI release is 2.0.11.
Install the development version
Verify Installation
To ensure AgentScope is installed successfully, check via executing the following code:Your First Agent
The snippet below builds the minimal agent: a DashScope credential, the matching chat model, an empty toolkit, and anAgent. The agent exposes two entry points — reply returns the final message, while reply_stream yields incremental events as the agent reasons and acts.
Extra Dependencies
To satisfy the requirements of different functionalities, AgentScope provides extra dependencies that can be installed based on your needs.- full: including extra dependencies for model APIs, tool functions and more.
- dev: development dependencies, including testing and documentation tools.
- For Windows users:
- For Mac and Linux users: