pub struct AgentSelection { /* private fields */ }Expand description
Session-level agent selection that keeps provider kind and model together.
Implementations§
Source§impl AgentSelection
impl AgentSelection
Sourcepub fn new(kind: AgentKind, model: AgentModel) -> Self
pub fn new(kind: AgentKind, model: AgentModel) -> Self
Creates a coherent session agent selection.
If model is not supported by kind, the provider’s default model is
used so the selection never carries unrelated provider/model values.
Sourcepub fn model(self) -> AgentModel
pub fn model(self) -> AgentModel
Returns the selected agent model.
Sourcepub fn supports_fast_mode(self) -> bool
pub fn supports_fast_mode(self) -> bool
Returns whether this exact provider/model pair supports Fast mode, which needs a provider with a speed control; the harness serves Codex models without one.
Sourcepub fn compatible_with_speed_mode(self, speed_mode: SpeedMode) -> Self
pub fn compatible_with_speed_mode(self, speed_mode: SpeedMode) -> Self
Returns the compatible provider/model pair for one speed preference.
Fast Claude requests require Opus, while incompatible Codex models move to the provider’s default model. Providers without a speed control and already compatible selections remain unchanged.
Trait Implementations§
Source§impl Clone for AgentSelection
impl Clone for AgentSelection
impl Copy for AgentSelection
Source§impl Debug for AgentSelection
impl Debug for AgentSelection
impl Eq for AgentSelection
Source§impl PartialEq for AgentSelection
impl PartialEq for AgentSelection
impl StructuralPartialEq for AgentSelection
Auto Trait Implementations§
impl Forget for AgentSelection
impl Freeze for AgentSelection
impl RefUnwindSafe for AgentSelection
impl Send for AgentSelection
impl Sync for AgentSelection
impl Unpin for AgentSelection
impl UnsafeUnpin for AgentSelection
impl UnwindSafe for AgentSelection
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
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
Compare self to
key and return true if they are equal.