Skip to content

event_data

Class info

Classes

Name Children Inherits
ItemCompletedData
codexed.models.event_data
Payload for item/completed notification (V2 protocol).
    ItemStartedData
    codexed.models.event_data
    Payload for item/started notification (V2 protocol).
      ThreadStartedData
      codexed.models.event_data
      Payload for thread/started notification (V2 protocol).
        TurnCompletedData
        codexed.models.event_data
        Payload for turn/completed notification (V2 protocol).
          TurnStartedData
          codexed.models.event_data
          Payload for turn/started notification (V2 protocol).

            🛈 DocStrings

            ItemCompletedData

            Bases: CodexBaseModel

            Payload for item/completed notification (V2 protocol).

            Source code in src/codexed/models/event_data.py
            class ItemCompletedData(CodexBaseModel):
                """Payload for item/completed notification (V2 protocol)."""
            
                thread_id: str
                turn_id: str
                item: ThreadItem
                completed_at_ms: int
                """Unix timestamp (in milliseconds) when this item lifecycle completed."""
                content_token_count: int | None = Field(default=None, ge=0)
                """Token count of the item's content, if known."""
            

            completed_at_ms instance-attribute

            completed_at_ms: int
            

            Unix timestamp (in milliseconds) when this item lifecycle completed.

            content_token_count class-attribute instance-attribute

            content_token_count: int | None = Field(default=None, ge=0)
            

            Token count of the item's content, if known.

            ItemStartedData

            Bases: CodexBaseModel

            Payload for item/started notification (V2 protocol).

            Source code in src/codexed/models/event_data.py
            class ItemStartedData(CodexBaseModel):
                """Payload for item/started notification (V2 protocol)."""
            
                thread_id: str
                turn_id: str
                item: ThreadItem
                started_at_ms: int
                """Unix timestamp (in milliseconds) when this item lifecycle started."""
            

            started_at_ms instance-attribute

            started_at_ms: int
            

            Unix timestamp (in milliseconds) when this item lifecycle started.

            ThreadStartedData

            Bases: CodexBaseModel

            Payload for thread/started notification (V2 protocol).

            Source code in src/codexed/models/event_data.py
            class ThreadStartedData(CodexBaseModel):
                """Payload for thread/started notification (V2 protocol)."""
            
                thread: Thread
            
                @property
                def thread_id(self) -> str:
                    """Thread ID derived from the thread object."""
                    return self.thread.id
            

            thread_id property

            thread_id: str
            

            Thread ID derived from the thread object.

            TurnCompletedData

            Bases: CodexBaseModel

            Payload for turn/completed notification (V2 protocol).

            Source code in src/codexed/models/event_data.py
            class TurnCompletedData(CodexBaseModel):
                """Payload for turn/completed notification (V2 protocol)."""
            
                thread_id: str
                turn: Turn
            

            TurnStartedData

            Bases: CodexBaseModel

            Payload for turn/started notification (V2 protocol).

            Source code in src/codexed/models/event_data.py
            class TurnStartedData(CodexBaseModel):
                """Payload for turn/started notification (V2 protocol)."""
            
                thread_id: str
                turn: Turn