pub struct ToolCallStreamInfo {
pub name: String,
pub args_tokens: usize,
pub description: Option<String>,
}Expand description
Streaming progress info for a tool call being generated by the LLM
Fields§
§name: StringTool name (may be empty if not yet streamed)
args_tokens: usizeEstimated token count of arguments streamed so far (~chars/4)
description: Option<String>Optional description extracted from arguments (best-effort, may be None if JSON incomplete)
Trait Implementations§
Source§impl Clone for ToolCallStreamInfo
impl Clone for ToolCallStreamInfo
Source§fn clone(&self) -> ToolCallStreamInfo
fn clone(&self) -> ToolCallStreamInfo
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 ToolCallStreamInfo
impl Debug for ToolCallStreamInfo
Source§impl<'de> Deserialize<'de> for ToolCallStreamInfo
impl<'de> Deserialize<'de> for ToolCallStreamInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolCallStreamInfo
impl PartialEq for ToolCallStreamInfo
Source§impl Serialize for ToolCallStreamInfo
impl Serialize for ToolCallStreamInfo
impl StructuralPartialEq for ToolCallStreamInfo
Auto Trait Implementations§
impl Freeze for ToolCallStreamInfo
impl RefUnwindSafe for ToolCallStreamInfo
impl Send for ToolCallStreamInfo
impl Sync for ToolCallStreamInfo
impl Unpin for ToolCallStreamInfo
impl UnwindSafe for ToolCallStreamInfo
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