Support long-running agent turns

This commit is contained in:
Georg Bauer
2026-07-26 11:07:28 +02:00
parent 2a14b93335
commit 3c75b8f6c1
14 changed files with 432 additions and 90 deletions

View File

@@ -375,6 +375,7 @@ pub(super) fn render_messages(
"user" => turns.push(ChatTurn {
user: true,
tool: false,
system: false,
skip_previous_eos: false,
reasoning: None,
reasoning_complete: true,
@@ -394,6 +395,7 @@ pub(super) fn render_messages(
turns.push(ChatTurn {
user: true,
tool: false,
system: false,
skip_previous_eos: protocol == Protocol::Responses,
reasoning: None,
reasoning_complete: true,
@@ -410,6 +412,7 @@ pub(super) fn render_messages(
turns.push(ChatTurn {
user: false,
tool: false,
system: false,
skip_previous_eos: false,
reasoning: (preserve_reasoning && !reasoning.is_empty()).then_some(reasoning),
reasoning_complete: true,