Skip to content

Osier-Yi/agentscope-samples

Β 
Β 

Repository files navigation

AgentScope Sample Agents

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.


πŸ“– About AgentScope & AgentScope Runtime

AgentScope

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

AgentScope Runtime is a comprehensive runtime framework that addresses two key challenges in deploying and operating agents:

  1. Effective Agent Deployment – Scalable deployment and management of agents across environments.
  2. 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.


✨ Getting Started

  • 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.md for installation and execution instructions.

Install Requirements


🌳 Repository Structure

β”œβ”€β”€ 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

πŸ“Œ Example List

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

ℹ️ Getting Help

If you:

  • Need installation help
  • Encounter issues
  • Want to understand how a sample works

Please:

  1. Read the sample-specific README.md.
  2. File a GitHub Issue.
  3. Join the community discussions.

🀝 Contributing

We welcome contributions such as:

  • Bug reports
  • New feature requests
  • Documentation improvements
  • Code contributions

See the Contributing for details.


πŸ“„ License

This project is licensed under the Apache 2.0 License – see the LICENSE file for details.


⚠️ Disclaimer

  • This is not an officially supported product.
  • For demonstration purposes only β€” not intended for production use.

πŸ”— Resources

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.1%
  • TypeScript 7.0%
  • JavaScript 4.2%
  • SCSS 1.7%
  • Other 1.0%