Skip to content

CollabAgentToolCallThreadItem

Base classes

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

⋔ Inheritance diagram

graph TD
  2431598339["v2_protocol.CollabAgentToolCallThreadItem"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 2431598339
  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 CollabAgentToolCallThreadItem(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.
    """
    agents_states: dict[str, CollabAgentState]
    """
    Last known status of the target agents, when available.
    """
    id: str
    """
    Unique identifier for this collab tool call.
    """
    model: str | None = None
    """
    Model requested for the spawned agent, when applicable.
    """
    prompt: str | None = None
    """
    Prompt text sent as part of the collab tool call, when available.
    """
    reasoning_effort: ReasoningEffort | None = None
    """
    Reasoning effort requested for the spawned agent, when applicable.
    """
    receiver_thread_ids: list[str]
    """
    Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.
    """
    sender_thread_id: str
    """
    Thread ID of the agent issuing the collab request.
    """
    status: CollabAgentToolCallStatus
    """
    Current status of the collab tool call.
    """
    tool: CollabAgentTool
    """
    Name of the collab tool that was invoked.
    """
    type: Literal["collabAgentToolCall"] = "collabAgentToolCall"

agents_states instance-attribute

agents_states: dict[str, CollabAgentState]

Last known status of the target agents, when available.

completed_at_ms class-attribute instance-attribute

completed_at_ms: int | None = None

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

id instance-attribute

id: str

Unique identifier for this collab tool call.

model class-attribute instance-attribute

model: str | None = None

Model requested for the spawned agent, when applicable.

prompt class-attribute instance-attribute

prompt: str | None = None

Prompt text sent as part of the collab tool call, when available.

reasoning_effort class-attribute instance-attribute

reasoning_effort: ReasoningEffort | None = None

Reasoning effort requested for the spawned agent, when applicable.

receiver_thread_ids instance-attribute

receiver_thread_ids: list[str]

Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.

sender_thread_id instance-attribute

sender_thread_id: str

Thread ID of the agent issuing the collab request.

started_at_ms class-attribute instance-attribute

started_at_ms: int | None = None

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

status instance-attribute

status: CollabAgentToolCallStatus

Current status of the collab tool call.

tool instance-attribute

tool: CollabAgentTool

Name of the collab tool that was invoked.

:fa-brands-github: Show source on GitHub