https://github.com/modelscope/modelscope-agent
MS-Agent: Lightweight Framework for Empowering Agents with Autonomous Exploration
https://github.com/modelscope/modelscope-agent
agent agentic-insight assistantapi chatbot code data-science data-science-assistant deep-research gpts llm multi-agents multimodal-large-language-models open-gpts qwen rag
Last synced: 3 months ago
JSON representation
MS-Agent: Lightweight Framework for Empowering Agents with Autonomous Exploration
- Host: GitHub
- URL: https://github.com/modelscope/modelscope-agent
- Owner: modelscope
- License: apache-2.0
- Created: 2023-08-03T09:06:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-30T00:02:30.000Z (3 months ago)
- Last Synced: 2025-07-04T09:08:40.426Z (3 months ago)
- Topics: agent, agentic-insight, assistantapi, chatbot, code, data-science, data-science-assistant, deep-research, gpts, llm, multi-agents, multimodal-large-language-models, open-gpts, qwen, rag
- Language: Python
- Homepage: https://modelscope-agent.readthedocs.io/en/latest/
- Size: 74.1 MB
- Stars: 3,245
- Watchers: 45
- Forks: 373
- Open Issues: 73
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - modelscope-agent - ModelScope-Agent(开源版GPTs): An agent framework connecting models in ModelScope with the world (Others)
- awesome-production-genai - Modelscope-Agent - agent.svg?style=social) - Modelscope-Agent is a customizable and scalable agent framework. (Agent Development)
- awesome-autonomous-gpt - 2023/08/10 - An Agent Framework Connecting Models in ModelScope with the World (Projects / Developer tools)
- Awesome-AI-Agents - modelscope-agent - An agent framework connecting models in ModelScope with the world  (Frameworks / Advanced Components)
- awesome-langchain-zh - modelscope-agent - agent?style=social): 一个简易的多代理执行框架 (其他LLM框架 / 文章)
- awesome_ai_agents - Modelscope-Agent - ModelScope-Agent - An agent framework connecting models in ModelScope with the world (Building / LLM Models)
README
MS-Agent: Lightweight Framework for Empowering Agents with Autonomous Exploration
![]()
## Introduction
MS-Agent is a lightweight framework designed to empower agents with autonomous exploration capabilities. It provides a flexible and extensible architecture that allows developers to create agents capable of performing complex tasks, such as code generation, data analysis, and tool calling for general purposes with MCP (Model Calling Protocol) support.
### Features
- **Multi-Agent for general purpose**: Chat with agent with tool-calling capabilities based on MCP.
- **Deep Research**: To enable advanced capabilities for autonomous exploration and complex task execution.
- **Code Generation**: Supports code generation tasks with artifacts.
- **Lightweight and Extensible**: Easy to extend and customize for various applications.> [WARNING] For historical archive versions, please refer to: https://github.com/modelscope/ms-agent/tree/0.8.0
| WeChat Group
|:-------------------------:
|## 🎉 News
Archive
* 🔥🔥🔥Aug 8, 2024: A new graph based code generation tool [CodexGraph](https://arxiv.org/abs/2408.03910) is released by Modelscope-Agent, it has been proved effective and versatile on various code related tasks, please check [example](https://github.com/modelscope/modelscope-agent/tree/master/apps/codexgraph_agent).
* 🔥🔥Aug 1, 2024: A high efficient and reliable Data Science Assistant is running on Modelscope-Agent, please find detail in [example](https://github.com/modelscope/modelscope-agent/tree/master/apps/datascience_assistant).
* 🔥July 17, 2024: Parallel tool calling on Modelscope-Agent-Server, please find detail in [doc](https://github.com/modelscope/modelscope-agent/blob/master/modelscope_agent_servers/README.md).
* 🔥June 17, 2024: Upgrading RAG flow based on LLama-index, allow user to hybrid search knowledge by different strategies and modalities, please find detail in [doc](https://github.com/modelscope/modelscope-agent/blob/master/modelscope_agent/rag/README_zh.md).
* 🔥June 6, 2024: With [Modelscope-Agent-Server](https://github.com/modelscope/modelscope-agent/blob/master/modelscope_agent_servers/README.md), **Qwen2** could be used by OpenAI SDK with tool calling ability, please find detail in [doc](https://github.com/modelscope/modelscope-agent/blob/master/docs/llms/qwen2_tool_calling.md).
* 🔥June 4, 2024: Modelscope-Agent supported Mobile-Agent-V2[arxiv](https://arxiv.org/abs/2406.01014),based on Android Adb Env, please check in the [application](https://github.com/modelscope/modelscope-agent/tree/master/apps/mobile_agent).
* 🔥May 17, 2024: Modelscope-Agent supported multi-roles room chat in the [gradio](https://github.com/modelscope/modelscope-agent/tree/master/apps/multi_roles_chat_room).
* May 14, 2024: Modelscope-Agent supported image input in `RolePlay` agents with latest OpenAI model `GPT-4o`. Developers can experience this feature by specifying the `image_url` parameter.
* May 10, 2024: Modelscope-Agent launched a user-friendly `Assistant API`, and also provided a `Tools API` that executes utilities in isolated, secure containers, please find the [document](https://github.com/modelscope/modelscope-agent/blob/master/modelscope_agent_servers/)
* Apr 12, 2024: The [Ray](https://docs.ray.io/en/latest/) version of multi-agent solution is on modelscope-agent, please find the [document](https://github.com/modelscope/modelscope-agent/blob/master/modelscope_agent/multi_agents_utils/README.md)
* Mar 15, 2024: Modelscope-Agent and the [AgentFabric](https://github.com/modelscope/modelscope-agent/tree/master/apps/agentfabric) (opensource version for GPTs) is running on the production environment of [modelscope studio](https://modelscope.cn/studios/agent).
* Feb 10, 2024: In Chinese New year, we upgrade the modelscope agent to version v0.3 to facilitate developers to customize various types of agents more conveniently through coding and make it easier to make multi-agent demos. For more details, you can refer to [#267](https://github.com/modelscope/modelscope-agent/pull/267) and [#293](https://github.com/modelscope/modelscope-agent/pull/293) .
* Nov 26, 2023: [AgentFabric](https://github.com/modelscope/modelscope-agent/tree/master/apps/agentfabric) now supports collaborative use in ModelScope's [Creation Space](https://modelscope.cn/studios/modelscope/AgentFabric/summary), allowing for the sharing of custom applications in the Creation Space. The update also includes the latest [GTE](https://modelscope.cn/models/damo/nlp_gte_sentence-embedding_chinese-base/summary) text embedding integration.
* Nov 17, 2023: [AgentFabric](https://github.com/modelscope/modelscope-agent/tree/master/apps/agentfabric) released, which is an interactive framework to facilitate creation of agents tailored to various real-world applications.
* Oct 30, 2023: [Facechain Agent](https://modelscope.cn/studios/CVstudio/facechain_agent_studio/summary) released a local version of the Facechain Agent that can be run locally. For detailed usage instructions, please refer to [Facechain Agent](#facechain-agent).
* Oct 25, 2023: [Story Agent](https://modelscope.cn/studios/damo/story_agent/summary) released a local version of the Story Agent for generating storybook illustrations. It can be run locally. For detailed usage instructions, please refer to [Story Agent](#story-agent).
* Sep 20, 2023: [ModelScope GPT](https://modelscope.cn/studios/damo/ModelScopeGPT/summary) offers a local version through gradio that can be run locally. You can navigate to the demo/msgpt/ directory and execute `bash run_msgpt.sh`.
* Sep 4, 2023: Three demos, [demo_qwen](demo/demo_qwen_agent.ipynb), [demo_retrieval_agent](demo/demo_retrieval_agent.ipynb) and [demo_register_tool](demo/demo_register_new_tool.ipynb), have been added, along with detailed tutorials provided.
* Sep 2, 2023: The [preprint paper](https://arxiv.org/abs/2309.00986) associated with this project was published.
* Aug 22, 2023: Support accessing various AI model APIs using ModelScope tokens.
* Aug 7, 2023: The initial version of the modelscope-agent repository was released.## Installation
### Install from source
```shell
git clone git@github.com:modelscope/ms-agent.gitcd ms-agent
pip install -e .
```> [!WARNING]
> As the project has been renamed to `ms-agent`, for versions `v0.8.0` or earlier, you can install using the following command:
> ```shell
> pip install modelscope-agent<=0.8.0
> ```
> To import relevant dependencies using `modelscope_agent`:
> ``` python
> from modelscope_agent import ...
> ```## Quickstart
### Code Generation Agent
Refer to [Website Generation](projects/code_scratch/README.md)### Deep Research
This project provides a framework for deep research, enabling agents to autonomously explore and execute complex tasks.- **Autonomous Exploration**
- **Multi-modal report generation**
- **Lightweight and Extensible**
- **Fast and Efficient**For interleaved text and image report, refer to the [Report](projects/deep_research/examples/task_20250617a/report.md).
Refer to [Example](projects/deep_research/run.py)
## License
This project is licensed under the [Apache License (Version 2.0)](https://github.com/modelscope/modelscope/blob/master/LICENSE).
## Star History
[](https://star-history.com/#modelscope/modelscope-agent&Date)