id: string

The ID of the subagent.

minLength0
closed_at: number | null

The Unix timestamp, in seconds, when the subagent was closed. Null while active, including after resume.

formatint64
instructions: Array<AgentContent> | null

Initial task content, or null when unavailable. Text may contain placeholders for images or audio when only a preview is available.

minItems0
maxItems2000
One of the following:
OutputText { text, type }

A text content part produced by the agent.

text: string

The text produced by the agent.

minLength0
type: "output_text"

The content type. Always output_text.

EncryptedContentResource { encrypted_content, type }

Encrypted content exchanged between agents.

encrypted_content: string

The encrypted content payload.

minLength0
type: "encrypted_content"

The content type. Always encrypted_content.

name: string | null

The runner-assigned nickname, or null when unavailable.

minLength0
object: "agent.session.subagent"

The object type. Always agent.session.subagent.

opened_at: number

The Unix timestamp, in seconds, when the subagent was first opened. Resuming does not change it.

formatint64
parent_agent_id: string

The ID of the agent that created this subagent.

minLength0
session_id: string

The ID of the session that owns the subagent.

minLength0
status: "active" | "closed"

The current status of the subagent.

One of the following:
"active"

The subagent remains available, including while idle between turns.

"closed"

The subagent is closed.