pub struct StreamToolFunction {
pub name: Option<String>,
pub arguments: Option<String>,
}Expand description
Incremental function fields carried by a streaming tool call.
Fields§
§name: Option<String>Function name; omitted after the initial delta.
arguments: Option<String>JSON argument fragment; omitted when this delta carries other metadata.
Trait Implementations§
Source§impl Clone for StreamToolFunction
impl Clone for StreamToolFunction
Source§fn clone(&self) -> StreamToolFunction
fn clone(&self) -> StreamToolFunction
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 StreamToolFunction
impl Debug for StreamToolFunction
Source§impl<'de> Deserialize<'de> for StreamToolFunction
impl<'de> Deserialize<'de> for StreamToolFunction
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
Auto Trait Implementations§
impl Freeze for StreamToolFunction
impl RefUnwindSafe for StreamToolFunction
impl Send for StreamToolFunction
impl Sync for StreamToolFunction
impl Unpin for StreamToolFunction
impl UnsafeUnpin for StreamToolFunction
impl UnwindSafe for StreamToolFunction
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