Uses of Enum Class
dev.langchain4j.observability.api.event.CompensationReason
Packages that use CompensationReason
Package
Description
-
Uses of CompensationReason in dev.langchain4j.observability.api.event
Subclasses with type arguments of type CompensationReason in dev.langchain4j.observability.api.eventModifier and TypeClassDescriptionenumWhy the compensating action of a successfully-executed tool was run to roll the tool back.Methods in dev.langchain4j.observability.api.event that return CompensationReasonModifier and TypeMethodDescriptionToolCompensatedEvent.reason()Returns why the tool was compensated.ToolCompensatedEvent.ToolCompensatedEventBuilder.reason()static CompensationReasonReturns the enum constant of this class with the specified name.static CompensationReason[]CompensationReason.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.langchain4j.observability.api.event with parameters of type CompensationReasonModifier and TypeMethodDescriptionToolCompensatedEvent.ToolCompensatedEventBuilder.reason(CompensationReason reason) Sets the reason the tool was compensated. -
Uses of CompensationReason in dev.langchain4j.observability.event
Methods in dev.langchain4j.observability.event that return CompensationReason -
Uses of CompensationReason in dev.langchain4j.service
Methods in dev.langchain4j.service that return CompensationReasonConstructors in dev.langchain4j.service with parameters of type CompensationReasonModifierConstructorDescriptionToolCompensatedEvent(ToolExecution toolExecution, CompensationReason reason, InvocationContext invocationContext) Deprecated, for removal: This API element is subject to removal in a future version.ToolCompensatedEvent(ToolExecution toolExecution, CompensationReason reason, @Nullable Throwable compensationError, InvocationContext invocationContext)
ToolCompensatedEvent(ToolExecution, CompensationReason, Throwable, InvocationContext)instead, which reports whether the compensating action failed.