pub struct DynamicToolCallResult {
pub success: bool,
pub content: Vec<DynamicToolCallContent>,
}Expand description
Result submitted by a runtime client after executing a dynamic tool.
Fields§
§success: boolWhether the client-side tool execution succeeded.
content: Vec<DynamicToolCallContent>Content fragments returned by the tool.
Defaults to an empty vector when omitted so clients can send a minimal
{ "success": false } payload.
Trait Implementations§
Source§impl Clone for DynamicToolCallResult
impl Clone for DynamicToolCallResult
Source§fn clone(&self) -> DynamicToolCallResult
fn clone(&self) -> DynamicToolCallResult
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 DynamicToolCallResult
impl Debug for DynamicToolCallResult
Source§impl<'de> Deserialize<'de> for DynamicToolCallResult
impl<'de> Deserialize<'de> for DynamicToolCallResult
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 DynamicToolCallResult
impl PartialEq for DynamicToolCallResult
Source§fn eq(&self, other: &DynamicToolCallResult) -> bool
fn eq(&self, other: &DynamicToolCallResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DynamicToolCallResult
impl Serialize for DynamicToolCallResult
impl StructuralPartialEq for DynamicToolCallResult
Auto Trait Implementations§
impl Freeze for DynamicToolCallResult
impl RefUnwindSafe for DynamicToolCallResult
impl Send for DynamicToolCallResult
impl Sync for DynamicToolCallResult
impl Unpin for DynamicToolCallResult
impl UnsafeUnpin for DynamicToolCallResult
impl UnwindSafe for DynamicToolCallResult
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