pub fn encode_route(
r: &Route,
agents: &BTreeMap<String, AgentDecl>,
hermes: bool,
) -> ValueExpand description
A route back in Hermes’s form: profile is the agent’s profile; our folder adds agent when the agent
is not that profile’s own (Hermes folds agents into their profiles, so its export never does).