pub struct RoleSignals<'a> {
pub explicit_override: Option<ModelRole>,
pub current_tool: Option<&'a str>,
pub thinking_enabled: bool,
pub estimated_tokens: usize,
pub long_context_threshold: usize,
pub is_trivial: bool,
}Expand description
Observable signals for a turn, used to decide the active role.
All fields default sanely via RoleSignals::default; set only what the
caller actually knows.
Fields§
§explicit_override: Option<ModelRole>Explicit user override (e.g. a /model pin). Highest priority.
current_tool: Option<&'a str>Name of the tool currently executing, if any. A tool may declare a role
(see role_for_tool).
thinking_enabled: boolWhether extended thinking is enabled for the turn.
estimated_tokens: usizeEstimated prompt token count for the turn.
long_context_threshold: usizeToken threshold above which the long-context role is selected.
is_trivial: boolWhether the turn is trivially simple (short, single intent).
Trait Implementations§
Source§impl<'a> Clone for RoleSignals<'a>
impl<'a> Clone for RoleSignals<'a>
Source§fn clone(&self) -> RoleSignals<'a>
fn clone(&self) -> RoleSignals<'a>
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<'a> Debug for RoleSignals<'a>
impl<'a> Debug for RoleSignals<'a>
Auto Trait Implementations§
impl<'a> Freeze for RoleSignals<'a>
impl<'a> RefUnwindSafe for RoleSignals<'a>
impl<'a> Send for RoleSignals<'a>
impl<'a> Sync for RoleSignals<'a>
impl<'a> Unpin for RoleSignals<'a>
impl<'a> UnsafeUnpin for RoleSignals<'a>
impl<'a> UnwindSafe for RoleSignals<'a>
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