pub enum EventValidationError {
InvalidDelta,
InvalidToolCall(ContentValidationError),
InvalidApprovalItems,
InvalidProgress,
InvalidHostedToolObservation,
InvalidModelRetry,
InvalidReferences,
}Expand description
Error returned when validating event data.
Variants§
InvalidDelta
A streaming delta is empty, oversized, or contains a null character.
InvalidToolCall(ContentValidationError)
Tool-call payload validation failed.
InvalidApprovalItems
Approval capabilities or resources exceed collection/string bounds.
InvalidProgress
Progress details, units, or unit relationship are invalid.
InvalidHostedToolObservation
Hosted-tool observation source count exceeds the durable protocol bound.
InvalidModelRetry
Model retry attempt counts or delay exceed protocol bounds.
InvalidReferences
Run and turn references do not match the event kind.
Trait Implementations§
Source§impl Debug for EventValidationError
impl Debug for EventValidationError
Source§impl Display for EventValidationError
impl Display for EventValidationError
Source§impl Error for EventValidationError
impl Error for EventValidationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ContentValidationError> for EventValidationError
impl From<ContentValidationError> for EventValidationError
Source§fn from(source: ContentValidationError) -> Self
fn from(source: ContentValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EventValidationError
impl !UnwindSafe for EventValidationError
impl Freeze for EventValidationError
impl Send for EventValidationError
impl Sync for EventValidationError
impl Unpin for EventValidationError
impl UnsafeUnpin for EventValidationError
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