Uses of Class
dev.langchain4j.test.service.AiServiceCapture
Packages that use AiServiceCapture
-
Uses of AiServiceCapture in dev.langchain4j.test
Methods in dev.langchain4j.test with parameters of type AiServiceCaptureModifier and TypeMethodDescriptionstatic AiServiceInvocationAssertLangChain4jAssertions.assertThat(AiServiceCapture actual) Starts assertions on the only top-level AI Service invocation of the given capture, made withAiServiceCapture. -
Uses of AiServiceCapture in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return AiServiceCaptureModifier 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 AiServiceCaptureRuns the given lambda and captures the AI Service invocations it starts.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.static AiServiceCaptureAiServiceCapture.captureExpectingFailure(Callable<?> code) LikeAiServiceCapture.capture(Callable), 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.