Uses of Class
dev.langchain4j.internal.CancellationChain
Packages that use CancellationChain
-
Uses of CancellationChain in dev.langchain4j.guardrail
Methods in dev.langchain4j.guardrail with parameters of type CancellationChainModifier and TypeMethodDescriptionprotected CompletableFuture<R> AbstractGuardrailExecutor.executeGuardrailsAsync(P request, CancellationChain chain) Non-blocking counterpart ofAbstractGuardrailExecutor.executeGuardrails(GuardrailRequest): runs the configured guardrails sequentially (each guardrail sees the result of any rewrite by the previous one), firing the observability event and short-circuiting on a fatal result, without blocking the calling thread.protected CompletableFuture<R> AbstractGuardrailExecutor.validateAsync(P request, G guardrail, CancellationChain chain) Non-blocking counterpart ofAbstractGuardrailExecutor.validate(GuardrailRequest, Guardrail): runs a single guardrail'sGuardrail.validateAsync(GuardrailRequest)and wraps any failure in aGuardrailException, mirroring the synchronous error handling.