Skip to main content

provider_models

Function provider_models 

Source
pub fn provider_models(provider: &str) -> Vec<HarnessModel>
Expand description

The agent-usable models a provider serves per models.dev, mapped to HarnessModel and sorted by id for a stable picker order. Empty when the models-dev feature is off, the catalog can’t be fetched, or the provider is unknown — so a caller can fall back to its own static list.