---
title: simple_agent_code
canonical_url: "https://www.modelscope.cn/models/ms-agent/simple_agent_code"
md_url: "https://www.modelscope.cn/models/ms-agent/simple_agent_code.md"
repository: ms-agent/simple_agent_code
chinese_name: "一个简单的外部代码的agent"
last_updated: 2025-10-10
license: "Apache License 2.0"
pipeline_tag: text-generation
tasks:
  - text-generation
library_name:
  - pytorch
frameworks:
  - Pytorch
downloads: 1309
stars: 0
---

# simple_agent_code

> simple_agent_code - ms-agent 在 ModelScope 开源的模型。MS-Agent的一个外部代码例子，定义了一个SimpleAgent类（让LLM回复均带有😁），并直接执行它。你可以继承LLMAgent类的任何一个方法，并复写它，来添加更多的自定义能力！

ms-agent/simple_agent_code 是 ModelScope 魔搭社区上的text-generation模型，采用 Apache License 2.0 许可。

- **Repository**: ms-agent/simple_agent_code
- **License**: Apache License 2.0
- **Tasks**: text-generation
- **Downloads**: 1309
- **Stars**: 0
- **Last updated**: 2025-10-10

Source: https://www.modelscope.cn/models/ms-agent/simple_agent_code

---

MS-Agent的一个外部代码例子，定义了一个SimpleAgent类（让LLM回复均带有😁），并直接执行它。你可以继承LLMAgent类的任何一个方法，并复写它，来添加更多的自定义能力！

使用方式：

```
pip install ms-agent -U
```

```
ms-agent run --config ms-agent/simple_agent --modelscope_api_key xxx
```
