google / google/adk-python

Infer agent-card.json from ADK agent

Aperta
#2,237 5 commenti 2 reazioni 0 assegnatari Vedi su GitHub
core needs review
Lingua principale
Python
Stelle
21.5k
Fork
4k
Merge medio
1g 14h
PR unite (30g)
37

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.