yield_to_user ends turn
This commit is contained in:
parent
0af97774f4
commit
8a2f488d22
1 changed files with 3 additions and 1 deletions
|
|
@ -418,8 +418,10 @@ impl Agent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Agent::apply_tool_results(&agent, results, &mut ds).await;
|
Agent::apply_tool_results(&agent, results, &mut ds).await;
|
||||||
|
if !agent.state.lock().await.pending_yield {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Text-only response — extract text and return
|
// Text-only response — extract text and return
|
||||||
let text = {
|
let text = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue