Java: Not possible to retrieve function calls and function results
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
- 38/100
Hướng nghiên cứu
Bắt đầu từ lệnh gọi Java đến getChatMessageContentsAsync được hiển thị trong issue và theo dõi cách InvocationContext và ChatHistory xử lý các lần gọi hàm và kết quả. So sánh hành vi Java được mô tả với hành vi của ChatHistory trong .NET; công việc được xem là hoàn tất khi các thông báo gọi hàm và kết quả hàm có thể được truy xuất hoặc thêm lại để các câu hỏi sau đó có thể sử dụng lại ngữ cảnh đã truy xuất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
After running the following code, it is not possible to retrieve the function calls and function result messages so that they can be readded to the history.
InvocationContext invocationContext = new InvocationContext.Builder()
.withToolCallBehavior(ToolCallBehavior.allowAllKernelFunctions(true))
.build();
List<ChatMessageContent<?>> results = chat.getChatMessageContentsAsync(chatHistory, kernel, invocationContext)
.block();
In .NET, after invoking the chat completion model, the ChatHistory is mutated so that it includes all of the messages that were created (including function calls from the assistant role and function results as tool messages)
Because of this limitation, it is not possible for the AI to reuse context it was able to retrieve in previous function calls/results. For example, in the following chat, the AI used a function call to get the states of the lightbulbs. This included the IDs of the lights which are necessary for subsequent function calls.
Unfortunately, because the function result is lost, subsequent questions aren't able to use that information and the AI cannot complete them.
- Ngôn ngữ chính
- Java
- Star
- 276
- Fork
- 56
- Merge trung bình
- 17 giờ 45 phút
- Pull request đã merge (30 ngày)
- 4
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 microsoft/semantic-kernel-java
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/semantic-kernel-java#334 · 1 bình luận ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/semantic-kernel-java#331 · 7 bình luận ·
-
bug triage
microsoft/semantic-kernel-java#330 · 3 bình luận · 1 người được giao ·
-
agents without chatcompletion ? Đang mởbug triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/semantic-kernel-java#328 · 1 bình luận ·
-
Java: Remove SK planners Đang mở
microsoft/semantic-kernel-java#323 · 1 reaction · 2 người được giao ·
Tất cả issue của microsoft/semantic-kernel-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#157 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cryptomator/hub#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1120 ·