#[non_exhaustive]pub enum AgentDescriptorError {
WrongCapabilityKind {
actual: CapabilityKind,
},
RetiredModel {
identity: Box<CapabilityIdentity>,
},
ToolCallsWithoutTools {
actual: ExecutionCount,
},
ToolsWithoutToolCalls,
ReservedOutputToolName,
ModelToolCallingUnsupported,
ModelToolDefinitionsInsufficient {
required: ExecutionCount,
available: ExecutionCount,
},
ModelRequestToolDefinitionsAboveHardMaximum {
maximum: ExecutionCount,
actual: ExecutionCount,
},
ModelToolCallsInsufficient {
required: ExecutionCount,
available: ExecutionCount,
},
ModelNativeStructuredOutputUnsupported {
available: ModelStructuredOutputLevel,
},
AbsoluteDeadlineIsNotReusable {
deadline: Timestamp,
},
}Expand description
Invalid cross-component agent definition snapshot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WrongCapabilityKind
Common metadata classified the capability as something other than an agent.
Fields
actual: CapabilityKindConflicting capability kind.
RetiredModel
The resolved model binding is unavailable for a new definition.
Fields
identity: Box<CapabilityIdentity>Retired owner-qualified model identity.
ToolCallsWithoutTools
Ordinary call capacity was declared without an ordinary tool.
Fields
actual: ExecutionCountRejected nonzero capacity.
ToolsWithoutToolCalls
Ordinary tools were present but the loop could never invoke one.
ReservedOutputToolName
A user tool shadowed the framework-owned final-output marker.
ModelToolCallingUnsupported
The pinned model cannot accept any tool definition.
ModelToolDefinitionsInsufficient
The pinned model cannot accept all ordinary and synthetic definitions.
Fields
required: ExecutionCountRequired ordinary plus synthetic definition count.
available: ExecutionCountPinned model capacity.
ModelRequestToolDefinitionsAboveHardMaximum
Ordinary plus synthetic definitions exceeded the core request boundary.
Fields
maximum: ExecutionCountImmutable core request ceiling.
actual: ExecutionCountRejected ordinary plus synthetic definition count.
ModelToolCallsInsufficient
The pinned model cannot emit the configured per-response calls.
Fields
required: ExecutionCountRequired model response call capacity.
available: ExecutionCountPinned model capacity.
ModelNativeStructuredOutputUnsupported
Native strategy was selected for a weaker model binding.
Fields
available: ModelStructuredOutputLevelPinned model capability level.
AbsoluteDeadlineIsNotReusable
A reusable definition attempted to embed a one-run absolute deadline.
Trait Implementations§
Source§impl Clone for AgentDescriptorError
impl Clone for AgentDescriptorError
Source§impl Debug for AgentDescriptorError
impl Debug for AgentDescriptorError
Source§impl Display for AgentDescriptorError
impl Display for AgentDescriptorError
impl Eq for AgentDescriptorError
Source§impl Error for AgentDescriptorError
impl Error for AgentDescriptorError
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()