agentscope-ai / agentscope-ai/agentscope

[Feature]: Support building agents from an AgentConfig (YAML) file

未关闭
#1,089 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
31.6k
派生
3.5k
平均合并
1 天 16 小时
30 天内合并 PR
103

描述

Hi all, could AgentScope support an ADK-style AgentConfig approach for constructing agents?

In ADK, agents can be created not only through code, but also directly from YAML configuration files. References:

https://google.github.io/adk-docs/agents/config/
https://github.com/google/adk-python/blob/10bdc078a453102a69afcb02e5a5665353eda11f/contributing/samples/multi_agent_basic_config/root_agent.yaml
This is a very convenient workflow: almost anyone can quickly build a multi-agent system this way. As model capabilities improve, we believe config-driven agents can perform comparably to agents built purely with code.

I’d like to propose adding support for launching/building an agent from an AgentConfig YAML file.
Example:
```yaml
# Optional: SequentialAgent, LoopAgent
agent_class: LlmAgent
model: qwen3-coder-plus
name: root_agent
description: Learning assistant that provides tutoring in code and math.
instruction: |
You are a learning assistant that helps students with coding and math questions.
sub_agents:
- config_path: search_agent.yaml
tools:
builtInTools:
- search
- codeExecutor
mcp:
- url: https://alipay
apiKey: xxx
- https://amap
```
Looking forward to your thoughts—thanks!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。