Skip to content

Support A2A 1.0 #1194

Open

Description

@fluxehub

🔴 Required Information

Is your feature request related to a specific problem?

Version 1.0 of the A2A spec was released back in March, which stabilizes the spec but also makes breaking changes from 0.3.x. It would be super helpful for the ADK to support this new spec so that new apps can be developed against it!

Describe the Solution You'd Like

a2aproject/a2a-java is currently in 1.0.0.Beta1 for new spec support. Adopting this new version requires updating calls to match the new API, although it appears most behaviour maps relatively cleanly. The main challenge will be whether the ADK continues to support 0.3.x, there's some discussion about adding compatibility to the new A2A version but it seems uncertain whether it will make it into the first stable version. Without compatibility, agents upgrading to the new ADK version would also break any older agents connecting to it until they upgraded to the new spec - I'm unsure if this is acceptable.

Impact on your work

We are building out a new agent using the ADK, and would like to support the new spec out of the gate, rather than having to update in future. In addition, the a2a-java:0.3.3 version has a bug where tools returning an RxJava Single which hop threads cause the stream to end after the tool call. This bug appears to be fixed with the new AgentEmitter in 1.0.

Willingness to contribute

Yes - I have some POC work updating the google-adk-a2a code to the new A2A version, and am willing to submit a PR if approved!


🟡 Recommended Information

Describe Alternatives You've Considered

  • Continue with 0.3.x: need to reach out to the a2a-java project regarding the bug found and see if they would be willing to backport a fix to 0.3. Eventually, the ADK will need to support v1.0 though.

Proposed API / Implementation

For the most basic implementation, calls just need to be updated to the new names exposed in the A2A SDK. If multiple versions of the spec are to be supported though, this may be more complex.

Additional Context

N/A

Activity

  1. self-assigned this
    on May 13, 2026
  2. hemasekhar-p commented on May 13, 2026

    @hemasekhar-p
    Contributor

    Hi @fluxehub, Thank you for submitting this feature request. It is currently under review by our team, we will keep you updated if any additional information is required. We appreciate your input.

  3. hemasekhar-p commented on May 13, 2026

    @hemasekhar-p
    Contributor

    @tilgalas, Please take a look into it.

  4. fluxehub commented on May 14, 2026

    @fluxehub
    Author

    I've heard from the A2A team that 0.3 spec compatibility should be in the final release, so concerns about breaking spec for consumers should hopefully be mitigated. I have a nearly working POC, can submit a PR when ready if interested?

    EDIT: Our team has had to move back to the Python ADK for other reasons sadly, so I'm no longer able to provide help on this 😭

  5. brian17han commented on Sep 22, 2026

    @brian17han

    @hemasekhar-p @tilgalas Do you have any updates on this? We're currently blocked because we can't use A2A 1.0+. Thank you.

  6. Shay-Deng commented on Nov 12, 2026

    @Shay-Deng

    I'd like to help with this if an outside PR is welcome. I've been working on A2A conformance in a2a-java 1.x lately (for example a2aproject/a2a-java#1317 and a2aproject/a2a-java#1318), so I know the 1.x API and its 0.3 compatibility layer fairly well.

    Some context from main (f688c80): the a2a module pins a2a-java 0.3.2.Final, while a2a-java is at 1.5.1.Final now, with packages moved from io.a2a to org.a2aproject.sdk. adk-python, which CONTRIBUTING.md names as the reference, already accepts both: a2a-sdk>=0.3.4,<2, with version branches in a2a/_compat.py. On the Java side the change covers the 6 main files in a2a/ that use a2a-java types (plus AgentExecutorConfig through its callback types), 5 test files, and the two A2A examples. (Edited: corrected the file count, see below.) RemoteA2AAgent, AgentExecutor and the converters expose a2a-java types in public signatures, though, so it can't be done without breaking code that uses the module directly.

    Two ways I can see to do it:

    1. Move google-adk-a2a to a2a-java 1.x in a release that allows breaking changes. (Edited: on the server side a2a-java 1.x's compat-0.3 conversion lets the same executor serve 0.3 clients, but calling 0.3 peers needs its separate compat-0.3 client API, see below.)
    2. Add 1.x support as a separate module next to the current one and deprecate the 0.3 module later, so existing users can switch when they are ready.

    @tilgalas, would you accept either of these from outside, and if so, which direction do you prefer? Is anyone already working on it internally? I'd rather not start a large change that overlaps internal work, so I'll wait for a direction here before starting the full migration.

  7. Shay-Deng commented on Nov 27, 2026

    @Shay-Deng

    A correction to my comment above, and a more concrete outline in case it helps you decide.

    Correction. I wrote that a2a-java 1.x ships compat-0.3 client transports "so ADK agents could still talk to 0.3 peers". That holds for the server side only: compat-0.3/server-conversion wraps a 1.x request handler, so the same AgentExecutor can serve 0.3 clients. On the client side, compat-0.3/client is a separate API (Client_v0_3, with 0.3 types), not a transport for the 1.x Client, so RemoteA2AAgent calling a 0.3 peer would need an adapter on top of the 0.3 mappers. I also overcounted the files: 6 main files use a2a-java types directly, plus AgentExecutorConfig through the callback types. I've edited the comment above. Sorry for the mix-up.

    Outline against main (e0d6c2a, no changes under a2a/ since 38dadb1) and a2a-java 1.5.1.Final:

    • Public signatures that carry a2a-java types: RemoteA2AAgent.Builder.agentCard/a2aClient, AgentExecutor.execute/cancel, the three Callbacks interfaces, and the public converter methods (PartConverter, EventConverter, ResponseConverter). The open feat(a2a): add a policy for which file URIs reach the model #1933 would add one more, A2APartConverter.convert(io.a2a.spec.Part<?>). So an in-place upgrade breaks direct users of the module; a parallel module would need its own Java package to coexist.
    • Most of the change is mechanical (packages, builders, record accessors, TaskState.TASK_STATE_*). The parts that need care:
      • AgentExecutor moves from execute(RequestContext, EventQueue) to execute(RequestContext, AgentEmitter). The default cancel throws TaskNotCancelableError, so ADK's cancel and cleanup override stays.
      • TaskStatusUpdateEvent no longer has a settable final; isFinal() is derived from the state, and isFinalOrInterrupted() covers input/auth-required. ResponseConverter and RemoteA2AAgent already branch on those states.
      • FilePart has no mediaType (it's on the file content), and DataPart.data() is a nullable Object rather than a map.
      • The examples' AgentCard needs supportedInterfaces; the 1.x client rejects a card without one.
    • A split that keeps every step building:
      1. On 0.3: pull the event dispatch and test fixtures apart, no API change.
      2. The 1.x migration itself (dependencies, the 6 files, tests, examples). This is the breaking step.
      3. 0.3 server support through compat-0.3 conversion, so one host serves both.
      4. Only if you want it: a 0.3 client path in RemoteA2AAgent.

    The same questions as before: is an outside PR welcome here, and do you prefer the in-place upgrade or a separate module? I'm still holding off until there's a direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions