pub struct SuspendedCallState {
pub call: SuspendedCall,
}Expand description
Per-tool-call suspended state stored at __tool_call_scope.<call_id>.suspended_call.
When a tool call is suspended, this state holds the suspension ticket, pending interaction payload, and resume strategy. It is automatically deleted when the tool call reaches a terminal outcome (Succeeded/Failed/Cancelled).
Fields§
§call: SuspendedCallThe suspended call data (flattened for serialization).
Trait Implementations§
Source§impl Clone for SuspendedCallState
impl Clone for SuspendedCallState
Source§fn clone(&self) -> SuspendedCallState
fn clone(&self) -> SuspendedCallState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuspendedCallState
impl Debug for SuspendedCallState
Source§impl Default for SuspendedCallState
impl Default for SuspendedCallState
Source§fn default() -> SuspendedCallState
fn default() -> SuspendedCallState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuspendedCallState
impl<'de> Deserialize<'de> for SuspendedCallState
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
Source§impl Serialize for SuspendedCallState
impl Serialize for SuspendedCallState
Source§impl State for SuspendedCallState
impl State for SuspendedCallState
Source§const PATH: &'static str = "suspended_call"
const PATH: &'static str = "suspended_call"
Canonical JSON path for this state type. Read more
Source§type Ref<'a> = SuspendedCallStateRef<'a>
type Ref<'a> = SuspendedCallStateRef<'a>
The reference type that provides typed access.
Source§fn state_ref<'a>(
doc: &'a DocCell,
base: Path,
sink: PatchSink<'a>,
) -> Self::Ref<'a>
fn state_ref<'a>( doc: &'a DocCell, base: Path, sink: PatchSink<'a>, ) -> Self::Ref<'a>
Create a state reference at the specified path. Read more
Source§fn from_value(value: &Value) -> TireaResult<Self>
fn from_value(value: &Value) -> TireaResult<Self>
Deserialize this type from a JSON value.
Source§fn to_value(&self) -> TireaResult<Value>
fn to_value(&self) -> TireaResult<Value>
Serialize this type to a JSON value.
Source§fn diff_ops(old: &Self, new: &Self, base_path: &Path) -> TireaResult<Vec<Op>>
fn diff_ops(old: &Self, new: &Self, base_path: &Path) -> TireaResult<Vec<Op>>
Compare two instances and emit minimal ops for changed fields. Read more
Source§fn register_lattice(_registry: &mut LatticeRegistry)
fn register_lattice(_registry: &mut LatticeRegistry)
Register lattice fields into the given registry. Read more
Source§fn lattice_keys() -> &'static [&'static str]
fn lattice_keys() -> &'static [&'static str]
Return the JSON keys of fields annotated with
#[tirea(lattice)]. Read moreSource§impl StateSpec for SuspendedCallState
impl StateSpec for SuspendedCallState
Auto Trait Implementations§
impl Freeze for SuspendedCallState
impl RefUnwindSafe for SuspendedCallState
impl Send for SuspendedCallState
impl Sync for SuspendedCallState
impl Unpin for SuspendedCallState
impl UnwindSafe for SuspendedCallState
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