Skip to content

PluginInterface

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class PluginInterface(CodexBaseModel):
    brand_color: str | None = None
    capabilities: list[str]
    category: str | None = None
    composer_icon: AbsolutePathBuf | None = None
    """
    Local composer icon path, resolved from the installed plugin package.
    """
    composer_icon_url: str | None = None
    """
    Remote composer icon URL from the plugin catalog.
    """
    default_prompt: list[str] | None = None
    """
    Starter prompts for the plugin. Capped at 3 entries with a maximum of 512 characters per entry.
    """
    developer_name: str | None = None
    display_name: str | None = None
    logo: AbsolutePathBuf | None = None
    """
    Local logo path, resolved from the installed plugin package.
    """
    logo_dark: AbsolutePathBuf | None = None
    """
    Local dark-mode logo path, resolved from the installed plugin package.
    """
    logo_url: str | None = None
    """
    Remote logo URL from the plugin catalog.
    """
    logo_url_dark: str | None = None
    """
    Remote dark-mode logo URL from the plugin catalog.
    """
    long_description: str | None = None
    privacy_policy_url: str | None = None
    screenshot_urls: list[str]
    """
    Remote screenshot URLs from the plugin catalog.
    """
    screenshots: list[AbsolutePathBuf]
    """
    Local screenshot paths, resolved from the installed plugin package.
    """
    short_description: str | None = None
    terms_of_service_url: str | None = None
    website_url: str | None = None

composer_icon class-attribute instance-attribute

composer_icon: AbsolutePathBuf | None = None

Local composer icon path, resolved from the installed plugin package.

composer_icon_url class-attribute instance-attribute

composer_icon_url: str | None = None

Remote composer icon URL from the plugin catalog.

default_prompt class-attribute instance-attribute

default_prompt: list[str] | None = None

Starter prompts for the plugin. Capped at 3 entries with a maximum of 512 characters per entry.

logo: AbsolutePathBuf | None = None

Local logo path, resolved from the installed plugin package.

logo_dark class-attribute instance-attribute

logo_dark: AbsolutePathBuf | None = None

Local dark-mode logo path, resolved from the installed plugin package.

logo_url class-attribute instance-attribute

logo_url: str | None = None

Remote logo URL from the plugin catalog.

logo_url_dark class-attribute instance-attribute

logo_url_dark: str | None = None

Remote dark-mode logo URL from the plugin catalog.

screenshot_urls instance-attribute

screenshot_urls: list[str]

Remote screenshot URLs from the plugin catalog.

screenshots instance-attribute

screenshots: list[AbsolutePathBuf]

Local screenshot paths, resolved from the installed plugin package.

:fa-brands-github: Show source on GitHub