Uses of Interface
dev.langchain4j.test.service.AiServiceCapture.ThrowingRunnable
Packages that use AiServiceCapture.ThrowingRunnable
-
Uses of AiServiceCapture.ThrowingRunnable in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service with parameters of type AiServiceCapture.ThrowingRunnableModifier and TypeMethodDescriptionstatic AiServiceCaptureAiServiceCapture.capture(AiServiceCapture.ThrowingRunnable code) Runs the given lambda and captures the AI Service invocations it starts, then waits until all of them have finished.static AiServiceCaptureAiServiceCapture.captureExpectingFailure(AiServiceCapture.ThrowingRunnable code) LikeAiServiceCapture.capture(ThrowingRunnable), for a lambda that is expected to make an AI Service invocation fail: the failed invocation is captured instead of its error being thrown, so that what happened before the failure can be checked.