pub enum Reasoning {
Policy(Policy),
Off,
Undeclared,
}Expand description
What a model’s reasoning control is, once the profile and its per-model entries are consulted.
Three cases, because “nobody declared it” and “it has none” have to behave differently: the first keeps the old behaviour (a configured level goes out verbatim), the second sends nothing at all no matter what is asked.
Variants§
Policy(Policy)
A declared policy: the manifest says what this backend takes.
Off
The model does not reason: no field, ever.
Undeclared
Nobody said. A configured or asked-for level is sent as reasoning_effort verbatim.
Implementations§
Source§impl Reasoning
impl Reasoning
Sourcepub fn declared_default(&self) -> Option<&str>
pub fn declared_default(&self) -> Option<&str>
The level this route sends when neither the file nor the session asked for one: the
policy’s own declared default (#276), and None where there is nothing to send —
an undeclared backend, a model that does not reason, or a policy with no dial.
One method rather than a match per read-out: the dashboard strip, the TUI, /reasoning
and /status all have to answer this the same way, or one of them will describe a default
the request does not carry.