pub struct UiToolCall {
pub id: String,
pub name: String,
pub args: Value,
}Expand description
A tool call visible in an assistant message snapshot, normalized to plain
data so both the local (rpi_ai::Content::ToolCall) and the wire
({"type":"toolCall",…}) shapes map onto it.
Fields§
§id: String§name: String§args: ValueTrait Implementations§
Source§impl Clone for UiToolCall
impl Clone for UiToolCall
Source§impl Debug for UiToolCall
impl Debug for UiToolCall
Source§impl PartialEq for UiToolCall
impl PartialEq for UiToolCall
impl StructuralPartialEq for UiToolCall
Auto Trait Implementations§
impl Freeze for UiToolCall
impl RefUnwindSafe for UiToolCall
impl Send for UiToolCall
impl Sync for UiToolCall
impl Unpin for UiToolCall
impl UnsafeUnpin for UiToolCall
impl UnwindSafe for UiToolCall
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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