Skip to content

Type Alias: OnSubagentEvent()

@providerprotocol/agents


@providerprotocol/agents / index / OnSubagentEvent

OnSubagentEvent = (event) => void

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

Callback type for receiving sub-agent events.

Tools that spawn sub-agents should accept this callback to propagate sub-agent lifecycle events to the parent execution context.

SubagentEvent

The sub-agent event to handle

void