{"id":49685752,"url":"https://github.com/DracoBlue/a2a-ai-provider","last_synced_at":"2026-05-23T23:01:07.500Z","repository":{"id":302343884,"uuid":"1012134694","full_name":"DracoBlue/a2a-ai-provider","owner":"DracoBlue","description":"Community A2A provider for the ai-sdk from vercel","archived":false,"fork":false,"pushed_at":"2025-10-14T19:34:24.000Z","size":143,"stargazers_count":24,"open_issues_count":8,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-21T00:33:40.152Z","etag":null,"topics":["a2a","a2a-client","a2a-protocol","ai","ai-sdk","vercel-ai-sdk"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/a2a-ai-provider","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DracoBlue.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-01T21:45:00.000Z","updated_at":"2026-01-11T05:50:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"db917ff4-ab74-4695-adf7-47003c1fe22e","html_url":"https://github.com/DracoBlue/a2a-ai-provider","commit_stats":null,"previous_names":["dracoblue/a2a-ai-provider"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/DracoBlue/a2a-ai-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracoBlue%2Fa2a-ai-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracoBlue%2Fa2a-ai-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracoBlue%2Fa2a-ai-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracoBlue%2Fa2a-ai-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DracoBlue","download_url":"https://codeload.github.com/DracoBlue/a2a-ai-provider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DracoBlue%2Fa2a-ai-provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33415020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"ssl_error","status_checked_at":"2026-05-23T22:14:43.778Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-client","a2a-protocol","ai","ai-sdk","vercel-ai-sdk"],"created_at":"2026-05-07T10:00:25.114Z","updated_at":"2026-05-23T23:01:07.492Z","avatar_url":"https://github.com/DracoBlue.png","language":"TypeScript","funding_links":[],"categories":["⚙️ Implementations \u0026 Libraries"],"sub_categories":[],"readme":"# a2a-ai-provider\n\nAn `@ai-sdk` compatible AI provider implementation for the [A2A Protocol](https://a2aproject.github.io/A2A/), enabling universal interoperability between LLMs, tools, streaming output, and file-based artifacts.\n\n\u003e **Hint**: Is currently in alpha, not feature complete and should not be used for production workloads.\n\n## ✨ Features\n\n- 🔌 Drop-in `ai` Provider (v5 and later)\n- 🔁 Full support for A2A JSON-RPC 2.0 API by using `@a2a-js/sdk`\n- ⚖️ MIT Licensed and easy to integrate\n\n## 📦 Installation\n\n```bash\npnpm install a2a-ai-provider\n```\n\nMake sure you also install `ai`:\n\n```bash\npnpm install ai\n```\n\n## 🚀 Usage\n\n```javascript\nimport { a2a } from \"a2a-ai-provider\";\nimport { generateText } from \"ai\"\n\nconst chatId = \"unique-chat-id\"; // for each conversation to keep history in a2a server\n\nconst result = await generateText({\n  model: a2a('https://your-a2a-server.example.com/.well-known/agent-card.json'),\n  prompt: 'What is love?',\n  providerOptions: {\n    \"a2a\": {\n      \"contextId\": chatId,\n    }\n  },\n});\n\nconsole.log(result.text);\n```\n\nor if you like the stream version, use:\n\n```javascript\nimport { a2a } from \"a2a-ai-provider\";\nimport { streamText } from \"ai\"\n\nconst chatId = \"unique-chat-id\"; // for each conversation to keep history in a2a server\n\nconst streamResult = streamText({\n  model: a2a('https://your-a2a-server.example.com/.well-known/agent-card.json'),\n  prompt: 'What is love?',\n  providerOptions: {\n    \"a2a\": {\n      \"contextId\": chatId,\n    }\n  },\n});\n\nawait streamResult.consumeStream();\n\nconsole.log(await streamResult.content);\n```\n\n## 🛠 Provider Options\n\n```ts\ncreateA2a({\n  idGenerator?: IdGenerator; // replace the default IdGenerator\n});\n```\n\n## 🔒 License\n\na2a-ai-provider is licensed under the terms of MIT. See LICENSE for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDracoBlue%2Fa2a-ai-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDracoBlue%2Fa2a-ai-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDracoBlue%2Fa2a-ai-provider/lists"}