Skip to main content

route_change

Function route_change 

Source
fn route_change(
    state: &AppState,
    agent: &AgentDefinition,
    req: &UpdateRequest,
) -> Result<Vec<&'static str>, Refusal>
Expand description

route and model of Agents update: leave a model route (route: ""), or change the model on the route the agent is already on. Putting an agent onto a route spends the person’s key, so that is asked of them when the agent is made or in the composer’s model panel, not done by a call that names no one to ask.