Skip to content

ThreadItemCollabAgentToolCall

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: BaseThreadItem

Collab agent tool call item.

Source code in src/codexed/models/thread_item.py
class ThreadItemCollabAgentToolCall(BaseThreadItem):
    """Collab agent tool call item."""

    type: Literal["collabAgentToolCall"] = "collabAgentToolCall"
    tool: CollabAgentTool
    status: CollabAgentToolCallStatus
    sender_thread_id: str
    receiver_thread_ids: list[str] = Field(default_factory=list)
    prompt: str | None = None
    agents_states: dict[str, CollabAgentState] = Field(default_factory=dict)

    @property
    def inferred_arguments(self) -> dict[str, Any]:
        args: dict[str, Any] = {"tool": self.tool}
        if self.prompt is not None:
            args["prompt"] = self.prompt
        if self.receiver_thread_ids:
            args["receiver_thread_ids"] = self.receiver_thread_ids
        return args

    @property
    def item_summary(self) -> str:
        """Human-readable summary of this collab agent tool call."""
        first_state = next(iter(self.agents_states.values()), None)
        status = first_state.status if first_state else "unknown"
        receiver_ids = ", ".join(self.receiver_thread_ids)
        return f"[Collab Agent: {self.tool}] {receiver_ids} ({status})"

    model: str | None = None
    reasoning_effort: ReasoningEffort | None = None

item_summary property

item_summary: str

Human-readable summary of this collab agent tool call.

:fa-brands-github: Show source on GitHub