pub struct ToolCallId(pub String);Expand description
Re-exports of the v2 wire types per ADR 0015. v2 is shipped as
part of inferd-client 0.2 so consumers building against v2 can
reach the proto types without a separate inferd-proto dep.
Strong type around the string id that pairs an assistant-emitted
tool_use block with the matching tool_result block in the
consumer’s follow-up request. Wrapping it lets the daemon ensure
the round-trip uses the same id and lets middleware authors avoid
passing raw String for ids.
Tuple Fields§
§0: StringImplementations§
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 (const: unstable) · 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<'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 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 Hash for ToolCallId
impl Hash for ToolCallId
Source§impl PartialEq for ToolCallId
impl PartialEq for ToolCallId
Source§fn eq(&self, other: &ToolCallId) -> bool
fn eq(&self, other: &ToolCallId) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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