pub enum TurnPauseReason {
Approval {
tools: Vec<ToolUse>,
message: String,
},
Question {
tool_use_id: String,
questions: Vec<QuestionSpec>,
},
}Variants§
Approval
Question
The model asked the user structured questions via the tool call
identified by tool_use_id. Unlike Approval, this pause may coexist
with sibling tools still running: ToolStart/ToolEnd events can
arrive while it is pending. Each question’s first option is the
model’s recommendation; clients resolve the pause with
Op::QuestionResponse, and no option is ever chosen on the user’s
behalf. Clients must clear question UI on TurnResume and on
TurnEnd — a cancelled turn may end without a resume.
Trait Implementations§
Source§impl Clone for TurnPauseReason
impl Clone for TurnPauseReason
Source§impl Debug for TurnPauseReason
impl Debug for TurnPauseReason
Source§impl<'de> Deserialize<'de> for TurnPauseReason
impl<'de> Deserialize<'de> for TurnPauseReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TurnPauseReason
impl RefUnwindSafe for TurnPauseReason
impl Send for TurnPauseReason
impl Sync for TurnPauseReason
impl Unpin for TurnPauseReason
impl UnsafeUnpin for TurnPauseReason
impl UnwindSafe for TurnPauseReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more