pub struct LoopControlState {
pub pending_interaction: Option<Interaction>,
pub pending_frontend_invocation: Option<FrontendToolInvocation>,
pub inference_error: Option<InferenceError>,
}Expand description
Durable loop control state persisted at state["loop_control"].
Used for cross-step and cross-run flow control that must survive restarts (not ephemeral in-memory variables).
Fields§
§pending_interaction: Option<Interaction>Pending interaction that must be resolved by the client before the run can continue.
pending_frontend_invocation: Option<FrontendToolInvocation>Structured frontend tool invocation (first-class model).
When present, takes precedence over pending_interaction for routing decisions.
inference_error: Option<InferenceError>Inference error envelope for AfterInference cleanup flow.
Trait Implementations§
Source§impl Clone for LoopControlState
impl Clone for LoopControlState
Source§fn clone(&self) -> LoopControlState
fn clone(&self) -> LoopControlState
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 LoopControlState
impl Debug for LoopControlState
Source§impl Default for LoopControlState
impl Default for LoopControlState
Source§fn default() -> LoopControlState
fn default() -> LoopControlState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoopControlState
impl<'de> Deserialize<'de> for LoopControlState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoopControlState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoopControlState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LoopControlState
impl Serialize for LoopControlState
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 LoopControlState
impl State for LoopControlState
Source§type Ref<'a> = LoopControlStateRef<'a>
type Ref<'a> = LoopControlStateRef<'a>
The reference type that provides typed access.
Source§fn state_ref<'a>(
doc: &'a DocCell,
base: Path,
sink: PatchSink<'a>,
) -> <LoopControlState as State>::Ref<'a>
fn state_ref<'a>( doc: &'a DocCell, base: Path, sink: PatchSink<'a>, ) -> <LoopControlState as State>::Ref<'a>
Create a state reference at the specified path. Read more
Source§fn from_value(value: &Value) -> Result<LoopControlState, TireaError>
fn from_value(value: &Value) -> Result<LoopControlState, TireaError>
Deserialize this type from a JSON value.
Auto Trait Implementations§
impl Freeze for LoopControlState
impl RefUnwindSafe for LoopControlState
impl Send for LoopControlState
impl Sync for LoopControlState
impl Unpin for LoopControlState
impl UnsafeUnpin for LoopControlState
impl UnwindSafe for LoopControlState
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