AgentScope v2 is a production-ready, high-performance multi-agent framework designed to leverage the reasoning and tool-calling capabilities of modern Large Language Models (LLMs). Unlike frameworks that rely on rigid prompt templates, AgentScope focuses on flexible abstractions that allow agents to operate autonomously while providing developers with robust control through a two-layer architecture README.md64-70
The current version of the framework is 2.0.6 src/agentscope/_version.py4 For a quick setup, see Getting Started & Installation.
AgentScope is structured into two primary layers: the SDK Layer for local development and agent logic, and the Agent Service Layer for production deployment and multi-agent orchestration README.md124-142
The SDK provides the building blocks for creating individual agents. It revolves around the Agent class and the ReAct (Reasoning-Acting) loop, which handles structured outputs, real-time interruptions, and tool execution README.md128
RAGMiddleware, TTSMiddleware, AgenticMemoryMiddleware) that wraps agent actions to handle context compression, memory, and tracing README.md134 examples/console/main.py23Toolkit, supporting Python functions, MCP (Model Context Protocol), and specialized skills README.md129The Service layer facilitates scaling agents into multi-user, multi-session applications. It utilizes a FastAPI-based backend to manage agent lifecycles, persistence, and communication README.md77-80
AgentScope Architecture Overview
Sources: README.md124-142 src/agentscope/console/_console.py95-131 examples/console/main.py55-84
AgentScope is built on several core principles to ensure maintainability and performance:
_ to distinguish them from the public API, with exposure controlled through __init__.py src/agentscope/__init__.py5-10 .github/copilot-instructions.md27-30ReMe long-term memory or AgenticMemoryMiddleware README.md83-84 examples/console/main.py75-79AgentEvent objects, which are rendered by components like ConsoleRenderer or the Web UI src/agentscope/console/_renderer.py6-15 tests/console_renderer_test.py9-27Bridging NL and Code Entities
Sources: .github/copilot-instructions.md10-30 README.md77-84 src/agentscope/console/__init__.py1-20 tests/console_renderer_test.py9-27
This wiki is organized to take you from basic setup to deep architectural dives:
Agent class, message system, and middleware hooks.Sources: README.md124-150 src/agentscope/_version.py4 .github/copilot-instructions.md1-97