#[non_exhaustive]pub enum ModelTranscriptTurnError {
ResponseHasNoToolCalls,
MissingProviderReplay,
OutcomeCountMismatch {
expected: usize,
actual: usize,
},
MissingProviderCallId {
index: usize,
},
ProviderCallIdMismatch {
index: usize,
},
ToolIdentityMismatch {
index: usize,
expected: Box<CapabilityIdentity>,
actual: Box<CapabilityIdentity>,
},
DuplicateInvocationId {
invocation_id: InvocationId,
},
AmbiguousExternalOutcome {
index: usize,
},
}Expand description
Invalid model/tool transcript turn.
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.
ResponseHasNoToolCalls
Only a tool-calling response can precede tool results.
MissingProviderReplay
Stateless continuation requires exact provider output evidence.
OutcomeCountMismatch
The complete proposal set was not answered exactly once.
MissingProviderCallId
One model proposal omitted its provider correlation identity.
ProviderCallIdMismatch
An outcome answered another provider call.
ToolIdentityMismatch
An outcome claimed another registered tool version.
Fields
§
expected: Box<CapabilityIdentity>Exact proposed tool identity.
§
actual: Box<CapabilityIdentity>Rejected outcome identity.
DuplicateInvocationId
One logical tool invocation was reused for two proposals.
Fields
§
invocation_id: InvocationIdReused durable invocation identity.
AmbiguousExternalOutcome
Unknown external effects must be reconciled before continuation.
Trait Implementations§
Source§impl Clone for ModelTranscriptTurnError
impl Clone for ModelTranscriptTurnError
Source§impl Debug for ModelTranscriptTurnError
impl Debug for ModelTranscriptTurnError
Source§impl Display for ModelTranscriptTurnError
impl Display for ModelTranscriptTurnError
impl Eq for ModelTranscriptTurnError
Source§impl Error for ModelTranscriptTurnError
impl Error for ModelTranscriptTurnError
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 ModelTranscriptTurnError
impl PartialEq for ModelTranscriptTurnError
impl StructuralPartialEq for ModelTranscriptTurnError
Auto Trait Implementations§
impl Forget for ModelTranscriptTurnError
impl Freeze for ModelTranscriptTurnError
impl Move for ModelTranscriptTurnError
impl RefUnwindSafe for ModelTranscriptTurnError
impl Send for ModelTranscriptTurnError
impl Sync for ModelTranscriptTurnError
impl Unpin for ModelTranscriptTurnError
impl UnsafeUnpin for ModelTranscriptTurnError
impl UnwindSafe for ModelTranscriptTurnError
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