pub fn resolve(
harness: &str,
route: Option<&str>,
model: Option<&str>,
inherited: Option<&Choice>,
key_present: impl Fn(&Route) -> bool,
) -> Result<Option<Picked>, String>Expand description
The route and model a new agent runs on.
routenames one: it must serve the harness, andmodel(or the route’s default) must be one it serves.routeis the harness’s own sign-in: no route, whatever the leader had.routeis absent: the leader’s route is inherited, andmodelpicks a model on it.- Neither: no route;
modelis the harness’s own model choice, which the caller handles.
A picked route needs its key in the Vault; when it is not there the answer says what to ask for.