pub struct ToolUseAccumulator {
pub id: String,
pub name: String,
pub input_json: String,
pub block_index: usize,
}Expand description
Accumulator for a single tool use during streaming.
Fields§
§id: StringTool call ID
name: StringTool name
input_json: StringAccumulated JSON input (may be incomplete during streaming)
block_index: usizeBlock index for ordering
Trait Implementations§
Source§impl Debug for ToolUseAccumulator
impl Debug for ToolUseAccumulator
Source§impl Default for ToolUseAccumulator
impl Default for ToolUseAccumulator
Source§fn default() -> ToolUseAccumulator
fn default() -> ToolUseAccumulator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolUseAccumulator
impl RefUnwindSafe for ToolUseAccumulator
impl Send for ToolUseAccumulator
impl Sync for ToolUseAccumulator
impl Unpin for ToolUseAccumulator
impl UnwindSafe for ToolUseAccumulator
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