🚀 [firebase_ai] Public way to set thoughtSignature on request parts
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 67/100
Hướng nghiên cứu
Start by reading the public part constructors and Part in the firebase_ai package, then check how ChatSession preserves thoughtSignature and how parsePart is exported. Confirm which proposed public API fits the package conventions and add or update focused tests for setting and round-tripping the signature. Done means callers can preserve it across turns without using test-only constructors.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What feature would you like to see?
A public way to set thoughtSignature on the parts of a request.
Gemini 3 models return a thoughtSignature on response parts, and the API expects it back on those parts in later turns, otherwise multi-turn function calling with thinking fails. ChatSession handles this internally, but code that builds Content itself (for example a framework keeping its own message history) has no supported way to do it in firebase_ai 5.1.0:
Partkeeps the signature in a private_thoughtSignature. It can be read back throughtoJson(), but not set.- The public
TextPart,InlineDataPart,FileDataandFunctionCallconstructors passthoughtSignature: null. - Only the
@visibleForTesting.forTestconstructors accept it, andparsePartisn't exported.
We use the .forTest constructors in the Genkit plugin for Firebase AI Logic (genkit_firebase_ai) to round-trip signatures, which works but relies on test-only API that could change in any release.
Any of these would solve it:
- A
thoughtSignaturenamed parameter on the public part constructors (and ideally a publicthoughtSignaturegetter onPart). - Exporting
parsePart, so a part can be rebuilt from the JSON the API returned.
- Ngôn ngữ chính
- Dart
- Star
- 9.3k
- Fork
- 4.1k
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 69
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/flutterfire
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
firebase/flutterfire#18918 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
firebase/flutterfire#18908 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[📚] App Check Windows Support still N/A on ReadmeCó thể đã có người làm @Adrianogba đã nhận 1 ngày trước. Đang mởgood first issue type: documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
firebase/flutterfire#18913 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[📚] Data Connect Windows Support still N/A on ReadmeCó thể đã có người làm @Adrianogba đã nhận 1 ngày trước. Đang mởgood first issue type: documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
firebase/flutterfire#18911 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[📚] Realtime Database Windows Support still N/A on ReadmeCó thể đã có người làm @Adrianogba đã nhận 1 ngày trước. Đang mởgood first issue type: documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
firebase/flutterfire#18909 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của firebase/flutterfire
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
customerio/customerio-flutter#441 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
JsonParseNode.getObjectValue returns non-null model on null JSON nodes and duplicates lifecycle hooksCó thể đã có người làm @hardikkaurani đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/kiota-dart#170 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
fable-compiler/Fable#5280 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
immich-app/immich#33043 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FR] 希望能折叠搜索历史Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
bggRGjQaUbCoE/PiliPlus#3503 ·
Maintainer thường phản hồi trong vòng 1 ngày