[spring-ai] Bridge drops reasoning_content (thinking) — surface it as partial events and/or persist it
維護者通常 1 天內回覆
@hemasekhar-p 已經在處理了。
開始於 2026年10月5日。
評估
這個 Issue 還沒有評估資料。
描述
Is your feature request related to a problem? Please describe.
Spring AI 2.0 already exposes reasoning content from thinking models such as DeepSeek-R1, Qwen-Thinking, and GLM via AssistantMessage metadata (reasoningContent). However, in the Spring AI bridge used by ADK, this field is not read or forwarded.
After decompiling 1.11.0, I confirmed the four core bridge classes — SpringAI, MessageConverter, StreamingResponseAggregator, and ConfigMapper — don't reference reasoningContent at all. The result is that reasoning is silently dropped: it is neither forwarded as partial events nor persisted to the session, and there is no warning. Users running thinking models through the bridge lose the entire reasoning stream.
Describe the solution you'd like
During streaming aggregation, the bridge should read reasoningContent and surface it to ADK consumers. For example:
- emit it as dedicated reasoning parts on partial
LlmResponses, persisted together with the final event; or - map it onto the thought flag if the Java SDK's
Partsupports it, similar to the Gemini path.
This would make thinking models actually usable through the bridge: UIs could render collapsible thinking panels, and session history would retain the reasoning trace for audit.
We already handle this in a production fork via a lightweight marker protocol around the reasoning text, with the frontend rendering collapsible thinking panels and per-segment timing. Happy to share the implementation or send a PR.
One thing the bridge would also need to normalize: OpenAI-compatible gateways differ in reasoning chunk semantics — some stream pure deltas, others return cumulative text per chunk. Consumers currently need prefix-detection heuristics to avoid duplication; if the bridge normalized to pure deltas once, all downstream code stays simple.
Describe alternatives you've considered
Keeping the status quo forces anyone using thinking models through the bridge to either fork it or lose reasoning entirely.
Additional context
Verified against 1.11.0 (current latest at the time of writing). No Spring AI changes are needed — the metadata is already there, waiting for the bridge to read it.
- 主要語言
- Java
- 星號
- 1.7k
- 分支
- 431
- 平均合併
- 3 天 11 小時
- 30 天內合併 PR
- 50
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
google/adk-java 的其他 Issue
-
GeminiUtil placeholder user turn ("Continue output. DO NOT look at this line ...") is flagged by prompt injection filters可能已有人在做 @hemasekhar-p 今天認領。 未關閉needs review
難度 2/5 1-3 小時 新手友好度 76/100
google/adk-java#1628 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[spring-ai] ToolConverter silently drops enum and items from tool parameter schemas可能已有人在做 @hirematha 於 3 天前認領。 未關閉needs review
難度 2/5 1-3 小時 新手友好度 76/100
google/adk-java#1609 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[spring-ai] Streaming responses ending with CJK punctuation (。!?) are misclassified as partial and never persisted to the session可能已有人在做 @hirematha 於 3 天前認領。 未關閉needs review
難度 2/5 1-3 小時 新手友好度 84/100
google/adk-java#1608 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Claude model throws UnsupportedOperationException("Not supported yet.") on thinking blocks from Claude 5 models可能已有人在做 @hemasekhar-p 今天認領。 未關閉needs review
google/adk-java#1630 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[core] Client disconnects don't cancel the model stream (per-step flow is cached) — and there is no public API to cancel an in-flight run可能已有人在做 @hemasekhar-p 於 2 天前認領。 未關閉needs review
google/adk-java#1618 · 6 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
相似的 Issue
-
backend
難度 2/5 1-3 小時 新手友好度 76/100
bcgov/nr-forest-client#2524 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 74/100
維護者通常 1 天內回覆
-
team:Lumberjack
難度 2/5 1-3 小時 新手友好度 76/100
OpenLiberty/open-liberty#35998 ·
維護者通常 1 天內回覆
-
[BUG] SQS SendMessageBatch accepts more than 10 entries instead of TooManyEntriesInBatchRequest可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 67/100
維護者通常 1 天內回覆