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