Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feat]: Update Part objects

Đang mở
#688 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Interface Part và các triển khai của nó nằm trong package io.a2a.spec. Trước tiên, hãy xem xét các class Part, DataPart, FilePart và TextPart hiện tại. Xem lại đặc tả A2A cho Part để hiểu các trường bắt buộc (text, raw, url, data, metadata, filename, mediaType). Kiểm tra xem đã có test serialization/deserialization nào chưa. Mục tiêu là thay thế interface và ba class bằng một class Part duy nhất phù hợp với đặc tả, đồng thời đảm bảo nó hoạt động với các thư viện JSON như Jackson.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
504
Fork
184
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
31

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của a2aproject/a2a-java

Tất cả issue của a2aproject/a2a-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.