Infer agent-card.json from ADK agent
Is your feature request related to a problem? Please describe.
When I want to expose agents over a2a, using get_fast_api_app, I need to have agent.json stored in the directory 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.
Interestingly, it is created automatically when using to_a2a. This comes with other problems, however, for instance if you want to use both A2A together with the regular API and the web interface. Both methods (to_a2a and get_fast_api_app) should offer both, custom and generated agent cards.
Yes, it was like a week new and not used by many examples, so I missed it.
Closing this issue since a resolution is already available. Please feel free to reach out if you have any further concerns
Can you tell us how it is resolved, i.e., how to use get_fast_api_app with a2a=true without providing an agent.json?
Hello @m-breitbach ,
Apologies for the misunderstanding on my part. We have noted this as a feature request and it is currently under review on our end. We appreciate your patience while we work on this.
Thank you.
Is the API-server part of this request available for an external contribution? I'd like to take it if so.
I would first compare the current API server's A2A setup with the existing agent-card generation path used by to_a2a(), then propose a fallback that generates a card when no explicit card file is supplied. Explicitly supplied cards would remain authoritative. The tests would cover generated and custom cards, advertised skills and server URLs, and existing API / web routes, without needing a live model.
Could a maintainer confirm the desired behavior and whether #2237 is still the correct place to implement it? I have not changed production code and will wait for your confirmation, as requested by CONTRIBUTING.md. Investigated with Codex assistance.