Skip to content

[Feat]: Update Part objects #688

Closed as not planned
Closed as not planned

Description

@yuyu123-yuyu

Is your feature request related to a problem? Please describe.

Hello!
I am wondering if it's possible to update the Part interface, as well as the DataPart/FilePart/TextPart implementations in io.a2a.spec, in line with the A2A specification of Part?

The main problem I am having with the current implementation is that I am having trouble doing JSON serialization/deserialization with the Part interface. Jackson/fastjson are unable to processes it.

Describe the solution you'd like

  1. Remove the Part interface, and DataPart/FilePart/TextPart classes.
  2. Add a single Part class, with text, raw, url, data, metadata, filename, mediaType fields as described in the spec.

Thanks!

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. ehsavoie commented on Mar 5, 2026

    @ehsavoie
    Collaborator

    Could you check if #700 fixes your problem ?

  2. yuyu123-yuyu commented on Apr 29, 2026

    @yuyu123-yuyu
    Author

    Hello, sorry for the very late reply. Pull request #700 is not what I have in mind.
    I was thinking if we can get rid of the Part interface. It would be easier to use, but I guess it would reduce extensibility.
    Currently,Part is very difficult to perform JSON deserialization to Objects.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions