pub struct ToolUseRef<'a> {
pub id: &'a str,
pub name: &'a str,
pub input: &'a Value,
}Expand description
Borrowed view of a ContentPart::ToolUse block — returned by
ModelResponse::tool_uses so callers can iterate without
pattern-matching every entry. Owned data still lives on the
ModelResponse; this is a zero-copy projection.
Fields§
§id: &'a strStable id matched by the corresponding ToolResult reply.
name: &'a strTool name the model invoked.
input: &'a ValueJSON arguments the model produced for the tool.
Trait Implementations§
Source§impl<'a> Clone for ToolUseRef<'a>
impl<'a> Clone for ToolUseRef<'a>
Source§fn clone(&self) -> ToolUseRef<'a>
fn clone(&self) -> ToolUseRef<'a>
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<'a> Debug for ToolUseRef<'a>
impl<'a> Debug for ToolUseRef<'a>
impl<'a> Copy for ToolUseRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToolUseRef<'a>
impl<'a> RefUnwindSafe for ToolUseRef<'a>
impl<'a> Send for ToolUseRef<'a>
impl<'a> Sync for ToolUseRef<'a>
impl<'a> Unpin for ToolUseRef<'a>
impl<'a> UnsafeUnpin for ToolUseRef<'a>
impl<'a> UnwindSafe for ToolUseRef<'a>
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