AgentScope
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.
Solution
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
Open the full interactive page →
Diagram, neighbourhood map, code examples, related patterns and full provenance.