pub struct ToolStateError {
pub status: String,
pub input: Value,
pub error: String,
pub metadata: Option<Value>,
pub time: ToolTimeRange,
pub extra: Value,
}Expand description
Tool state when errored.
Fields§
§status: StringStatus field (always “error”).
input: ValueTool input arguments.
error: StringError message.
metadata: Option<Value>Additional metadata.
time: ToolTimeRangeExecution time range.
extra: ValueAdditional fields.
Trait Implementations§
Source§impl Clone for ToolStateError
impl Clone for ToolStateError
Source§fn clone(&self) -> ToolStateError
fn clone(&self) -> ToolStateError
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 ToolStateError
impl Debug for ToolStateError
Source§impl<'de> Deserialize<'de> for ToolStateError
impl<'de> Deserialize<'de> for ToolStateError
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
Auto Trait Implementations§
impl Freeze for ToolStateError
impl RefUnwindSafe for ToolStateError
impl Send for ToolStateError
impl Sync for ToolStateError
impl Unpin for ToolStateError
impl UnwindSafe for ToolStateError
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