Skip to content

Interface: InjectToolContextOptions

@providerprotocol/agents


@providerprotocol/agents / index / InjectToolContextOptions

Defined in: src/execution/tool-context.ts:15

Options for configuring tool context injection behavior.

injectToolContext for the main injection function

optional onSubagentEvent: OnSubagentEvent

Defined in: src/execution/tool-context.ts:21

Callback for receiving sub-agent events emitted by tools. Tools that spawn sub-agents can use this callback to propagate lifecycle events (start, inner events, end) to the parent context.