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<SuspendedCallState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SuspendedCallState, <__D as Deserializer<'de>>::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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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>,
) -> <SuspendedCallState as State>::Ref<'a>
fn state_ref<'a>( doc: &'a DocCell, base: Path, sink: PatchSink<'a>, ) -> <SuspendedCallState as State>::Ref<'a>
Create a state reference at the specified path. Read more
Source§fn from_value(value: &Value) -> Result<SuspendedCallState, TireaError>
fn from_value(value: &Value) -> Result<SuspendedCallState, TireaError>
Deserialize this type from a JSON value.
Source§fn diff_ops(
old: &SuspendedCallState,
new: &SuspendedCallState,
base_path: &Path,
) -> Result<Vec<Op>, TireaError>
fn diff_ops( old: &SuspendedCallState, new: &SuspendedCallState, base_path: &Path, ) -> Result<Vec<Op>, TireaError>
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
Source§const SCOPE: StateScope = ::tirea_state::StateScope::ToolCall
const SCOPE: StateScope = ::tirea_state::StateScope::ToolCall
Lifecycle scope of this state type. Read more
Source§type Action = SuspendedCallAction
type Action = SuspendedCallAction
The action type accepted by this state.
Auto Trait Implementations§
impl Freeze for SuspendedCallState
impl RefUnwindSafe for SuspendedCallState
impl Send for SuspendedCallState
impl Sync for SuspendedCallState
impl Unpin for SuspendedCallState
impl UnsafeUnpin 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