AgentScope 2.0 is a breaking release. The notes below summarize the differences against 1.0, grouped by module.Documentation Index
Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
Use this file to discover all available pages before exploring further.
Agent
- Refactor
ReActAgentinto a new unifiedAgentclass implementation. - Replace the
__call__method in 1.0 with thereply_streamandreplypublic methods. - Support yielding agent events from
reply_streamfor richer observability and control. - Support permission checks and human-in-the-loop confirmations through the event stream.
- Support offloading the compressed context and oversized tool results via a new
Offloaderinterface. - Deprecate the hook mechanism and replace it with a new agent middleware system.
- Deprecate the
state_dictandload_state_dictmethods, moving towards explicit state management through the newAgentStatetype. - Deprecate the
printinterface of the agent class, turning the agent into a pure producer. - Deprecate the OpenTelemetry integration within the agent class and leave it to a new middleware implementation.
Event New
- Add event system for better frontend integration and human-in-the-loop support.
Message
Content blocks refactor:- Refactor all content blocks by inheriting from the Pydantic
BaseModelfor better validation, serialization, and extensibility. - Refactor
ImageBlock,AudioBlock,VideoBlockinto a unifiedDataBlockwith amedia_typefield for extensibility. - Add
HintBlockfor agent guidance and intermediate reasoning. - Rename
ToolUseBlocktoToolCallBlock. - Add
stateandsuggested_rulesfields toToolCallBlockfor richer tool-call lifecycle modeling. - Add
statefield toToolResultBlockfor richer tool-call lifecycle modeling. - Add
idfield for all blocks for better traceability and referencing.
Msg class refactor:
- Refactor
Msgto inherit fromBaseModeland enforce content validation. - Add
created_at,finished_at, andusagefields to theMsgclass for better observability and accounting. - Add
append_eventmethod toMsgfor yielding events from the agent’s reply stream. - Add factory methods
UserMsg,AssistantMsg, andSystemMsgto create messages with the appropriate role. - Add
contentfield constraints with the specifiedroletypes.
Permission New
- Add a new permission system for gating tool execution, human-in-the-loop confirmation, and overall agent autonomy control.
Tool
- Add
ToolBaseabstraction for all tools. - Refactor built-in tools:
- Add
Bash,Edit,Glob,Grep,Read, andWritewith permission control. - Add
TaskCreate,TaskGet,TaskList, andTaskUpdatefor task management.
- Add
Toolkit refactor:
- Support tools, skills, MCPs, and tool groups as first-class citizens in the
Toolkitabstraction. - Add
ToolGroupfor on-demand activation, with the reservedbasicgroup always active. - Add the
ResetToolsmeta-tool for the agent to switch tool groups at runtime. - Add
MCPToolandFunctionTooladapters for uniform tool registration.
MCP
- Refactor MCP implementation into a single
MCPClientclass for a unified client surface. - Add
StdioMCPConfigandHttpMCPConfigdeclarative configuration types for typed MCP setup.
Skill New
- Add skill loader abstraction to support in-time skill loading from the filesystem/sandbox/web.
- Add
LocalSkillLoaderclass to support directory-based skill loading and monitoring. - Support packaging skills into
ToolGroups for on-demand activation and better organization.
Workspace New
- Add the workspace abstraction supplying tools, MCPs, skills, and context offloading through one unified interface.
- Add
LocalWorkspace,DockerWorkspace, andE2BWorkspaceimplementations sharing the same agent-facing API for swappable execution backends. - Add the
Offloaderprotocol consumed byAgentfor context compression and oversized tool-result handling. - Add
LocalWorkspaceManager,DockerWorkspaceManager, andE2BWorkspaceManagerwith agent-level isolation for multi-tenant services. - Add an in-workspace MCP gateway so host-side agents can reach MCP servers running inside containers and sandboxes.
Model
- Decouple credential management from the model classes and centralize it in a new
Credentialmodule. - Support credential-aware model listing and retrieval.
- Support Kimi, Moonshot, DeepSeek, XAI, and OpenAI Response API.
- Integrate formatter into the chat model abstraction and support default formatters for different model providers.
- Add the
ModelCardschema describing model identity, capabilities, and parameter overrides. - Add class method
list_modelsfor frontend model listing and selection. - Deprecate the
Trinitymodel wrapper.
Middleware New
- Refactor the hook mechanism into a more general agent middleware system.
- Add
TracingMiddlewareas the new entry point for OpenTelemetry tracing, replacing the in-agent integration.
Agent Service New
- Add a new FastAPI-based agent service and sandbox support in the
appmodule. - Add the
create_appFastAPI factory exposing agent, chat, model, credential, session, schedule, workspace, and background-task routers. - Add lifespan-scoped
SessionManager,SchedulerManager,BackgroundTaskManager, and workspace managers for multi-tenant resource allocation. - Add
AGUIProtocolMiddlewarefor streaming andToolOffloadMiddlewarefor oversized payloads. - Add Redis-backed storage.
Memory
- Deprecate the memory module in 2.0 due to its tight coupling with agent logic.
RAG & Long-Term Memory
- Unify RAG and long-term memory into one module.
- Migration from 1.0 to 2.0 is in progress; the module — knowledge bases, document readers, and stores — will return on top of the 2.0 architecture in upcoming releases.