pub struct ErrorOccurredInput {
pub timestamp: i64,
pub cwd: PathBuf,
pub error: String,
pub error_context: String,
pub recoverable: bool,
}Expand description
Input for the errorOccurred hook.
Fields§
§timestamp: i64Unix timestamp (ms).
cwd: PathBufWorking directory.
error: StringThe error message.
error_context: StringContext where the error occurred: "model_call", "tool_execution", "system", "user_input".
recoverable: boolWhether the error is recoverable.
Trait Implementations§
Source§impl Clone for ErrorOccurredInput
impl Clone for ErrorOccurredInput
Source§fn clone(&self) -> ErrorOccurredInput
fn clone(&self) -> ErrorOccurredInput
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 ErrorOccurredInput
impl Debug for ErrorOccurredInput
Source§impl<'de> Deserialize<'de> for ErrorOccurredInput
impl<'de> Deserialize<'de> for ErrorOccurredInput
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 ErrorOccurredInput
impl RefUnwindSafe for ErrorOccurredInput
impl Send for ErrorOccurredInput
impl Sync for ErrorOccurredInput
impl Unpin for ErrorOccurredInput
impl UnsafeUnpin for ErrorOccurredInput
impl UnwindSafe for ErrorOccurredInput
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