pub enum VisionRouteMode {
AlwaysPrimary,
TextFirst,
VisionFirst,
AgentDriven,
}Expand description
Routing mode that decides when to use the vision vs text model.
Only takes effect when RemoteMultimodalConfigs::has_dual_model_routing
returns true (i.e. at least one of vision_model / text_model is set).
Variants§
AlwaysPrimary
No routing – always use the primary model (current behaviour).
TextFirst
Text model by default; switch to vision on round 0, stagnation,
stuck ≥ 3, or an explicit request_vision memory-op.
VisionFirst
Vision model for the first 2 rounds and when stagnated/stuck, then fall back to the text model for stable mid-rounds.
AgentDriven
Text model always, vision ONLY on an explicit request_vision
memory-op from the agent.
Trait Implementations§
Source§impl Clone for VisionRouteMode
impl Clone for VisionRouteMode
Source§fn clone(&self) -> VisionRouteMode
fn clone(&self) -> VisionRouteMode
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 VisionRouteMode
impl Debug for VisionRouteMode
Source§impl Default for VisionRouteMode
impl Default for VisionRouteMode
Source§fn default() -> VisionRouteMode
fn default() -> VisionRouteMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VisionRouteMode
impl<'de> Deserialize<'de> for VisionRouteMode
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
Source§impl PartialEq for VisionRouteMode
impl PartialEq for VisionRouteMode
Source§impl Serialize for VisionRouteMode
impl Serialize for VisionRouteMode
impl Copy for VisionRouteMode
impl Eq for VisionRouteMode
impl StructuralPartialEq for VisionRouteMode
Auto Trait Implementations§
impl Freeze for VisionRouteMode
impl RefUnwindSafe for VisionRouteMode
impl Send for VisionRouteMode
impl Sync for VisionRouteMode
impl Unpin for VisionRouteMode
impl UnwindSafe for VisionRouteMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.