Skip to content

SubagentUpdate

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970861568480["session_updates.SubagentUpdate"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970861568480
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

UNSTABLE: A subagent session started by the parent, or a change to it.

Only sent if the client advertised the subagents capability.

Source code in src/aclientp/schema/session_updates.py
class SubagentUpdate(AnnotatedObject):
    """**UNSTABLE**: A subagent session started by the parent, or a change to it.

    Only sent if the client advertised the ``subagents`` capability.
    """

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

    session_id: str
    """The opaque session ID identifying the child in all ACP messages."""

    title: str | None = None
    """The parent's human-readable display title for this child."""

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

    capabilities: SubagentSessionCapabilities | None = None
    """Client-initiated session mutations permitted for this subagent session."""

    state: StateUpdate | None = None
    """Current state snapshot for the child session."""

    cwd: str | None = None
    """The child's working directory. Must be an absolute path."""

    additional_directories: Sequence[str] | None = None
    """Additional workspace roots for the child. Each path must be absolute."""

additional_directories class-attribute instance-attribute

additional_directories: Sequence[str] | None = None

Additional workspace roots for the child. Each path must be absolute.

capabilities class-attribute instance-attribute

capabilities: SubagentSessionCapabilities | None = None

Client-initiated session mutations permitted for this subagent session.

cwd class-attribute instance-attribute

cwd: str | None = None

The child's working directory. Must be an absolute path.

description class-attribute instance-attribute

description: str | None = None

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

session_id instance-attribute

session_id: str

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

state class-attribute instance-attribute

state: StateUpdate | None = None

Current state snapshot for the child session.

title class-attribute instance-attribute

title: str | None = None

The parent's human-readable display title for this child.

:fa-brands-github: Show source on GitHub