pub enum RunError {
Show 22 variants
MissingInput {
name: String,
ty: String,
},
InvalidInput {
name: String,
reason: String,
},
UnknownInput {
name: String,
expected: Vec<String>,
},
CapabilityDenied {
node: String,
effect: String,
explicit: bool,
},
ApprovalDenied {
node: String,
reason: String,
},
VerificationFailed {
node: String,
verifier: String,
},
BudgetExceeded {
budget: String,
limit: String,
node: String,
},
Provider {
node: String,
source: ProviderError,
},
Tool {
node: String,
source: ToolError,
},
SubAgent {
node: String,
agent: String,
source: Box<RunError>,
},
AgentNotAvailable {
node: String,
agent: String,
},
UnsupportedResponseType {
node: String,
ty: String,
reason: &'static str,
},
StateNotSet {
node: String,
field: String,
},
TypeMismatch {
node: String,
what: String,
reason: String,
},
OutputNotProduced {
name: String,
},
InvalidMemory {
field: String,
reason: String,
},
Snapshot(SnapshotError),
InputsAfterResume,
NotResumable {
label: String,
nested: bool,
available: Vec<String>,
},
UnknownMemoryField {
field: String,
expected: Vec<String>,
},
UnsupportedIrVersion {
found: String,
supported: String,
},
MalformedIr(String),
}Expand description
Why a run stopped.
Every variant names the node it happened at, because “the agent failed” is
not actionable and “node n7 needed network, which the policy denies” is.
Variants§
MissingInput
A declared input was not supplied.
InvalidInput
An input was supplied with the wrong type.
UnknownInput
An input was supplied that the agent does not declare.
CapabilityDenied
A call needed an effect the artifact’s policy does not permit.
ApprovalDenied
An approval gate was refused.
VerificationFailed
A verify ran its check and the property did not hold.
The verified event carrying failed is emitted before this is
returned, so the record says what the check found and then says the run
ended. Artifacts emitted earlier in the flow stay in the record: they
happened.
BudgetExceeded
A budget ran out.
Provider
The model provider failed.
Tool
A tool failed or was unavailable.
SubAgent
A sub-agent run failed.
AgentNotAvailable
A sub-agent was called but its artifact was not supplied.
UnsupportedResponseType
A response type cannot be requested from a model.
StateNotSet
Working memory was read before it was written.
TypeMismatch
A value did not match its declared type.
OutputNotProduced
The flow finished without producing a declared output.
InvalidMemory
A stored persistent value did not match its declared type.
Snapshot(SnapshotError)
A snapshot could not be used to continue this artifact.
InputsAfterResume
Inputs were supplied alongside a resumption that already carries them.
NotResumable
stop_at named a checkpoint the run could not stop at.
Fields
UnknownMemoryField
The store carries a field this artifact does not declare.
UnsupportedIrVersion
The artifact’s IR major version is not implemented.
MalformedIr(String)
The artifact is internally inconsistent.
Implementations§
Trait Implementations§
Source§impl Error for RunError
impl Error for RunError
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()