yera.setup.write
Persist provider and model configuration produced during setup.
Symbols
write_mcp_server_config
write_mcp_server_config(
server_name: str,
config: MCPServerConfig,
) → NoneWrite an MCP server connection to global Yera configuration.
Parameters
Name used to enable the server in profiles.
Typed MCP server configuration to persist.
write_model_config
write_model_config(
provider_type: str,
connection_name: str,
config: list[BaseModelConfig],
) → NoneReplace model configuration for one provider connection.
The caller is responsible for obtaining and validating the models before writing them. This operation performs no discovery, validation, prompting, or rendering.
Parameters
Provider configuration key.
Provider connection whose models are replaced.
Complete model configuration for the connection.
write_profile_config
write_profile_config(
config: Profile,
make_default: bool = False,
) → NoneWrite a profile to the global Yera configuration.
The complete profile is written in one operation after the setup flow has collected its provider connections and selected model defaults. The caller explicitly controls whether the profile becomes Yera's global default.
Parameters
Complete profile configuration to persist.
Whether to make this profile the global default.
write_provider_config
write_provider_config(
provider_type: str,
connection_name: str,
config: BaseConnection,
) → NoneWrite a provider connection to the global Yera configuration.
The caller is responsible for validating the connection before writing it. This operation performs no discovery, validation, prompting, or rendering.
Parameters
Provider configuration key.
Name under which the connection is stored.
Typed provider connection configuration to persist.