yera.cli.resources.models

Model discovery orchestration shared across CLI commands.

Symbols

def run_model_discovery — Obtain, validate, persist, and render model configuration.

run_model_discovery

run_model_discovery(
    setup: ModelSetup,
    console: Console,
    error_console: Console,
) → list[BaseModelConfig]

Obtain, validate, persist, and render model configuration.

Parameters

setup
type: ModelSetup

Model setup bound to the target provider connection.

console
type: Console

Console receiving progress and warning output.

error_console
type: Console

Console receiving setup errors.

Returns

type: list[BaseModelConfig]

Models persisted for the connection, or an empty list when setup cannot produce valid configuration.