pub enum Error {
Show 13 variants
EmptyIdentifier(&'static str),
ContextBudgetExceeded {
used: u32,
budget: u32,
},
InvalidCompactionRange {
start: u64,
end_exclusive: u64,
},
SequenceMismatch {
expected: u64,
actual: u64,
},
RunIdMismatch {
expected: String,
actual: String,
},
InvalidTransition {
phase: &'static str,
event: &'static str,
},
StepMismatch {
expected: u32,
actual: u32,
},
TurnMismatch {
expected: String,
actual: String,
},
TurnReused {
turn_id: String,
},
EmptyToolProposalsRejectionReason,
ToolCallMismatch {
expected: String,
actual: String,
},
ToolCallReused {
call_id: String,
},
UnproposedToolCall,
}Expand description
Core error type for Platonic primitives.
Variants§
EmptyIdentifier(&'static str)
Identifier constructor received an empty value.
ContextBudgetExceeded
A token budget would be exceeded.
Fields
InvalidCompactionRange
A context compaction range was empty or reversed.
Fields
SequenceMismatch
A recorded event sequence number was not the expected next value.
Fields
RunIdMismatch
An event for one run was applied to another run.
Fields
InvalidTransition
An event was not legal in the current run phase.
Fields
StepMismatch
A model response did not match the pending model request.
Fields
TurnMismatch
A turn-scoped event did not match the pending turn.
Fields
TurnReused
A new turn reused an earlier turn id from the same run.
EmptyToolProposalsRejectionReason
A whole-batch tool proposal rejection omitted its explanation.
ToolCallMismatch
A tool event did not match the pending tool call.
Fields
ToolCallReused
A validated tool call reused an earlier call id from the same run.
UnproposedToolCall
A validated tool call did not match any pending model proposal.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()