#[non_exhaustive]pub enum ModelTranscriptError {
TooManyTurns {
maximum: usize,
actual: usize,
},
ModelIdentityDrift,
ProviderFormatDrift,
DuplicateAttemptId {
attempt_id: AttemptId,
},
DuplicateProviderCallId,
DuplicateInvocationId {
invocation_id: InvocationId,
},
PayloadBytesOverflow,
PayloadTooLarge {
maximum: ByteCount,
actual: ByteCount,
},
}Expand description
Invalid complete model/tool transcript.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooManyTurns
The immutable prior-turn ceiling was exceeded.
ModelIdentityDrift
A later turn used another pinned model binding.
ProviderFormatDrift
A later turn changed provider continuation syntax.
DuplicateAttemptId
One physical model or tool attempt appeared twice.
DuplicateProviderCallId
A provider tool-call identifier was reused.
DuplicateInvocationId
A logical tool invocation was reused.
Fields
§
invocation_id: InvocationIdReused logical invocation identity.
PayloadBytesOverflow
Aggregate byte accounting overflowed.
PayloadTooLarge
Aggregate canonical transcript bytes exceeded the hard request boundary.
Trait Implementations§
Source§impl Clone for ModelTranscriptError
impl Clone for ModelTranscriptError
Source§impl Debug for ModelTranscriptError
impl Debug for ModelTranscriptError
Source§impl Display for ModelTranscriptError
impl Display for ModelTranscriptError
impl Eq for ModelTranscriptError
Source§impl Error for ModelTranscriptError
impl Error for ModelTranscriptError
1.30.0 · 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 PartialEq for ModelTranscriptError
impl PartialEq for ModelTranscriptError
impl StructuralPartialEq for ModelTranscriptError
Auto Trait Implementations§
impl Forget for ModelTranscriptError
impl Freeze for ModelTranscriptError
impl Move for ModelTranscriptError
impl RefUnwindSafe for ModelTranscriptError
impl Send for ModelTranscriptError
impl Sync for ModelTranscriptError
impl Unpin for ModelTranscriptError
impl UnsafeUnpin for ModelTranscriptError
impl UnwindSafe for ModelTranscriptError
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