Interface ToolCompensatedEvent

All Superinterfaces:
AiServiceEvent
All Known Implementing Classes:
DefaultToolCompensatedEvent

@Experimental public interface ToolCompensatedEvent extends AiServiceEvent
Invoked after the compensating action of a successfully-executed tool has run to roll the tool back - for example because another tool failed, or because the invocation was cancelled. It carries the tool that was rolled back, its original (successful) result, and the CompensationReason. It is invoked also when the compensating action failed: then compensationError() returns its error, and the effects of the tool may still be in place. Like ToolExecutedEvent, it can be invoked multiple times within a single AI Service invocation.
Since:
1.20.0