pub struct EconomicGates {
pub economic_mode: EconomicMode,
pub max_tokens_next_turn: Option<u32>,
pub preferred_model: Option<ModelTier>,
pub allow_expensive_tools: bool,
pub allow_replication: bool,
}Expand description
Economic gates — extensions to the canonical GatingProfile.
Fields§
§economic_mode: EconomicModeCurrent economic operating mode.
max_tokens_next_turn: Option<u32>Maximum tokens allowed for the next turn (advisory).
preferred_model: Option<ModelTier>Preferred model tier for cost control.
allow_expensive_tools: boolWhether expensive tools (e.g., web search, code execution) are allowed.
allow_replication: boolWhether agent replication is allowed.
Trait Implementations§
Source§impl Clone for EconomicGates
impl Clone for EconomicGates
Source§fn clone(&self) -> EconomicGates
fn clone(&self) -> EconomicGates
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 EconomicGates
impl Debug for EconomicGates
Source§impl Default for EconomicGates
impl Default for EconomicGates
Source§impl<'de> Deserialize<'de> for EconomicGates
impl<'de> Deserialize<'de> for EconomicGates
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 EconomicGates
impl RefUnwindSafe for EconomicGates
impl Send for EconomicGates
impl Sync for EconomicGates
impl Unpin for EconomicGates
impl UnsafeUnpin for EconomicGates
impl UnwindSafe for EconomicGates
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