Context provided to loop interceptors
The agent's latest response text
tools: Tool[]
Available tools
Current working directory
stopReason: FinalMessage["stop_reason"]
Stop reason from the LLM response (e.g., "end_turn", "max_tokens", "tool_use")
Abort signal for cancellation
eventSubject: Subject<TaskEvent>
RxJS Subject for emitting task events during interceptor execution.
Note: Message events are automatically emitted when interceptors add new messages using push(). Other array operations (unshift, splice, pop, shift) do not auto-emit and require manual emission of TaskHistoryChangedEvent if needed.
This subject can be used for custom task events like tool execution progress, approval requests, history modifications, etc.