#[non_exhaustive]pub enum AgentExecutionConfigError {
ZeroModelTurns,
ModelTurnsAboveHardMaximum {
maximum: ExecutionCount,
actual: ExecutionCount,
},
OutputRepairsAboveHardMaximum {
maximum: ExecutionCount,
actual: ExecutionCount,
},
OutputRepairsConsumeAllTurns {
repairs: ExecutionCount,
turns: ExecutionCount,
},
ToolCallsAboveHardMaximum {
maximum: ExecutionCount,
actual: ExecutionCount,
},
ParallelConcurrencyBelowTwo {
actual: ExecutionCount,
},
ConcurrencyExceedsToolCalls {
concurrency: ExecutionCount,
tool_calls: ExecutionCount,
},
}Expand description
Invalid prebuilt agent-loop controls.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroModelTurns
A loop allowed no model invocation.
ModelTurnsAboveHardMaximum
Model-turn capacity exceeded the immutable resource bound.
OutputRepairsAboveHardMaximum
Output-repair capacity exceeded the immutable resource bound.
OutputRepairsConsumeAllTurns
Repair turns left no capacity for an initial model result.
Fields
§
repairs: ExecutionCountRejected repair capacity.
§
turns: ExecutionCountTotal model-turn capacity.
ToolCallsAboveHardMaximum
Per-turn tool calls exceeded the immutable resource bound.
ParallelConcurrencyBelowTwo
Parallel mode was selected with sequential capacity.
Fields
§
actual: ExecutionCountRejected concurrency.
ConcurrencyExceedsToolCalls
Parallel concurrency exceeded possible calls in one response.
Fields
§
concurrency: ExecutionCountRejected concurrency.
§
tool_calls: ExecutionCountPer-response call ceiling.
Trait Implementations§
Source§impl Clone for AgentExecutionConfigError
impl Clone for AgentExecutionConfigError
Source§impl Debug for AgentExecutionConfigError
impl Debug for AgentExecutionConfigError
Source§impl Display for AgentExecutionConfigError
impl Display for AgentExecutionConfigError
impl Eq for AgentExecutionConfigError
Source§impl Error for AgentExecutionConfigError
impl Error for AgentExecutionConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for AgentExecutionConfigError
Auto Trait Implementations§
impl Forget for AgentExecutionConfigError
impl Freeze for AgentExecutionConfigError
impl Move for AgentExecutionConfigError
impl RefUnwindSafe for AgentExecutionConfigError
impl Send for AgentExecutionConfigError
impl Sync for AgentExecutionConfigError
impl Unpin for AgentExecutionConfigError
impl UnsafeUnpin for AgentExecutionConfigError
impl UnwindSafe for AgentExecutionConfigError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more