pub struct ToolCallId(pub String);Expand description
Tool call identifier - unique per tool call.
These IDs are typically generated by the LLM API and used to match tool results back to their corresponding tool calls.
Tuple Fields§
§0: StringImplementations§
Source§impl ToolCallId
impl ToolCallId
Sourcepub fn new() -> ToolCallId
pub fn new() -> ToolCallId
Create a new random tool call ID.
§Determinism
Only call from runtime at input boundary, never within reducer logic.
Sourcepub fn from_string(s: impl Into<String>) -> ToolCallId
pub fn from_string(s: impl Into<String>) -> ToolCallId
Create from an existing string (typically from LLM API).
Trait Implementations§
Source§impl Clone for ToolCallId
impl Clone for ToolCallId
Source§fn clone(&self) -> ToolCallId
fn clone(&self) -> ToolCallId
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 ToolCallId
impl Debug for ToolCallId
Source§impl Default for ToolCallId
impl Default for ToolCallId
Source§fn default() -> ToolCallId
fn default() -> ToolCallId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallId
impl<'de> Deserialize<'de> for ToolCallId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ToolCallId
impl Display for ToolCallId
Source§impl From<&str> for ToolCallId
impl From<&str> for ToolCallId
Source§fn from(s: &str) -> ToolCallId
fn from(s: &str) -> ToolCallId
Converts to this type from the input type.
Source§impl From<String> for ToolCallId
impl From<String> for ToolCallId
Source§fn from(s: String) -> ToolCallId
fn from(s: String) -> ToolCallId
Converts to this type from the input type.
Source§impl From<ToolCallId> for String
impl From<ToolCallId> for String
Source§fn from(id: ToolCallId) -> String
fn from(id: ToolCallId) -> String
Converts to this type from the input type.
Source§impl Hash for ToolCallId
impl Hash for ToolCallId
Source§impl PartialEq for ToolCallId
impl PartialEq for ToolCallId
Source§impl Serialize for ToolCallId
impl Serialize for ToolCallId
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
impl Eq for ToolCallId
impl StructuralPartialEq for ToolCallId
Auto Trait Implementations§
impl Freeze for ToolCallId
impl RefUnwindSafe for ToolCallId
impl Send for ToolCallId
impl Sync for ToolCallId
impl Unpin for ToolCallId
impl UnwindSafe for ToolCallId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.