Skip to main content

pick_route

Function pick_route 

Source
fn pick_route(
    state: &AppState,
    req: &CreateAgentRequest,
    template: &AgentDefinition,
    provider: &str,
) -> Result<Option<Picked>, SpawnError>
Expand description

The route and model a created agent is asked to run on. A created agent has no leader to inherit from; the harness is its template’s, so harness can only confirm it.