pub enum PermissionAdmissionError {
InvalidArguments {
message: String,
},
ReviewModelUnavailable,
ReviewFailed {
message: String,
},
InvalidReviewOutput {
message: String,
},
ReviewOutputTruncated {
finish_reason: FinishReason,
},
HumanReviewUnavailable {
message: String,
},
StaleReviewResponse {
expected: String,
actual: String,
},
Cancelled,
Core {
source: CoreError,
},
}Expand description
Errors raised by permission request parsing or admission.
Variants§
InvalidArguments
Tool arguments were invalid and should be returned to the model.
No reviewer/model was configured for a required permission gate.
ReviewFailed
Model-backed review failed before producing a decision.
InvalidReviewOutput
Model-backed review returned output that violates the review contract.
ReviewOutputTruncated
The reviewer ran out of output tokens before it could answer.
This is an output-budget failure rather than a contract violation: the reviewer never reached the review contract, so runtime policy may retry it with a larger budget or hand the decision to the host instead of recording the reviewer as non-compliant.
Fields
finish_reason: FinishReasonFinish reason reported by the provider.
The optional human fallback could not accept or await a response.
StaleReviewResponse
A response did not match the currently pending request identity.
Cancelled
Permission admission observed cooperative cancellation.
Core
Core protocol value rejected the tool definition.
Trait Implementations§
Source§impl Debug for PermissionAdmissionError
impl Debug for PermissionAdmissionError
Source§impl Display for PermissionAdmissionError
impl Display for PermissionAdmissionError
Source§impl Error for PermissionAdmissionError
impl Error for PermissionAdmissionError
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()