pub struct ResolvedModel {
pub provider: Arc<dyn Provider>,
pub model: Model,
pub thinking_level: ThinkingLevel,
pub theme: Option<String>,
}Expand description
The resolved run configuration: the provider handle, the chosen model, and
the effective thinking level (after --thinking / :level / model-clamp).
Fields§
§provider: Arc<dyn Provider>The Anthropic provider (carries the API key, or None when Bearer
headers carry the auth). Cheap to clone (Arc internally via the
Provider trait object).
model: ModelThe chosen model from the catalog.
thinking_level: ThinkingLevelEffective thinking level (the requested level, before model-clamp — the harness/provider clamps to the model’s supported set).
theme: Option<String>Saved theme name from ~/.rpi/agent/settings.json, if any. Best-effort:
the TUI applies it at startup when it matches a known preset
(dark/light/monochrome); otherwise ignored.
Trait Implementations§
Source§impl Clone for ResolvedModel
impl Clone for ResolvedModel
Source§fn clone(&self) -> ResolvedModel
fn clone(&self) -> ResolvedModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ResolvedModel
impl !UnwindSafe for ResolvedModel
impl Freeze for ResolvedModel
impl Send for ResolvedModel
impl Sync for ResolvedModel
impl Unpin for ResolvedModel
impl UnsafeUnpin for ResolvedModel
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