#[non_exhaustive]pub struct OperatorConfig {
pub max_turns: Option<u32>,
pub max_cost: Option<Decimal>,
pub max_duration: Option<DurationMs>,
pub model: Option<String>,
pub allowed_operators: Option<Vec<String>>,
pub system_addendum: Option<String>,
}Expand description
Per-operator configuration overrides. Every field is optional — None means “use the implementation’s default.”
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_turns: Option<u32>Maximum iterations of the inner ReAct loop.
max_cost: Option<Decimal>Maximum cost for this operator invocation in USD.
max_duration: Option<DurationMs>Maximum wall-clock time for this operator invocation.
model: Option<String>Model override (implementation-specific string).
allowed_operators: Option<Vec<String>>Operator restrictions for this operator invocation. None = use defaults. Some(list) = only these operators.
system_addendum: Option<String>Additional system prompt content to prepend/append. Does not replace the operator runtime’s base identity — it augments it. Use for per-task instructions.
Trait Implementations§
Source§impl Clone for OperatorConfig
impl Clone for OperatorConfig
Source§fn clone(&self) -> OperatorConfig
fn clone(&self) -> OperatorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatorConfig
impl Debug for OperatorConfig
Source§impl Default for OperatorConfig
impl Default for OperatorConfig
Source§fn default() -> OperatorConfig
fn default() -> OperatorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperatorConfig
impl<'de> Deserialize<'de> for OperatorConfig
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
Auto Trait Implementations§
impl Freeze for OperatorConfig
impl RefUnwindSafe for OperatorConfig
impl Send for OperatorConfig
impl Sync for OperatorConfig
impl Unpin for OperatorConfig
impl UnsafeUnpin for OperatorConfig
impl UnwindSafe for OperatorConfig
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