pub struct ToolCallAssembler { /* private fields */ }Implementations§
Source§impl ToolCallAssembler
impl ToolCallAssembler
pub fn new() -> Self
pub fn push_fragment( &mut self, fragment: ToolCallFragment, ) -> Result<(), ToolCallAssemblyError>
pub fn push_event( &mut self, event: &ProviderStreamEvent, ) -> Result<usize, ToolCallAssemblyError>
pub fn finish(self) -> Result<Vec<AssembledToolCall>, ToolCallAssemblyError>
Trait Implementations§
Source§impl Clone for ToolCallAssembler
impl Clone for ToolCallAssembler
Source§fn clone(&self) -> ToolCallAssembler
fn clone(&self) -> ToolCallAssembler
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 ToolCallAssembler
impl Debug for ToolCallAssembler
Source§impl Default for ToolCallAssembler
impl Default for ToolCallAssembler
Source§fn default() -> ToolCallAssembler
fn default() -> ToolCallAssembler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolCallAssembler
impl RefUnwindSafe for ToolCallAssembler
impl Send for ToolCallAssembler
impl Sync for ToolCallAssembler
impl Unpin for ToolCallAssembler
impl UnsafeUnpin for ToolCallAssembler
impl UnwindSafe for ToolCallAssembler
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