[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日 2時間
- マージ済み PR(30日)
- 46
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/adk-java のほかの issue
-
[spring-ai] ToolConverter silently drops enum and items from tool parameter schemas対応中かも @hirematha が 2 日前に担当しました。 オープン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 が 2 日前に担当しました。 オープンwaiting on reporter
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
google/adk-java#1608 · コメント 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 が 1 日前に担当しました。 オープンneeds review
google/adk-java#1618 · コメント 6 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE] Port bypass_multi_tools_limit for built-in search tools from adk-python対応中かも @hirematha が 2 日前に担当しました。 オープンneeds review
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
google/adk-java#1598 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
BaseLlmFlow nests each step inside the previous one and overflows the stack after a few hundred LLM calls対応中かも @hemasekhar-p が 9 日前に担当しました。 オープンneeds review
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
google/adk-java#1564 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
google/adk-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
dependabot/dependabot-core#16493 ·
メンテナーはふだん 1 日以内に返信
-
SHOW EDIT of a subclass for an object of its superclass: the form fails to open with AssertionErrorオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
FlashyReese/sodium-extra#608 ·