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() -> Self
pub fn new(id: String, name: String, arguments: Value) -> Self
pub fn with_call_id(self, call_id: String) -> Self
pub fn with_signature(self, signature: Option<String>) -> Self
pub fn with_additional_params(self, additional_params: Option<Value>) -> Self
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) -> Self
fn from(tool_call: RawStreamingToolCall) -> Self
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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
§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)Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more