Skip to content

UserConfigLayerSource

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  4092749323["v2_protocol.UserConfigLayerSource"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 4092749323
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory.

Source code in src/codexed/models/v2_protocol.py
class UserConfigLayerSource(CodexBaseModel):
    """User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory."""

    file: AbsolutePathBuf
    """
    This is the path to the user's config.toml file, though it is not guaranteed to exist.
    """
    profile: str | None = None
    """
    Name of the selected profile-v2 config layered on top of the base user config, when this layer represents one.
    """
    type: Literal["user"] = "user"

file instance-attribute

This is the path to the user's config.toml file, though it is not guaranteed to exist.

profile class-attribute instance-attribute

profile: str | None = None

Name of the selected profile-v2 config layered on top of the base user config, when this layer represents one.

:fa-brands-github: Show source on GitHub