Skip to content

SubAgentActivityThreadItem

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

A thread item and its recorded lifecycle times. The payload stays flat on the wire.

Source code in src/codexed/models/v2_protocol.py
class SubAgentActivityThreadItem(CodexBaseModel):
    """A thread item and its recorded lifecycle times. The payload stays flat on the wire."""

    completed_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item completed, if recorded.
    """
    started_at_ms: int | None = None
    """
    Unix timestamp in milliseconds when the item started, if recorded.
    """
    agent_path: str
    agent_thread_id: str
    id: str
    kind: SubAgentActivityKind
    model: str | None = None
    """
    Resolved model at sub-agent creation; absent from older records and other activities.
    """
    reasoning_effort: ReasoningEffort | None = None
    """
    Resolved reasoning effort at sub-agent creation, when known.
    """
    type: Literal["subAgentActivity"] = "subAgentActivity"

completed_at_ms class-attribute instance-attribute

completed_at_ms: int | None = None

Unix timestamp in milliseconds when the item completed, if recorded.

model class-attribute instance-attribute

model: str | None = None

Resolved model at sub-agent creation; absent from older records and other activities.

reasoning_effort class-attribute instance-attribute

reasoning_effort: ReasoningEffort | None = None

Resolved reasoning effort at sub-agent creation, when known.

started_at_ms class-attribute instance-attribute

started_at_ms: int | None = None

Unix timestamp in milliseconds when the item started, if recorded.

:fa-brands-github: Show source on GitHub