Java: Not possible to retrieve function calls and function results
まだ誰も着手していません。
評価
調査の方向性
Issue に示されている getChatMessageContentsAsync への Java 呼び出しから始め、InvocationContext と ChatHistory が関数呼び出しと結果をどのように処理するかを追跡します。説明されている Java の動作を .NET の ChatHistory の動作と比較します。後続の質問で取得したコンテキストを再利用できるように、関数呼び出しメッセージと関数結果メッセージを取得または再追加できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 276
- フォーク
- 56
- 平均マージ
- 17時間 45分
- マージ済み PR(30日)
- 4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/semantic-kernel-java のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoft/semantic-kernel-java#334 · コメント 1 件 ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoft/semantic-kernel-java#331 · コメント 7 件 ·
-
bug triage
microsoft/semantic-kernel-java#330 · コメント 3 件 · 担当者 1 名 ·
-
bug triage
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoft/semantic-kernel-java#328 · コメント 1 件 ·
-
microsoft/semantic-kernel-java#323 · リアクション 1 件 · 担当者 2 名 ·
microsoft/semantic-kernel-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FasterXML/jackson-databind#6229 ·