Use the AI SDK's native message history in the agent

オープン
#9,455 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@bobbai00 がすでに取り組んでいます。

2026年11月16日 から。

  • #9494 @bobbai00 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
scala
領域
ai, backend

調査の方向性

Start by finding the service that builds the single summary message before every model call, and the point where tool calls are flattened to just a name and status. Read the referenced threads #9119, #9120, #9244 and #9259 to see what the summary currently drops, and where #9423's last-execution report and #9424's docs section would move. Done means the SDK's own message history is kept as-is with one dataflow block appended, and the rendered chat looks the same as today; compare the agent's existing chat output before and after.

索引モデルが issue の本文から書いたものです。

説明

Task Summary

Before every model call, the service drops the message history and writes one summary message instead. Since #9244, a past tool call also shows its summary and the first line of its result, but not its other arguments or the rest of the result, and the whole summary message is written again before every call. Every new tool also needs its own section in that summary, and the system prompt spends 1.4 KB describing its format.

Keep the SDK's messages as they happen, and append one block with the current dataflow. The chat should look the same as today.

  • Run the loop as the SDK's ToolLoopAgent, and pass only the enabled tools with activeTools (what #9149 does by hand).
  • Build each step from initialMessages, responseMessages and the dataflow block. In AI SDK 7, messages returned from prepareStep carry over to later steps, so returning them would stack one block per step.
  • Drop the description of the context format from the system prompt.
  • The same message list is what the chat loads when it opens (#9482).

#9244 and #9259 fix the summary; this replaces it. #9423's report on the user's last execution moves into the dataflow block, and the docs section that #9424 adds is no longer needed.

What the model receives, today and after
Task Type
  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other
主要言語
Scala
スター
333
フォーク
202
平均マージ
3日 11時間
マージ済み PR(30日)
185

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/texera のほかの issue

apache/texera の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。