Skip to content

Basic A2A Example #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 30, 2025
Merged

Basic A2A Example #335

merged 6 commits into from
Jun 30, 2025

Conversation

mattzcarey
Copy link
Contributor

@mattzcarey mattzcarey commented Jun 25, 2025

AI Summary

  • Added examples/a2a/ - Agent-to-Agent framework integration example
  • Custom esbuild configuration to handle Express dependencies as external
  • Hono-based implementation replacing Express for Cloudflare Workers compatibility
  • Agent (DO) version of the A2A TaskStore + AgentExecutor

Hacky bits

express is a dependency of @a2a-js/sdk, there is a hacky build script to remove it since we dont actually use it. I'm sure there is a better way to use esbuild in wrangler directly but I couldnt find it.

Is this the best way to do the routing?
Should I be using a websocket to handle the streaming since this will not have proper streaming support I dont think.

Copy link

changeset-bot bot commented Jun 25, 2025

⚠️ No Changeset found

Latest commit: 1d1921e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mattzcarey mattzcarey closed this Jun 25, 2025
@mattzcarey mattzcarey reopened this Jun 25, 2025
@mattzcarey mattzcarey changed the title A2A Example (wip) Basic A2A Example Jun 25, 2025
@mattzcarey mattzcarey marked this pull request as ready for review June 25, 2025 14:23
@whoiskatrin
Copy link
Collaborator

LGTM as the first iteration

Re: websockers. Let's keep current approach for A2A spec compliance, we can add WebSocket option for better streaming experience later and let the clients choose between HTTP SSE and WebSocket
I think that current implementation works for the spec

@whoiskatrin whoiskatrin merged commit 35ccf92 into cloudflare:main Jun 30, 2025
1 check passed
@mattzcarey mattzcarey deleted the feat-a2a-example branch July 1, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants