{"id":30192035,"url":"https://github.com/vladkol/adk-a2a","last_synced_at":"2025-08-12T22:09:39.283Z","repository":{"id":309449763,"uuid":"1011503123","full_name":"vladkol/adk-a2a","owner":"vladkol","description":"ADK to A2A relay sample: expose your ADK Agent as an A2A Server","archived":false,"fork":false,"pushed_at":"2025-08-11T23:59:30.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-12T01:24:56.552Z","etag":null,"topics":["a2a","a2a-protocol","adk","agents"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladkol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-30T23:33:34.000Z","updated_at":"2025-08-11T23:59:33.000Z","dependencies_parsed_at":"2025-08-12T01:24:59.589Z","dependency_job_id":"ac59bf1a-402f-413a-b5e3-a5e282c56c80","html_url":"https://github.com/vladkol/adk-a2a","commit_stats":null,"previous_names":["vladkol/adk-a2a"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vladkol/adk-a2a","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladkol%2Fadk-a2a","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladkol%2Fadk-a2a/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladkol%2Fadk-a2a/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladkol%2Fadk-a2a/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladkol","download_url":"https://codeload.github.com/vladkol/adk-a2a/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladkol%2Fadk-a2a/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270143361,"owners_count":24534705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a2a","a2a-protocol","adk","agents"],"created_at":"2025-08-12T22:09:36.904Z","updated_at":"2025-08-12T22:09:39.258Z","avatar_url":"https://github.com/vladkol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADK to A2A Relay\n\nThis example is a lightweight relay server that exposes [Agent Development Kit (ADK)](https://google.github.io/adk-docs/) agents as\n[Agent2Agent (A2A)](https://a2aproject.github.io/A2A) compliant services.\n\nThis library acts as a bridge, allowing any ADK agent to be discovered and communicate within an A2A ecosystem using the standard A2A protocol.\n\n## Features\n\n- Seamless Protocol Bridging: Translates A2A requests into ADK queries and streams ADK responses back as A2A events.\n- Dynamic Agent Loading: Run any ADK agent without code modification by simply pointing the CLI to its directory.\n- Full Streaming Support: Natively handles the streaming capabilities of both ADK and A2A for real-time, interactive experiences.\n- Automatic Type Conversion: Intelligently converts message parts (text, files, data payloads) between A2A and Google GenAI formats.\n- Function Call Forwarding: Optionally relays ADK function calls and responses as structured A2A artifacts for advanced tool use cases.\n- Artifact Handling: Manages ADK artifacts, making them available within the A2A task context.\n- Automatic Agent Card: Generates a standard A2A AgentCard from your ADK agent's metadata, or uses a custom agent.json file if provided.\n- Simple CLI Interface: Easy to run from the command line with configurable host, port, and more flags.\n\n## Prerequisites\n\n- Python 3.10+\n- [uv](https://github.com/astral-sh/uv)\n\n## Installation\n\n```bash\n# Using uv (recommended)\nuv venv\nsource .venv/bin/activate\nuv pip install -U -r requirements.txt\n```\n\n## Usage\n\n1. Copy `.env-sample` file to the same directory as `.env`.\n2. Specify Id of your Google Cloud Project in `GOOGLE_CLOUD_PROJECT` variable.\nThe project must have Vertex AI APIs enabled.\n\nTo run the sample agent:\n\n```bash\npython3 -m adk_a2a samples/adk_agents/dice_roll\n```\n\nTo run your own agent, replace the last argument with your ADK agent's directory.\n\n### CLI Options\n\n`python3 -m adk_a2a [--debug] [--host HOST_NAME] [--port PORT_NUMBER] [--transfer-function-calls] AGENT_DIRECTORY`\n\nYou can customize the server's behavior with the following arguments:\n\n| Argument                    | Description                                                              | Default     |\n| --------------------------- | ------------------------------------------------------------------------ | ----------- |\n| `AGENT_DIRECTORY`           | (Required) Path to the directory containing the ADK agent.               | N/A      |\n| `--host`                    | Host address to bind the server to.                                      | `0.0.0.0`   |\n| `--port`                    | Port for the HTTP server.                                                | `8080`      |\n| `--transfer-function-calls` | If set, relays ADK function calls/responses as A2A artifacts.            | `False`     |\n| `--debug`                   | Enables debug-level logging for detailed output.                         | `False`     |\n\n## Interact with the Agent\n\nUse any A2A-compatible client, such as [A2A Inspector](https://github.com/a2aproject/a2a-inspector).\n\n1. Run the agent server (see above).\n2. Connect to `http://127.0.0.1:8080` (if testing locally) or another address you exposed the server with.\n3. Make a query to the agent from the client.\n\n## Known limitations\n\nThe relay currently doesn't support the following features:\n\n- ADK Long-running tools\n- ADK in-task authentication\n- Agent-to-agent authentication must be done at the service level when making a request from the client.\n\n## Disclaimer\n\nThis is not an officially supported Google product. This project is not eligible for the [Google Open Source Software Vulnerability Rewards Program](https://bughunters.google.com/open-source-security).\n\nCode and data from this repository are intended for demonstration purposes only. It is not intended for use in a production environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladkol%2Fadk-a2a","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladkol%2Fadk-a2a","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladkol%2Fadk-a2a/lists"}