pub struct ProcessToolCallResult {
pub content: String,
pub is_error: bool,
pub data: Value,
}Expand description
tools/call result (child -> host): the subset of the native
crate::tools::ToolResult a child populates. content becomes the
model-visible text, optional data carries a structured payload, and
is_error marks a tool-level failure without failing the turn.
Fields§
§content: String§is_error: bool§data: ValueTrait Implementations§
Source§impl Clone for ProcessToolCallResult
impl Clone for ProcessToolCallResult
Source§fn clone(&self) -> ProcessToolCallResult
fn clone(&self) -> ProcessToolCallResult
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 ProcessToolCallResult
impl Debug for ProcessToolCallResult
Source§impl<'de> Deserialize<'de> for ProcessToolCallResult
impl<'de> Deserialize<'de> for ProcessToolCallResult
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 ProcessToolCallResult
impl PartialEq for ProcessToolCallResult
Source§fn eq(&self, other: &ProcessToolCallResult) -> bool
fn eq(&self, other: &ProcessToolCallResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessToolCallResult
impl Serialize for ProcessToolCallResult
impl StructuralPartialEq for ProcessToolCallResult
Auto Trait Implementations§
impl Freeze for ProcessToolCallResult
impl RefUnwindSafe for ProcessToolCallResult
impl Send for ProcessToolCallResult
impl Sync for ProcessToolCallResult
impl Unpin for ProcessToolCallResult
impl UnsafeUnpin for ProcessToolCallResult
impl UnwindSafe for ProcessToolCallResult
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