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