Skip to content

fix: preserve media types on text and data parts - #1295

Merged
jmesnil merged 1 commit into
a2aproject:mainfrom
kabir:fix/1291-part-media-type
Nov 6, 2026
Merged

jmesnil merged 1 commit into
a2aproject:mainfrom
kabir:fix/1291-part-media-type

Conversation

@kabir

@kabir kabir commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Description

Text and data parts lose their media type when converted through the SDK. Preserve the optional mediaType in the part model and in JSON and protobuf conversions, while retaining existing constructors.

  • Follow the contributing guide.
  • Use a Conventional Commits PR title.
  • Ensure the tests pass.
  • Update READMEs if necessary.

Tests: mvn clean install

Fixes #1291

@jmesnil
jmesnil merged commit b010fae into a2aproject:main Nov 6, 2026
16 of 18 checks passed
@jmesnil

jmesnil commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@kabir thanks!

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.

[Bug]: mediaType in TextPart and DataPart

2 participants