google / google/adk-python

Infer agent-card.json from ADK agent

未关闭
#2,237 5 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
core needs review
主要语言
Python
星标
21.5k
派生
4k
平均合并
1 天 22 小时
30 天内合并 PR
31

描述

**Is your feature request related to a problem? Please describe.**
When I want to expose agents over a2a, using [`get_fast_api_app`](https://github.com/google/adk-python/blob/v1.8.0/src/google/adk/cli/fast_api.py#L1078-L1158), I [need to have `agent.json` stored in the directory](https://github.com/google/adk-python/blob/v1.8.0/src/google/adk/cli/fast_api.py#L1136-L1138) next to the python file with the agent card. The ADK agent defined in python already contains most of the information needed for the agent card, so it could be automatically provided without having to specify it explicitly as a json.

**Describe the solution you'd like**
I would like to have agent card inferred for the agent, maybe have some metadata per agent, stating if I want or don't want to expose it over a2a, and if needed, to provide information that are not already in ADK agent.

**Describe alternatives you've considered**
I considered automatically generating the json files, but this still incurs additional developer toil or requires additional CI setup to make it work.

**Additional context**
I don't think anything more is needed.

贡献指南

打开贡献指南

调研方向

Start with get_fast_api_app in src/google/adk/cli/fast_api.py and the adjacent agent.json lookup described in the issue. Inspect which agent fields already provide agent-card information and what metadata would be needed to control A2A exposure or supply missing fields. Done means the design clearly defines how the card is inferred and served without requiring a separately stored JSON file.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
ai, api
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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