Expose turnComplete control for ADK Java live content sends
@hemasekhar-p がすでに取り組んでいます。
2026年5月18日 から。
評価
この issue はまだ評価されていません。
説明
🔴 Required Information
Is your feature request related to a specific problem?
Yes. ADK Java live sessions currently expose LiveRequestQueue.content(Content), but there is no public way to control whether that content completes the current live turn.
For normal user input, completing the turn is correct. But some live applications need to append content to an already-open live session without immediately asking the model to
generate.
The lower-level GenAI Java live API supports turnComplete, but ADK Java does not currently surface it through LiveRequestQueue, LiveRequest, or BaseLlmConnection.
Describe the Solution You'd Like
Please expose an additive API for live content sends that allows callers to set turnComplete.
Example:
requestQueue.content(content, false);
Existing behavior should remain unchanged:
requestQueue.content(content); // defaults to current behavior
### Impact on your work
We are building long-running Gemini Live / ADK Java sessions where backend services may need to update live session context without treating the update as a normal user transcript turn.
Without this API, applications must work around the behavior by suppressing model output after certain content sends. That is less precise because the model may still be asked to
generate even when the caller only wanted to append content.
This is needed for current live-session work, but there is no hard public launch deadline.
### Willingness to contribute
Yes. I am willing to submit a PR if the maintainers agree with the API direction.
———
## 🟡 Recommended Information
### Describe Alternatives You've Considered
1. Application-level suppression
Track when special content is enqueued, suppress model output until the next turnComplete=true, and avoid transcript persistence for that output window.
This works as a workaround, but ADK still asks the model to generate.
2. Custom BaseLlmConnection
Implement a custom Gemini live connection that sends LiveSendClientContentParameters.turnComplete(false).
This would duplicate ADK internals and increase maintenance risk.
3. Reflection or private API access
Not recommended.
### Proposed API / Implementation
One possible additive API:
public final class LiveRequestQueue {
public void content(Content content) {
processor.onNext(LiveRequest.builder().content(content).build());
}
public void content(Content content, boolean turnComplete) {
processor.onNext(
LiveRequest.builder()
.content(content)
.turnComplete(turnComplete)
.build());
}
}
LiveRequest could carry:
public abstract Optional<Boolean> turnComplete();
The live send loop could dispatch:
connection.sendContent(
request.content().get(),
request.turnComplete().orElse(true));
BaseLlmConnection could preserve compatibility with a default method:
default Completable sendContent(Content content, boolean turnComplete) {
return sendContent(content);
}
Then GeminiLlmConnection can pass the flag through:
LiveSendClientContentParameters.builder()
.turns(ImmutableList.of(content))
.turnComplete(turnComplete)
.build();
### Additional Context
This should be backward compatible if LiveRequestQueue.content(Content) continues to behave exactly as it does today, and only callers using the new overload opt into explicit turn-
completion behavior.
The lower-level live API already supports the concept; this request is mainly about exposing that capability through ADK Java's live queue abstraction.
- 主要言語
- Java
- スター
- 1.7k
- フォーク
- 421
- 平均マージ
- 3日 8時間
- マージ済み PR(30日)
- 36
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/adk-java のほかの issue
-
needs review
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
needs review
-
needs review
-
needs review
-
needs review
google/adk-java の issue をすべて見る
似ている issue
-
area/plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kestra-io/plugin-kestra#190 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/rocketmq-dashboard#5064 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
wso2/dpdp-accelerator#287 ·