pub struct TurnInterruptParams {
pub session_id: String,
pub command_id: String,
pub turn_id: Option<String>,
pub retract: Option<bool>,
}Expand description
turn/interrupt params: the “user pressed stop” gesture, on the runtime’s
priority lane.
Fields§
§session_id: StringThe target session.
command_id: StringThe idempotency handle (UUIDv7).
turn_id: Option<String>The exact turn to interrupt. Omit to target the session’s current
foreground turn, resolved at admission; prefer passing the explicit id
when you have one. Any syntactically valid UUID: a turn from an older
session may carry a v4 or v5 id. A malformed id is invalidParams.
retract: Option<bool>Pair a retract intent with the interrupt: if the turn is cancelled
before any assistant output committed, the submission is durably
retracted (view event turn/retracted) so the client may restore the
prompt text. A rejected retract does not undo the interrupt. Default
false.
Trait Implementations§
Source§impl Clone for TurnInterruptParams
impl Clone for TurnInterruptParams
Source§impl Debug for TurnInterruptParams
impl Debug for TurnInterruptParams
Source§impl<'de> Deserialize<'de> for TurnInterruptParams
impl<'de> Deserialize<'de> for TurnInterruptParams
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
impl Eq for TurnInterruptParams
Source§impl PartialEq for TurnInterruptParams
impl PartialEq for TurnInterruptParams
Source§impl Serialize for TurnInterruptParams
impl Serialize for TurnInterruptParams
impl StructuralPartialEq for TurnInterruptParams
Auto Trait Implementations§
impl Freeze for TurnInterruptParams
impl RefUnwindSafe for TurnInterruptParams
impl Send for TurnInterruptParams
impl Sync for TurnInterruptParams
impl Unpin for TurnInterruptParams
impl UnsafeUnpin for TurnInterruptParams
impl UnwindSafe for TurnInterruptParams
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