Skip to content

ItemCompletedNotification

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ItemCompletedNotification(CodexBaseModel):
    completed_at_ms: int
    """
    Unix timestamp (in milliseconds) when this item lifecycle completed.
    """
    content_token_count: int | None = Field(None, ge=0)
    """
    Native content tokens for the completed assistant message, including a sampled footer. Null when unavailable. Completion telemetry is not part of the stored thread item.
    """
    item: ThreadItem
    thread_id: str
    turn_id: str

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(None, ge=0)

Native content tokens for the completed assistant message, including a sampled footer. Null when unavailable. Completion telemetry is not part of the stored thread item.

:fa-brands-github: Show source on GitHub