pub struct ToolResponse {
pub content: String,
pub is_error: bool,
}Expand description
Output from tool execution.
Fields§
§content: StringThe tool’s output content.
is_error: boolWhether the execution resulted in an error.
Implementations§
Trait Implementations§
Source§impl Clone for ToolResponse
impl Clone for ToolResponse
Source§fn clone(&self) -> ToolResponse
fn clone(&self) -> ToolResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolResponse
impl Debug for ToolResponse
Source§impl Outcome for ToolResponse
impl Outcome for ToolResponse
Source§fn is_success(&self) -> bool
fn is_success(&self) -> bool
Returns true if the operation succeeded.
Source§impl Retryable for ToolResponse
impl Retryable for ToolResponse
Source§fn should_retry(&self) -> bool
fn should_retry(&self) -> bool
Returns true if the operation should be retried.
Source§impl Timeoutable for ToolResponse
impl Timeoutable for ToolResponse
Source§fn timeout_error(duration: Duration) -> Self
fn timeout_error(duration: Duration) -> Self
Create a timeout error.
Auto Trait Implementations§
impl Freeze for ToolResponse
impl RefUnwindSafe for ToolResponse
impl Send for ToolResponse
impl Sync for ToolResponse
impl Unpin for ToolResponse
impl UnwindSafe for ToolResponse
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