a2aproject / a2aproject/a2a-python

Feat]: Client-side utility for assembling artifacts from update events

Đang mở
#1,030 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
component: client maintainers-only
Ngôn ngữ chính
Python
Star
2.1k
Fork
496
Merge trung bình
4 ngày 17 giờ
Pull request đã merge (30 ngày)
12

Mô tả

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

1.0 release removed `ClientTaskManager` (see #734) and changed client API in a way that it now closely mirrors server API and uses [`StreamResposne`](https://a2a-protocol.org/latest/specification/#323-stream-response) as a return type.

#734 mentions a possible helper for reconstructing artifacts specifically, this issue is to track it.

### Describe the solution you'd like

As stated in #734 maintaining the whole `Task` state locally can result in divergence with server state and should not be relied on by default (especially due to history behavior specification in 1.0, #734 has more details).

For artifacts though the logic is deterministic and can be replicated locally if one wants to maintain full artifact state by interpreting `append` and `lastChunk` flags. Client API should not be changed here, new helper should operate on a stream of `StreamResponse`.

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.