LiveConnectConfig missing historyConfig for Gemini Live 3.1
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
LiveConnectConfig missing historyConfig for Gemini Live 3.1 history seeding
Description
I am using the Java GenAI SDK with Gemini Live 3.1, but I cannot configure historyConfig in LiveConnectConfig.
The field appears to be required for Gemini Live 3.1 history seeding to work correctly, but in the Java SDK the LiveConnectConfig class does not expose historyConfig.
Because of that, when using Gemini Live 3.1 from Java, the conversation history is not working as expected.
Without historyConfig enabled, the Gemini Live session freezes/hangs when I send conversation history.
Dependency version
com.google.genai
google-genai
1.51.0
Model
gemini-3.1-flash-live-preview
Current behavior
LiveConnectConfig does not contain a historyConfig / history_config field.
Example:
LiveConnectConfig config = LiveConnectConfig.builder()
.responseModalities(List.of(Modality.Known.AUDIO))
.systemInstruction(
Content.builder()
.role("user")
.parts(List.of(Part.fromText(systemPrompt)))
.build()
)
// Missing:
// .historyConfig(...)
.build();
Because this config is missing, initial conversation history does not work correctly with Gemini Live 3.1.
Expected behavior
The Java SDK should expose historyConfig in LiveConnectConfig, similar to other SDKs.
Expected example:
LiveConnectConfig config = LiveConnectConfig.builder()
.responseModalities(List.of(Modality.Known.AUDIO))
.historyConfig(
HistoryConfig.builder()
.initialHistoryInClientContent(true)
.build()
)
.build();
Why this is needed
Gemini Live 3.1 appears to require history configuration for initial history/client content behavior. Without historyConfig, Java users cannot properly seed or continue conversation history when using Gemini Live 3.1.
See 'When migrating from gemini-2.5-flash-native-audio-preview-12-2025 to gemini-3.1-flash-live-preview' in https://github.com/google-gemini/gemini-skills/blob/main/skills/gemini-live-api-dev/SKILL.md
Impact
This blocks Java users from using Gemini Live 3.1 with conversation history properly.
Request
Please add support for historyConfig / HistoryConfig in the Java SDK LiveConnectConfig, similar to the support available in other SDKs.
- 主要言語
- Java
- スター
- 398
- フォーク
- 126
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 71
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/java-genai のほかの issue
-
ResponseStream.close() can block on the reader lock before closing the HTTP response対応中かも @hirematha が 1 日前に担当しました。 オープンpriority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
googleapis/java-genai#1372 ·
メンテナーはふだん 1 日以内に返信
-
Interactions API: GaosClientException.getMessage() only returns "400 . API error occurred" and omits the server error details対応中かも @hemasekhar-p が 25 日前に担当しました。 オープンpriority: p2 type: bug
googleapis/java-genai#1282 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Interactions API: store(false) omits "id", breaking Interaction and InteractionCompletedEvent deserialization対応中かも @hemasekhar-p が 25 日前に担当しました。 オープンpriority: p2 type: bug
googleapis/java-genai#1281 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Interaction.outputText() always returns Optional.empty() (SDK-computed field is never populated)対応中かも @hemasekhar-p が 25 日前に担当しました。 オープンpriority: p2 type: bug
googleapis/java-genai#1280 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Gen AI with structured output - `propertyOrdering` in Python vs. Java implementations対応中かも @hemasekhar-p が 79 日前に担当しました。 オープンpriority: p3 type: feature request
googleapis/java-genai#1169 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
googleapis/java-genai の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
documentation good first issue priority: low
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
Gautam-aman/CODOVYN#52 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
ControlSystemStudio/phoebus#3998 ·
メンテナーはふだん 1 日以内に返信
-
bug/错误
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
FCL-Team/FoldCraftLauncher#1982 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信