google / google/adk-python

Infer agent-card.json from ADK agent

Ouverte
#2,237 5 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
core needs review
Langage dominant
Python
Étoiles
21.5k
Forks
4k
Merge moyen
1 j 14 h
PR mergées (30 j)
37

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.