pub enum ReasonCode {
FullySupported,
UnsupportedByBackend,
UnsupportedByModel,
BackendLimitReached,
InsufficientEvidence,
FeatureDisabled,
UnsafeForRequest,
PluginIncomplete,
NotRelevant,
Custom {
reason: String,
},
}Expand description
Machine-readable reason for the translation outcome.
Each variant describes WHY an intent received its status. This allows operators to distinguish between plugin limitations, backend limitations, policy decisions, and safety constraints.
Variants§
FullySupported
Intent was fully supported and applied.
UnsupportedByBackend
Backend does not support this intent type at all.
UnsupportedByModel
Backend supports the intent but the specific model lacks the feature.
BackendLimitReached
Intent was degraded due to backend-specific limits (e.g., max breakpoints).
InsufficientEvidence
Not enough historical evidence to apply the intent confidently.
FeatureDisabled
The feature is available but administratively disabled.
UnsafeForRequest
Applying this intent would be unsafe for the current request.
PluginIncomplete
The plugin implementation is incomplete for this intent type.
NotRelevant
Intent was not relevant to the current request context.
Custom
Escape hatch for reason codes not yet in the enum.
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReasonCode
impl Debug for ReasonCode
Source§impl<'de> Deserialize<'de> for ReasonCode
impl<'de> Deserialize<'de> for ReasonCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for ReasonCode
impl Hash for ReasonCode
Source§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
Source§fn eq(&self, other: &ReasonCode) -> bool
fn eq(&self, other: &ReasonCode) -> bool
self and other values to be equal, and is used by ==.