pub struct AutoConfig {
pub custom_prompt: Option<String>,
pub hints: Option<AutoHint>,
}Expand description
Full configuration for auto-routing.
For most callers, Pool::auto or Pool::auto_with_hints is sufficient.
Use AutoConfig when you need the escape hatch of a custom prompt.
Fields§
§custom_prompt: Option<String>Override the built-in routing prompt entirely.
You probably don’t want this. The default prompt has been tuned to produce reliable three-way classification. But we aren’t your dad.
If set, replaces layer 1 (the system prompt). Hints still render into the context layer if present, and the task still appends.
hints: Option<AutoHint>Structured hints (rendered into the prompt’s context layer).
Trait Implementations§
Source§impl Clone for AutoConfig
impl Clone for AutoConfig
Source§fn clone(&self) -> AutoConfig
fn clone(&self) -> AutoConfig
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 AutoConfig
impl Debug for AutoConfig
Source§impl Default for AutoConfig
impl Default for AutoConfig
Source§fn default() -> AutoConfig
fn default() -> AutoConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AutoConfig
impl RefUnwindSafe for AutoConfig
impl Send for AutoConfig
impl Sync for AutoConfig
impl Unpin for AutoConfig
impl UnsafeUnpin for AutoConfig
impl UnwindSafe for AutoConfig
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