Skip to content

SubagentUpdate

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970867356000["subagents.SubagentUpdate"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970867356000
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

The parent session created and owns a child session, or the association changed.

Fields other than session_id are patches: omitted leaves them unchanged, None clears them.

Source code in src/aclientp/schema/v2/subagents.py
class SubagentUpdate(AnnotatedObject):
    """The parent session created and owns a child session, or the association changed.

    Fields other than ``session_id`` are patches: omitted leaves them unchanged,
    ``None`` clears them.
    """

    session_update: Literal["subagent_update"] = Field(default="subagent_update", init=False)

    session_id: SessionId
    """The opaque ID of the child session in all ACP messages."""

    title: str | MISSING | None = MISSING
    """The parent's display title for the child; need not be unique."""

    description: str | MISSING | None = MISSING
    """The parent's description of the child's role or purpose."""

    capabilities: SubagentSessionCapabilities | MISSING | None = MISSING
    """Client-initiated mutations permitted for the child."""

    state: StateUpdate | MISSING | None = MISSING
    """The child's current foreground state, mirrored onto the association."""

    cwd: AbsolutePath | MISSING | None = MISSING
    """The child's working directory."""

    additional_directories: Sequence[AbsolutePath] | MISSING | None = MISSING
    """Additional workspace roots of the child."""

additional_directories class-attribute instance-attribute

additional_directories: Sequence[AbsolutePath] | MISSING | None = MISSING

Additional workspace roots of the child.

capabilities class-attribute instance-attribute

capabilities: SubagentSessionCapabilities | MISSING | None = MISSING

Client-initiated mutations permitted for the child.

cwd class-attribute instance-attribute

cwd: AbsolutePath | MISSING | None = MISSING

The child's working directory.

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

The parent's description of the child's role or purpose.

session_id instance-attribute

session_id: SessionId

The opaque ID of the child session in all ACP messages.

state class-attribute instance-attribute

state: StateUpdate | MISSING | None = MISSING

The child's current foreground state, mirrored onto the association.

title class-attribute instance-attribute

title: str | MISSING | None = MISSING

The parent's display title for the child; need not be unique.

:fa-brands-github: Show source on GitHub