pub struct GatingDecision {
pub rule_id: String,
pub economic_mode: Option<EconomicMode>,
pub max_tokens_next_turn: Option<u32>,
pub preferred_model: Option<ModelTier>,
pub restrict_expensive_tools: Option<bool>,
pub restrict_side_effects: Option<bool>,
pub max_tool_calls_per_tick: Option<u32>,
pub rationale: String,
}Expand description
A decision produced by a homeostatic rule.
Fields§
§rule_id: StringWhich rule produced this decision.
economic_mode: Option<EconomicMode>Whether to override the economic mode.
max_tokens_next_turn: Option<u32>Whether to cap tokens for the next turn.
preferred_model: Option<ModelTier>Whether to suggest a model tier.
restrict_expensive_tools: Option<bool>Whether to restrict expensive tools.
restrict_side_effects: Option<bool>Whether to restrict side effects.
max_tool_calls_per_tick: Option<u32>Override for max tool calls per tick.
rationale: StringHuman-readable rationale.
Implementations§
Trait Implementations§
Source§impl Clone for GatingDecision
impl Clone for GatingDecision
Source§fn clone(&self) -> GatingDecision
fn clone(&self) -> GatingDecision
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 GatingDecision
impl Debug for GatingDecision
Source§impl<'de> Deserialize<'de> for GatingDecision
impl<'de> Deserialize<'de> for GatingDecision
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 GatingDecision
impl RefUnwindSafe for GatingDecision
impl Send for GatingDecision
impl Sync for GatingDecision
impl Unpin for GatingDecision
impl UnsafeUnpin for GatingDecision
impl UnwindSafe for GatingDecision
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