a2aproject / a2aproject/a2a-java

[Feat]: Update Part objects

Đang mở
#688 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
490
Fork
172
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
55

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](https://a2a-protocol.org/latest/specification/#416-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

- [x] I agree to follow this project's Code of Conduct

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.