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§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§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