pub struct ToolCallOutput {
pub outcome: ToolCallOutcome,
pub control: Option<ToolControl>,
}Fields§
§outcome: ToolCallOutcome§control: Option<ToolControl>Implementations§
Source§impl ToolCallOutput
impl ToolCallOutput
pub fn success(value: impl Into<ToolValue>) -> ToolCallOutput
pub fn failure(failure: ToolFailure) -> ToolCallOutput
pub fn cancelled(cancellation: ToolCancellation) -> ToolCallOutput
pub fn with_control(self, control: ToolControl) -> ToolCallOutput
pub fn is_success(&self) -> bool
pub fn status(&self) -> ToolCallStatus
pub fn value_for_projection(&self) -> Value
pub fn attachments(&self) -> Vec<AttachmentRef>
Trait Implementations§
Source§impl Clone for ToolCallOutput
impl Clone for ToolCallOutput
Source§fn clone(&self) -> ToolCallOutput
fn clone(&self) -> ToolCallOutput
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 ToolCallOutput
impl Debug for ToolCallOutput
Source§impl<'de> Deserialize<'de> for ToolCallOutput
impl<'de> Deserialize<'de> for ToolCallOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolCallOutput
impl PartialEq for ToolCallOutput
Source§fn eq(&self, other: &ToolCallOutput) -> bool
fn eq(&self, other: &ToolCallOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallOutput
impl Serialize for ToolCallOutput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ToolCallOutput
Auto Trait Implementations§
impl Freeze for ToolCallOutput
impl RefUnwindSafe for ToolCallOutput
impl Send for ToolCallOutput
impl Sync for ToolCallOutput
impl Unpin for ToolCallOutput
impl UnsafeUnpin for ToolCallOutput
impl UnwindSafe for ToolCallOutput
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