Full-Code · Orchestration Frameworksactive

AgentScope

Type: full-code  ·  Vendor: Alibaba ModelScope  ·  Language: Python  ·  License: Apache-2.0  ·  Status: active  ·  Status in practice: emerging

Links: homepage docs repo

Provide a production-ready agent framework with built-in ReAct agent, MsgHub for multi-agent message routing, MCP/A2A integration, real-time steering via hooks, structured output, and short/long-term memory.

Description. AgentScope is Alibaba ModelScope's Apache-2.0 Python framework billed as 'Build and run agents you can see, understand and trust.' It ships a ReActAgent out of the box (sync/async tools, streaming, hooks, structured output, configurable long-term memory), a Toolkit registry, MCP client transports (stdio / SSE / streamable HTTP), an MsgHub for multi-agent message routing, and OpenTelemetry-based observability for local, serverless, or Kubernetes deployment.

Agent loop shape. ReAct loop wrapped with hook points. A ReActAgent assembles formatted prompt + memory + registered tool schemas, the model emits reasoning plus tool calls or a final reply, tools are dispatched through a Toolkit (in-process functions or MCP-backed via stdio/HTTP/SSE clients), and results are appended to memory. Hooks fire pre/post each step, enabling interrupts and structured-output validation. Multi-agent topologies are expressed by chaining agents through an MsgHub that routes messages.

Primary use cases

  • ReAct-style single-agent assistants with tool use
  • multi-agent orchestration via MsgHub message routing
  • MCP-integrated agents over stdio / SSE / streamable HTTP
  • human-in-the-loop steering through real-time user interrupts
  • OTel-instrumented production deployment

Key concepts

  • ReActAgent react (docs)Out-of-the-box ReAct agent supporting sync/async tools, streaming responses, hooks, structured output, and configurable long-term memory.
  • Toolkit tool-use (docs)Registry that registers tool functions for an agent; tools can be backed by MCP clients.
  • MCP clients mcp (docs)HttpStatefulClient / StdIOStatefulClient / HttpStatelessClient transports; stateless clients create per-call sessions.
  • MsgHub orchestrator-workersMessage hub for flexible multi-agent orchestration and workflows.
  • Long-term memory modes cross-session-memoryagent_control / static_control / both — determine whether the agent self-manages memory or runtime auto-records.
  • OTel observabilityBuilt-in OpenTelemetry instrumentation for local, serverless, or Kubernetes deployment.

Patterns this full-code implements

Neighbourhood

Click any neighbour to follow the lineage. Scroll to zoom, drag to pan.