pub struct ModelRules {
pub effort: Option<String>,
pub max_effort: Option<String>,
pub thinking_budget: Option<u32>,
pub service_tier: Option<String>,
pub apply_patch: Option<bool>,
pub search_tool: Option<bool>,
}Expand description
Per-model routing rules: what [capabilities.model_catalog.models.<pattern>]
(and the table’s own top-level defaults) say about one model.
Every field is Option so “unset” and “set to the default value” stay
distinguishable — an unset field inherits, a set one overrides.
Fields§
§effort: Option<String>Reasoning-effort level for this model — the per-model override of
[core] effort (cc§9 effort levels, cx§9 tiers).
max_effort: Option<String>Ceiling on the effort level for this model. Applied AFTER effort
and after [core] effort, so a cap binds whatever the level came
from — the per-model half of the org effort cap.
thinking_budget: Option<u32>Thinking-token budget (Claude Code’s MAX_THINKING_TOKENS).
service_tier: Option<String>Service tier / fast-mode variant asked for on the request
(cc /fast, cx model_service_tier).
apply_patch: Option<bool>Capability bit: this model takes the freeform apply_patch
envelope. Some(false) swaps the write surface to edit_file /
write_file instead (cx§9 apply_patch_tool_type).
search_tool: Option<bool>Capability bit: this model takes the dedicated search tool
(cx§9 supports_search_tool).
Implementations§
Source§impl ModelRules
impl ModelRules
Sourcepub fn overlay(&mut self, other: &ModelRules)
pub fn overlay(&mut self, other: &ModelRules)
Overlay other’s SET fields onto self; unset fields inherit.
Trait Implementations§
Source§impl Clone for ModelRules
impl Clone for ModelRules
Source§fn clone(&self) -> ModelRules
fn clone(&self) -> ModelRules
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelRules
impl Debug for ModelRules
Source§impl Default for ModelRules
impl Default for ModelRules
Source§fn default() -> ModelRules
fn default() -> ModelRules
impl Eq for ModelRules
Source§impl PartialEq for ModelRules
impl PartialEq for ModelRules
impl StructuralPartialEq for ModelRules
Auto Trait Implementations§
impl Freeze for ModelRules
impl RefUnwindSafe for ModelRules
impl Send for ModelRules
impl Sync for ModelRules
impl Unpin for ModelRules
impl UnsafeUnpin for ModelRules
impl UnwindSafe for ModelRules
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.