Skip to content

Interface: SubagentInnerEvent

@providerprotocol/agents


@providerprotocol/agents / index / SubagentInnerEvent

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

Event emitted for forwarded events from sub-agent execution.

Wraps inner events from the sub-agent to provide visibility into nested execution while maintaining the parent context.

innerEvent: AgentStreamEvent

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

The actual event from the sub-agent


parentToolCallId: string

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

The parent tool call ID that spawned this sub-agent

SubagentEventBase.parentToolCallId


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


type: "subagent_event"

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

Event type discriminator