pub struct RawStreamingToolCall {
pub id: String,
pub call_id: Option<String>,
pub name: String,
pub arguments: Value,
pub signature: Option<String>,
pub additional_params: Option<Value>,
}Expand description
Describes a streaming tool call response (in its entirety)
Fields§
§id: String§call_id: Option<String>§name: String§arguments: Value§signature: Option<String>§additional_params: Option<Value>Implementations§
Source§impl RawStreamingToolCall
impl RawStreamingToolCall
pub fn empty() -> RawStreamingToolCall
pub fn new(id: String, name: String, arguments: Value) -> RawStreamingToolCall
pub fn with_call_id(self, call_id: String) -> RawStreamingToolCall
pub fn with_signature(self, signature: Option<String>) -> RawStreamingToolCall
pub fn with_additional_params( self, additional_params: Option<Value>, ) -> RawStreamingToolCall
Trait Implementations§
Source§impl Clone for RawStreamingToolCall
impl Clone for RawStreamingToolCall
Source§fn clone(&self) -> RawStreamingToolCall
fn clone(&self) -> RawStreamingToolCall
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawStreamingToolCall
impl Debug for RawStreamingToolCall
Source§impl From<RawStreamingToolCall> for ToolCall
impl From<RawStreamingToolCall> for ToolCall
Source§fn from(tool_call: RawStreamingToolCall) -> ToolCall
fn from(tool_call: RawStreamingToolCall) -> ToolCall
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RawStreamingToolCall
impl RefUnwindSafe for RawStreamingToolCall
impl Send for RawStreamingToolCall
impl Sync for RawStreamingToolCall
impl Unpin for RawStreamingToolCall
impl UnwindSafe for RawStreamingToolCall
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)