yera.setup.provider_setup.ollama
Obtain and validate Ollama provider configuration.
Symbols
OllamaProviderSetup
Inherits:
ProviderSetup[OllamaConnection]Provide presentation-independent Ollama setup operations.
Configuration discovery resolves OLLAMA_HOST with the conventional
local server as its fallback. Validation probes the configured server's
tags endpoint.
Attributes
provider_type
Configuration key for the Ollama provider.
dependencies
Python import paths required by the integration.
Methods
get_config — Obtain Ollama configuration from the current environment.
validate — Validate connectivity to an Ollama server.
OllamaProviderSetup.get_config
get_config() → SetupResult[tuple[OllamaConnection, ...]]Obtain Ollama configuration from the current environment.
Returns
type: SetupResult[tuple[OllamaConnection, ...]]
A valid result containing one normalized Ollama connection candidate based on OLLAMA_HOST or the conventional local URL.
OllamaProviderSetup.validate
validate(
config: OllamaConnection,
) → SetupResult[OllamaConnection]Validate connectivity to an Ollama server.
Parameters
config
type: OllamaConnection
Ollama connection whose tags endpoint should be probed.
Returns
type: SetupResult[OllamaConnection]
The supplied configuration and a blocking error when the server is unreachable or returns an unsuccessful HTTP response.