yera.setup.provider_setup.llama_cpp

Obtain and validate llama.cpp provider configuration.

Symbols

class LlamaCppProviderSetup — Provide presentation-independent llama.cpp setup operations.

LlamaCppProviderSetup

Provide presentation-independent llama.cpp setup operations.

Configuration discovery searches an environment-defined path and conventional local model directories. Validation reports inaccessible paths as recoverable warnings because removable or network storage may become available later.

Attributes

provider_type

Configuration key for the llama.cpp provider.

dependencies

Python import paths required by the integration.

Methods

get_config — Obtain configuration from accessible local model directories.
validate — Validate configured llama.cpp model directories.

LlamaCppProviderSetup.get_config

get_config() → SetupResult[tuple[LlamaCppConnection, ...]]

Obtain configuration from accessible local model directories.

Returns

type: SetupResult[tuple[LlamaCppConnection, ...]]

A result containing one connection candidate with every detected model directory, or an empty candidate tuple when none of the directories are accessible.

LlamaCppProviderSetup.validate

validate(
    config: LlamaCppConnection,
) → SetupResult[LlamaCppConnection]

Validate configured llama.cpp model directories.

Missing directories are recoverable because external or removable storage may be mounted after setup.

Parameters

config
type: LlamaCppConnection

llama.cpp connection containing model directory paths.

Returns

type: SetupResult[LlamaCppConnection]

The supplied configuration and warnings for empty or currently inaccessible directory configuration.