pub struct SuspendedToolCallsState {
pub calls: HashMap<String, SuspendedCall>,
}Expand description
Durable suspended tool-call map persisted at state["__suspended_tool_calls"].
Fields§
§calls: HashMap<String, SuspendedCall>Per-call suspended tool calls awaiting external resolution.
Trait Implementations§
Source§impl Clone for SuspendedToolCallsState
impl Clone for SuspendedToolCallsState
Source§fn clone(&self) -> SuspendedToolCallsState
fn clone(&self) -> SuspendedToolCallsState
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 SuspendedToolCallsState
impl Debug for SuspendedToolCallsState
Source§impl Default for SuspendedToolCallsState
impl Default for SuspendedToolCallsState
Source§fn default() -> SuspendedToolCallsState
fn default() -> SuspendedToolCallsState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuspendedToolCallsState
impl<'de> Deserialize<'de> for SuspendedToolCallsState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SuspendedToolCallsState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SuspendedToolCallsState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SuspendedToolCallsState
impl Serialize for SuspendedToolCallsState
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 SuspendedToolCallsState
impl State for SuspendedToolCallsState
Source§const PATH: &'static str = "__suspended_tool_calls"
const PATH: &'static str = "__suspended_tool_calls"
Canonical JSON path for this state type. Read more
Source§type Ref<'a> = SuspendedToolCallsStateRef<'a>
type Ref<'a> = SuspendedToolCallsStateRef<'a>
The reference type that provides typed access.
Source§fn state_ref<'a>(
doc: &'a DocCell,
base: Path,
sink: PatchSink<'a>,
) -> <SuspendedToolCallsState as State>::Ref<'a>
fn state_ref<'a>( doc: &'a DocCell, base: Path, sink: PatchSink<'a>, ) -> <SuspendedToolCallsState as State>::Ref<'a>
Create a state reference at the specified path. Read more
Source§fn from_value(value: &Value) -> Result<SuspendedToolCallsState, TireaError>
fn from_value(value: &Value) -> Result<SuspendedToolCallsState, TireaError>
Deserialize this type from a JSON value.
Auto Trait Implementations§
impl Freeze for SuspendedToolCallsState
impl RefUnwindSafe for SuspendedToolCallsState
impl Send for SuspendedToolCallsState
impl Sync for SuspendedToolCallsState
impl Unpin for SuspendedToolCallsState
impl UnsafeUnpin for SuspendedToolCallsState
impl UnwindSafe for SuspendedToolCallsState
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