Interface ToolCompensatedEvent

All Superinterfaces:
AiServiceEvent
All Known Implementing Classes:
DefaultToolCompensatedEvent

@Experimental public interface ToolCompensatedEvent extends AiServiceEvent
Invoked after a successfully-executed tool is compensated (rolled back) - for example when another tool in the same round failed, or when the invocation was cancelled. It carries the tool that was rolled back, its original (successful) result, and the CompensationReason. Like ToolExecutedEvent, it can be invoked multiple times within a single AI Service invocation.
Since:
1.20.0