CoAgent8 - Source API
    Preparing search index...

    Function listModelCandidates

    • Lists the models of one backend with their prices and approval requirement: each catalog entry, and the default first when the catalog does not contain it (Claude Code lists none).

      Parameters

      • id: "codex" | "claude" | "agy"

        Backend.

      • catalog: ModelCatalog | undefined

        Its catalog, or undefined.

      • fallback: ModelSelection | undefined

        Its default model, if known.

      • prices: StoredPrices | undefined

        The price list, or undefined.

      • settings: GovernanceSettings

        The user's governance settings.

      Returns ModelCandidate[]

      Approval is evaluated for the listed name (for the default, the name it runs as); an entry naming the id covers its effort variants, and one naming a single variant (<id>-<effort>) applies when that variant runs.