pub struct RoleModel {
pub name: Option<String>,
pub provider_override: Option<Arc<dyn LLMProvider>>,
}Expand description
A single auxiliary role’s model selection: an optional model name plus an optional dedicated provider handle.
Both fields are independent and optional so the mapping from the old loose
<role>_model: Option<String> + <role>_model_provider: Option<Arc<…>>
pair is lossless. A role is represented as Some(RoleModel) only when at
least one of the two was set; an all-None role collapses to None on the
owning ModelRoster, preserving the old “fall back to Config” behavior.
Fields§
§name: Option<String>Model name for this role. None defers to the relevant Config::get_*
fallback at the resolution site.
provider_override: Option<Arc<dyn LLMProvider>>Optional dedicated provider handle for this role’s LLM calls. None
uses the shared agent-loop provider.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RoleModel
impl !UnwindSafe for RoleModel
impl Freeze for RoleModel
impl Send for RoleModel
impl Sync for RoleModel
impl Unpin for RoleModel
impl UnsafeUnpin for RoleModel
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