Welcome to the AgentScope Sample Agents repository! π― This repository provides ready-to-use Python sample agents built on top of:
The examples cover a wide range of use cases β from lightweight command-line agents to full-stack deployable applications with both backend and frontend.
AgentScope is a multi-agent framework designed to provide a simple and efficient way to build LLM-powered agent applications. It offers abstractions for defining agents, integrating tools, managing conversations, and orchestrating multi-agent workflows.
AgentScope Runtime is a comprehensive runtime framework that addresses two key challenges in deploying and operating agents:
- Effective Agent Deployment β Scalable deployment and management of agents across environments.
- Sandboxed Tool Execution β Secure, isolated execution of tools and external actions.
It includes context management and secure sandboxing, and can be used with AgentScope or other agent frameworks.
- All samples are Python-based.
- Samples are organized by functional use case.
- Some samples use only AgentScope (pure Python agents).
- Others use both AgentScope and AgentScope Runtime to implement full-stack deployable applications with frontend + backend.
- Full-stack runtime versions have folder names ending with:
_fullstack_runtime
π Before running any example, check its
README.mdfor installation and execution instructions.
βββ browser_use/
β βββ agent_browser/ # Pure Python browser agent
β βββ browser_use_fullstack_runtime/ # Full-stack runtime version with frontend/backend
β
βββ deep_research/
β βββ agent_deep_research/ # Pure Python multi-agent research
β βββ qwen_langgraph_search_fullstack_runtime/ # Full-stack runtime-enabled research app
β
βββ games/
β βββ game_werewolves/ # Role-based social deduction game
β
βββ conversational_agents/
β βββ chatbot/ # Chatbot application
β βββ chatbot_fullstack_runtime/ # Runtime-powered chatbot with UI
β βββ multiagent_conversation/ # Multi-agent dialogue scenario
β βββ multiagent_debate/ # Agents engaging in debates
β
βββ evaluation/
β βββ ace_bench/ # Benchmarks and evaluation tools
β
βββ functionality/
β βββ long_term_memory_mem0/ # Long-term memory integration
β βββ mcp/ # Memory/Context Protocol demo
β βββ plan/ # Plan with ReAct Agent
β βββ rag/ # RAG in AgentScope
β βββ session_with_sqlite/ # Persistent conversation with SQLite
β βββ stream_printing_messages/ # Streaming and printing messages
β βββ structured_output/ # Structured output parsing and validation
β βββ multiagent_concurrent/ # Concurrent multi-agent task execution
β βββ meta_planner_agent/ # Planning agent with tool orchestration
β
βββ README.md| Category | Example Folder | Uses AgentScope | Use AgentScope Runtime | Description |
|---|---|---|---|---|
| Browser Use | browser_use/agent_browser | β | β | Command-line browser automation using AgentScope |
| browser_use/browser_use_fullstack_runtime | β | β | Full-stack browser automation with UI & sandbox | |
| Deep Research | deep_research/agent_deep_research | β | β | Multi-agent research pipeline |
| deep_research/qwen_langgraph_search_fullstack_runtime | β | β | Full-stack deep research app | |
| Games | games/game_werewolves | β | β | Multi-agent roleplay game |
| Conversational Apps | conversational_agents/chatbot_fullstack_runtime | β | β | Chatbot application with frontend/backend |
| conversational_agents/chatbot | β | β | ||
| conversational_agents/multiagent_conversation | β | β | Multi-agent dialogue scenario | |
| conversational_agents/multiagent_debate | β | β | Agents engaging in debates | |
| Evaluation | evaluation/ace_bench | β | β | Benchmarks with ACE Bench |
| Functionality Demos | functionality/long_term_memory_mem0 | β | β | Long-term memory with mem0 support |
| functionality/mcp | β | β | Memory/Context Protocol demo | |
| functionality/session_with_sqlite | β | β | Persistent context with SQLite | |
| functionality/structured_output | β | β | Structured data extraction and validation | |
| functionality/multiagent_concurrent | β | β | Concurrent task execution by multiple agents | |
| functionality/meta_planner_agent | β | β | Planning agent with tool orchestration | |
| functionality/plan | β | β | Task planning with ReAct agent | |
| functionality/rag | β | β | Retrieval-Augmented Generation (RAG) integration | |
| functionality/stream_printing_messages | β | β | Real-time message streaming and printing |
If you:
- Need installation help
- Encounter issues
- Want to understand how a sample works
Please:
- Read the sample-specific
README.md. - File a GitHub Issue.
- Join the community discussions.
We welcome contributions such as:
- Bug reports
- New feature requests
- Documentation improvements
- Code contributions
See the Contributing for details.
This project is licensed under the Apache 2.0 License β see the LICENSE file for details.
- This is not an officially supported product.
- For demonstration purposes only β not intended for production use.