pub struct ModelSettings {
pub provider: String,
pub name: String,
pub max_tokens: u32,
}Fields§
§provider: StringProvider tag. One of: "anthropic", "claude-code", "codex-cli",
"openai", "gemini", "gemini-cli".
See LlmProviderKind for semantics. Validated at LLM construction
time (not at settings deserialize) so a forgotten provider only
blocks the user when they actually launch capo.
name: String§max_tokens: u32Trait Implementations§
Source§impl Clone for ModelSettings
impl Clone for ModelSettings
Source§fn clone(&self) -> ModelSettings
fn clone(&self) -> ModelSettings
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 moreSource§impl Debug for ModelSettings
impl Debug for ModelSettings
Source§impl Default for ModelSettings
impl Default for ModelSettings
Source§impl<'de> Deserialize<'de> for ModelSettings
impl<'de> Deserialize<'de> for ModelSettings
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 ModelSettings
impl PartialEq for ModelSettings
Source§fn eq(&self, other: &ModelSettings) -> bool
fn eq(&self, other: &ModelSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelSettings
impl Serialize for ModelSettings
impl StructuralPartialEq for ModelSettings
Auto Trait Implementations§
impl Freeze for ModelSettings
impl RefUnwindSafe for ModelSettings
impl Send for ModelSettings
impl Sync for ModelSettings
impl Unpin for ModelSettings
impl UnsafeUnpin for ModelSettings
impl UnwindSafe for ModelSettings
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