Skip to content

Interface: SubagentStartEvent

@providerprotocol/agents


@providerprotocol/agents / index / SubagentStartEvent

Defined in: src/execution/types.ts:588

Event emitted when a sub-agent starts execution.

Contains the prompt given to the sub-agent and the start timestamp for duration tracking.

parentToolCallId: string

Defined in: src/execution/types.ts:579

The parent tool call ID that spawned this sub-agent

SubagentEventBase.parentToolCallId


prompt: string

Defined in: src/execution/types.ts:592

The task/prompt given to the sub-agent


subagentId: string

Defined in: src/execution/types.ts:575

Unique ID of the sub-agent instance

SubagentEventBase.subagentId


subagentType: string

Defined in: src/execution/types.ts:577

Type/name of the sub-agent (e.g., ‘explorer’, ‘planner’)

SubagentEventBase.subagentType


timestamp: number

Defined in: src/execution/types.ts:594

Start timestamp in milliseconds since epoch


type: "subagent_start"

Defined in: src/execution/types.ts:590

Event type discriminator