Interface: InjectToolContextOptions
@providerprotocol/agents / index / InjectToolContextOptions
Interface: InjectToolContextOptions
Section titled “Interface: InjectToolContextOptions”Defined in: src/execution/tool-context.ts:15
Options for configuring tool context injection behavior.
injectToolContext for the main injection function
Properties
Section titled “Properties”onSubagentEvent?
Section titled “onSubagentEvent?”
optionalonSubagentEvent: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.