pub fn default_harness_model(
options: &[HarnessModelOption],
remembered: Option<AgentModel>,
) -> Option<AgentModel>Expand description
Returns the model new harness sessions start on.
The user’s last explicit choice, remembered, wins while it can run, and
a remembered local model wins even while its server is unreachable, so a
stopped server never moves new sessions onto a paid provider. Without one,
the first ready local model is preferred over the first ready paid model.
A model that still needs a key or a sign-in is never chosen, so without a
ready model this returns None and the harness offers no default.