pub struct State {
pub tool_signals: Option<ToolSignals>,
pub extra: BTreeMap<String, StateValue>,
}Expand description
Routing facts accumulated across one session’s algorithm runs.
Fields§
§tool_signals: Option<ToolSignals>Tool-result signals for the current request, set by the tool-signal
processor. None until it runs or when the request has no tool activity,
so routers must treat absence as “no signal yet”.
extra: BTreeMap<String, StateValue>Algorithm-specific state keyed by stable internal names.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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 State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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