Skip to main content

query_models

Function query_models 

Source
pub fn query_models(kind: &AgentKind) -> Vec<(String, String)>
Expand description

Query the agent CLI for available models (opencode models, agy models), waiting up to 8 seconds. Each output line has the model id in the first column, followed by the display name (tab-separated). agy’s list embeds effort in the model id (xxx-high), whereas ACP separates model and effort, so variants are merged here.