pub fn resolve_agent_selection_for_model(
model: AgentModel,
preferred_agent_kind: AgentKind,
agent_kinds: &[AgentKind],
) -> AgentSelectionExpand description
Resolves an AgentSelection for a model-only setting.
preferred_agent_kind is kept when it can run model, which preserves the
current session provider for shared Gemini model ids. Otherwise the
available provider order decides the owning provider, falling back to
preferred_agent_kind when no available provider supports the model.