Cline SDK v0.0.85Cline SDK v0.0.85
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- Cline SDK v0.0.85は、出力上限で有効なツール呼び出しを生成できない場合に最大3回まで再試行します。
- ツール実行の進展時には回数をリセットし、空応答も復旧対象とするため、長い推論を伴うエージェント処理の中断を減らせます。
Cline SDK v0.0.85 retries up to three times when token exhaustion prevents a valid tool call, also recovering empty replies to keep long agent runs from ending prematurely.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
v0.0.85
Cline SDK v0.0.85では、モデルが出力トークンの上限に達し、有効なツール呼び出しを生成できなかった場合の処理が改善された。直ちに実行全体を失敗させるのではなく再試行することで、長い推論や大きな応答を伴うエージェント処理の中断を減らせる。
出力上限からの復旧
これまでは、エージェントが行動する前に推論や長い応答が出力枠を使い切ると、1回のmax-tokens終了によって、出力トークン上限のエラーで実行が終了していた。今回の変更では、出力枠を使い切ったターンで利用可能なツール呼び出しが得られなくても、復旧処理へ移行する。
再試行時には、簡潔に応答することと、大きな作業を複数のツール呼び出しに分割することを促すリマインダーが追加される。単に同じ処理を繰り返すのではなく、次のターンで出力を抑え、ツール呼び出しまで到達しやすくする仕組みとなっている。
再試行回数
ランタイムは最大3回連続で再試行する。再試行回数のカウンターは、ツール呼び出しによる進展があった時点と、各実行の開始時にリセットされる。このため、処理が前進した後に起きた出力上限到達は、新たな連続回数として扱われる。規定回数を使い切っても復旧できない場合は、従来のエラーで失敗する。
空応答とイベント
出力枠を消費したものの、画面上で確認できる出力が何もない空のmax-tokens応答も、同じ復旧経路の対象となる。また、各復旧反復の前にはturn-finishedが発行される。これにより、反復に関するイベントの対応関係が維持される。
Output-token limit
Cline SDK v0.0.85 changes how the runtime handles turns that reach the model’s output-token limit without producing a usable tool call. Instead of immediately failing the run, the runtime can retry, reducing interruptions in long agent runs that involve extensive reasoning or large responses.
A turn could previously consume its entire output allowance before the agent acted. A single max-tokens finish would then end the run with the existing output-token-limit error, even though no usable tool call had been produced.
Up to three retries
The runtime now retries up to three consecutive times when token exhaustion prevents a valid tool call. During recovery, it appends a reminder asking the model to respond concisely and to split large amounts of work across tool calls.
This retry behavior gives the agent another opportunity to act after reasoning or response content has consumed the available output allowance. If all three consecutive recovery attempts are exhausted, the run still fails with the existing error.
Tool-call progress
The retry counter resets when the runtime makes progress through a tool call. It also resets at the start of each run. As a result, the three-attempt limit applies to consecutive failures rather than carrying across tool-call progress or separate runs.
Empty max-tokens responses follow the same recovery path. These are turns that consume the output allowance while producing no visible output. They can therefore be retried rather than immediately ending the run.
Turn-finished events
Before each recovery iteration, the runtime emits turn-finished. This keeps iteration events paired while retries are taking place.
Together, the retry limit, counter resets, concise-response reminder, and handling of empty responses provide a defined recovery process for output-token exhaustion. Runs still terminate with the established error when recovery is exhausted, while eligible turns receive up to three chances to produce a usable tool call.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko出力上限まで使うと、ツールを呼べないまま処理が終わっていたの?Did hitting the output limit end a run before the agent could make a usable tool call?
- TECHガイドTECH GuideCline SDK v0.0.85では、使えるツール呼び出しが出ない場合に最大3回再試行し、空の応答も復旧対象にします。In Cline SDK v0.0.85, that case is retried up to three times. Empty replies caused by the same limit follow this recovery path too.
- ポコPokoじゃあ、長い推論で途中終了しやすかったエージェント処理を、続けやすくする仕組みなんだね?So this helps long agent runs keep going when heavy reasoning might otherwise make them stop early?
- TECHガイドTECH Guideそうだね。再試行時には、簡潔に答えて大きな作業をツール呼び出しに分けるよう促します。Yes. On a retry, the runtime reminds the model to be concise and split larger work across tool calls.
- ポコPokoツール実行が進めば回数もリセットされるから、一度の詰まりで終わりにくくなるんだね。And if a tool call makes progress, the retry count resets, so one blockage is less likely to end the run.
- TECHガイドTECH Guideただし、連続した再試行を使い切ると、従来どおり出力上限のエラーで終了します。Right, but if the consecutive retries are exhausted, the run still ends with the existing output-limit error.