pub struct LimitsPolicy {
pub max_api_calls: u32,
pub max_structured_output_retries: u32,
}Expand description
The engine’s own ceilings.
max_api_calls in particular is the lower of what settings allow and
what the scene allows, so a scene declaring a tighter ceiling is honoured.
Constructing the policy is the one place that rule lives.
Fields§
§max_api_calls: u32§max_structured_output_retries: u32Implementations§
Trait Implementations§
Source§impl TurnPolicy for LimitsPolicy
impl TurnPolicy for LimitsPolicy
Source§fn before_model_call(&self, progress: &TurnProgress<'_>) -> TurnStep
fn before_model_call(&self, progress: &TurnProgress<'_>) -> TurnStep
Before spending another model call.
Source§fn after_model_call(&self, progress: &TurnProgress<'_>) -> TurnStep
fn after_model_call(&self, progress: &TurnProgress<'_>) -> TurnStep
After a model call came back, before acting on what it asked for. Read more
Auto Trait Implementations§
impl Forget for LimitsPolicy
impl Freeze for LimitsPolicy
impl Move for LimitsPolicy
impl RefUnwindSafe for LimitsPolicy
impl Send for LimitsPolicy
impl Sync for LimitsPolicy
impl Unpin for LimitsPolicy
impl UnsafeUnpin for LimitsPolicy
impl UnwindSafe for LimitsPolicy
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