pub struct AgentExecutionConfig { /* private fields */ }Expand description
Finite, deterministic controls for the prebuilt model/tool agent loop.
Implementations§
Source§impl AgentExecutionConfig
impl AgentExecutionConfig
Sourcepub const HARD_MAX_MODEL_TURNS: ExecutionCount
pub const HARD_MAX_MODEL_TURNS: ExecutionCount
Immutable hard model-turn ceiling for one agent run.
Sourcepub const HARD_MAX_OUTPUT_REPAIR_TURNS: ExecutionCount
pub const HARD_MAX_OUTPUT_REPAIR_TURNS: ExecutionCount
Immutable hard output-repair ceiling for one agent run.
Sourcepub const HARD_MAX_TOOL_CALLS_PER_TURN: ExecutionCount
pub const HARD_MAX_TOOL_CALLS_PER_TURN: ExecutionCount
Immutable hard ordinary tool-call ceiling for one model response.
Sourcepub const fn new(
structured_output: AgentStructuredOutputStrategy,
max_model_turns: ExecutionCount,
max_output_repair_turns: ExecutionCount,
max_tool_calls_per_turn: ExecutionCount,
tool_concurrency: AgentToolConcurrency,
) -> Result<Self, AgentExecutionConfigError>
pub const fn new( structured_output: AgentStructuredOutputStrategy, max_model_turns: ExecutionCount, max_output_repair_turns: ExecutionCount, max_tool_calls_per_turn: ExecutionCount, tool_concurrency: AgentToolConcurrency, ) -> Result<Self, AgentExecutionConfigError>
Constructs cross-field validated loop controls.
§Errors
Returns AgentExecutionConfigError for zero or excessive model
turns, excessive repairs/calls, impossible repair capacity, or invalid
read-only concurrency.
Sourcepub const fn structured_output(&self) -> AgentStructuredOutputStrategy
pub const fn structured_output(&self) -> AgentStructuredOutputStrategy
Returns the resolved structured-output mechanism.
Sourcepub const fn max_model_turns(&self) -> ExecutionCount
pub const fn max_model_turns(&self) -> ExecutionCount
Returns the inclusive logical model-turn ceiling.
Sourcepub const fn max_output_repair_turns(&self) -> ExecutionCount
pub const fn max_output_repair_turns(&self) -> ExecutionCount
Returns the number of invalid final-output repair turns permitted.
Sourcepub const fn max_tool_calls_per_turn(&self) -> ExecutionCount
pub const fn max_tool_calls_per_turn(&self) -> ExecutionCount
Returns the ordinary tool-call ceiling for one model response.
Sourcepub const fn tool_concurrency(&self) -> AgentToolConcurrency
pub const fn tool_concurrency(&self) -> AgentToolConcurrency
Returns deterministic ordinary-tool scheduling behavior.
Trait Implementations§
Source§impl Clone for AgentExecutionConfig
impl Clone for AgentExecutionConfig
Source§impl Debug for AgentExecutionConfig
impl Debug for AgentExecutionConfig
Source§impl<'de> Deserialize<'de> for AgentExecutionConfig
impl<'de> Deserialize<'de> for AgentExecutionConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentExecutionConfig
Source§impl JsonSchema for AgentExecutionConfig
impl JsonSchema for AgentExecutionConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AgentExecutionConfig
impl PartialEq for AgentExecutionConfig
Source§impl Serialize for AgentExecutionConfig
impl Serialize for AgentExecutionConfig
impl StructuralPartialEq for AgentExecutionConfig
Auto Trait Implementations§
impl Forget for AgentExecutionConfig
impl Freeze for AgentExecutionConfig
impl Move for AgentExecutionConfig
impl RefUnwindSafe for AgentExecutionConfig
impl Send for AgentExecutionConfig
impl Sync for AgentExecutionConfig
impl Unpin for AgentExecutionConfig
impl UnsafeUnpin for AgentExecutionConfig
impl UnwindSafe for AgentExecutionConfig
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