yera.config.schema.profiles
Yera profile schemas: top-level environment context.
Symbols
Profile
BaseModelA Yera profile — one named environment context.
Ties together a set of provider connections and optional model defaults.
The active profile is resolved via CLI --profile flag →
pyproject.toml → yera.toml default.
Fields
Name used to identify and select this profile.
A human-readable description of this profile.
Map of provider type to connection name, e.g.
{"aws": "work", "ollama": "local"}. Only providers needed
by this profile need to be listed.
Map of model type to default model id, e.g.
{"llm": "aws.meta.llama3"}. Optional — missing defaults
are a runtime error when a default is actually needed.
Ordered names of MCP server connections enabled for this profile.
ProfileModelDefaults
BaseModelYera profile model default values.
Fields
Model identifier used by default for language generation.
Model identifier used by default for text embeddings.
Model identifier used by default for text-to-speech generation.
Model identifier used by default for speech-to-text transcription.
Model identifier used by default for document reranking.
ProfileProviderConnections
BaseModelYera profile provider connection config.
Fields
Connection this profile uses for Anthropic.
Connection this profile uses for OpenAI.
Connection this profile uses for Mistral.
Connection this profile uses for AWS.
Connection this profile uses for Azure.
Connection this profile uses for Ollama.
Connection this profile uses for llama.cpp.
Connection this profile uses for OpenRouter.
Connection this profile uses for Gemini.
Methods
ProfileProviderConnections.empty
empty() → boolCheck if none of the profile's provider connections are configured.
Returns
True if none of the profile's provider connections are configured,
Profiles
BaseModelYera profiles config loaded from yera.toml.
Raises
If default is not a key in profiles.
Fields
Name of the profile to use when no override is set.
Required — setup creates a default profile automatically.
Named Yera profiles, keyed by profile name.
Methods
Profiles.default_profile_exists
default_profile_exists() → ProfilesCheck that the default profile name exists in profiles.
Returns
This validated profiles configuration.
Raises
If default is not a key in profiles.