Skip to content

ThreadItemSleep

Base classes

Name Children Inherits
BaseThreadItem
codexed.models.thread_item
Base class for thread items.

⋔ Inheritance diagram

graph TD
  1465751611["thread_item.ThreadItemSleep"]
  2083311648["thread_item.BaseThreadItem"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2083311648 --> 1465751611
  3116041069 --> 2083311648
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseThreadItem

Sleep item.

Source code in src/codexed/models/thread_item.py
class ThreadItemSleep(BaseThreadItem):
    """Sleep item."""

    type: Literal["sleep"] = "sleep"
    duration_ms: int = Field(ge=0)

:fa-brands-github: Show source on GitHub