subagents
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| SessionCancelCapabilities aclientp.schema.v2.subagents A subagent session's work can be cancelled (``session/cancel``) without ending it. |
||
| SubagentSessionCapabilities aclientp.schema.v2.subagents Client-initiated mutations permitted for a specific subagent session. |
||
| SubagentUpdate aclientp.schema.v2.subagents The parent session created and owns a child session, or the association changed. |
🛈 DocStrings¶
v2 subagent sessions: child sessions created and owned by a parent session.
Part of the v2 baseline: clients handle subagent_update, child sessions and
session-directed messages without a capability.
SessionCancelCapabilities
¶
Bases: AnnotatedObject
A subagent session's work can be cancelled (session/cancel) without ending it.
Source code in src/aclientp/schema/v2/subagents.py
SubagentSessionCapabilities
¶
Bases: AnnotatedObject
Client-initiated mutations permitted for a specific subagent session.
Each mutation needs an explicit per-child capability.
Source code in src/aclientp/schema/v2/subagents.py
cancel
class-attribute
instance-attribute
¶
cancel: SessionCancelCapabilities | MISSING | None = MISSING
Permits cancelling the child's current work.
SubagentUpdate
¶
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
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
¶
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
¶
The parent's display title for the child; need not be unique.