Skip to content

WarningNotification

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class WarningNotification(CodexBaseModel):
    message: str
    """
    Concise warning message for the user.
    """
    thread_id: str | None = None
    """
    Optional thread target when the warning applies to a specific thread.
    """

message instance-attribute

message: str

Concise warning message for the user.

thread_id class-attribute instance-attribute

thread_id: str | None = None

Optional thread target when the warning applies to a specific thread.

:fa-brands-github: Show source on GitHub