pub struct AutoHint {
pub max_parallel: Option<usize>,
pub max_chain_steps: Option<usize>,
pub prefer: Option<RoutePreference>,
pub domain: Option<String>,
pub decomposition_hints: Option<Vec<String>>,
}Expand description
Structured hints that inform the routing decision without overriding it.
Hints are rendered into the prompt’s context layer. They constrain or bias
the router but do not force a specific route — for that, call
Pool::run, Pool::fan_out, or Pool::submit_chain directly.
Fields§
§max_parallel: Option<usize>Cap on parallel tasks (e.g. “I only have 2 slots”).
max_chain_steps: Option<usize>Cap on chain depth.
prefer: Option<RoutePreference>Soft bias toward a route. The router can still disagree.
domain: Option<String>Domain description (not instructions). e.g. “monorepo with independent crates”, “microservices behind a gateway”.
decomposition_hints: Option<Vec<String>>Pre-named boundaries for parallel/chain decomposition.
e.g. ["auth module", "api module", "db module"].
The router uses these if it picks parallel/chain, ignores them for single.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AutoHint
impl<'de> Deserialize<'de> for AutoHint
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
Auto Trait Implementations§
impl Freeze for AutoHint
impl RefUnwindSafe for AutoHint
impl Send for AutoHint
impl Sync for AutoHint
impl Unpin for AutoHint
impl UnsafeUnpin for AutoHint
impl UnwindSafe for AutoHint
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