pub enum RecordValidationError {
EmptyConfigurationChange,
InvalidToolCall(ContentValidationError),
ToolArgumentsMustBeObject,
ToolArgumentsOutOfBounds(ProtocolMetadataError),
InvalidToolResultContent,
BranchReferenceMismatch,
InconsistentToolFailure,
PresentationOnFailure,
InvalidInterruptionReason,
}Expand description
Error returned when validating a durable record payload.
Variants§
EmptyConfigurationChange
A configuration record does not change any typed setting.
InvalidToolCall(ContentValidationError)
Tool name or arguments are invalid.
ToolArgumentsMustBeObject
Tool arguments are not a JSON object.
ToolArgumentsOutOfBounds(ProtocolMetadataError)
Tool arguments exceed protocol JSON bounds.
InvalidToolResultContent
Tool terminal content is empty, excessive, or contains invalid blocks.
BranchReferenceMismatch
Branch-scoped envelope and payload identifiers disagree.
InconsistentToolFailure
Tool error flag does not match machine-readable failure presence.
PresentationOnFailure
A failed execution cannot claim a successful change presentation.
InvalidInterruptionReason
Interruption diagnostic is empty, oversized, or contains a null character.
Trait Implementations§
Source§impl Debug for RecordValidationError
impl Debug for RecordValidationError
Source§impl Display for RecordValidationError
impl Display for RecordValidationError
Source§impl Error for RecordValidationError
impl Error for RecordValidationError
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 RecordValidationError
impl From<ContentValidationError> for RecordValidationError
Source§fn from(source: ContentValidationError) -> Self
fn from(source: ContentValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolMetadataError> for RecordValidationError
impl From<ProtocolMetadataError> for RecordValidationError
Source§fn from(source: ProtocolMetadataError) -> Self
fn from(source: ProtocolMetadataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RecordValidationError
impl !UnwindSafe for RecordValidationError
impl Freeze for RecordValidationError
impl Send for RecordValidationError
impl Sync for RecordValidationError
impl Unpin for RecordValidationError
impl UnsafeUnpin for RecordValidationError
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