pub struct AgentSmallModelConfig {
pub enabled: bool,
pub model: String,
pub max_tokens: u32,
pub temperature: f32,
pub use_for_large_reads: bool,
pub use_for_web_summary: bool,
pub use_for_git_history: bool,
}Expand description
Small/lightweight model configuration for efficient operations
Following Claude Code’s pattern, use a smaller model (e.g., Haiku, GPT-4 Mini) for 50%+ of calls:
- Large file reads and parsing (>50KB)
- Web page summarization and analysis
- Git history and commit message processing
- One-word processing labels and simple classifications
Typically 70-80% cheaper than the main model while maintaining quality for these tasks.
Fields§
§enabled: boolEnable small model tier for efficient operations
model: StringSmall model to use (e.g., “claude-3-5-haiku”, “gpt-4o-mini”, “gemini-2.0-flash”) Leave empty to auto-select a lightweight sibling of the main model
max_tokens: u32Maximum tokens for small model responses
temperature: f32Temperature for small model responses
use_for_large_reads: boolEnable small model for large file reads (>50KB)
use_for_web_summary: boolEnable small model for web content summarization
use_for_git_history: boolEnable small model for git history processing
Trait Implementations§
Source§impl Clone for AgentSmallModelConfig
impl Clone for AgentSmallModelConfig
Source§fn clone(&self) -> AgentSmallModelConfig
fn clone(&self) -> AgentSmallModelConfig
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 AgentSmallModelConfig
impl Debug for AgentSmallModelConfig
Source§impl Default for AgentSmallModelConfig
impl Default for AgentSmallModelConfig
Source§impl<'de> Deserialize<'de> for AgentSmallModelConfig
impl<'de> Deserialize<'de> for AgentSmallModelConfig
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 JsonSchema for AgentSmallModelConfig
impl JsonSchema for AgentSmallModelConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AgentSmallModelConfig
impl RefUnwindSafe for AgentSmallModelConfig
impl Send for AgentSmallModelConfig
impl Sync for AgentSmallModelConfig
impl Unpin for AgentSmallModelConfig
impl UnwindSafe for AgentSmallModelConfig
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