Uses of Class
dev.langchain4j.test.service.AiServiceInvocation
Packages that use AiServiceInvocation
-
Uses of AiServiceInvocation in dev.langchain4j.test
Methods in dev.langchain4j.test with parameters of type AiServiceInvocationModifier and TypeMethodDescriptionstatic AiServiceInvocationAssertLangChain4jAssertions.assertThat(AiServiceInvocation actual) Starts assertions on the given AI Service invocation, captured withAiServiceCapture. -
Uses of AiServiceInvocation in dev.langchain4j.test.service
Subclasses with type arguments of type AiServiceInvocation in dev.langchain4j.test.serviceModifier and TypeClassDescriptionfinal classAssertions on what an AI Service did: which tools were executed, with which arguments and in which order, which sources were retrieved, how many times the chat model and the other models were called, why the response finished and whether the invocation succeeded.Methods in dev.langchain4j.test.service that return AiServiceInvocationModifier and TypeMethodDescriptionAiServiceCapture.invocation()Returns the only top-level AI Service invocation (seeAiServiceCapture.invocations()).AiServiceCapture.invocation(Class<?> aiService) Returns the only top-level AI Service invocation of the given AI Service interface (seeAiServiceCapture.invocations()).Methods in dev.langchain4j.test.service that return types with arguments of type AiServiceInvocationModifier and TypeMethodDescriptionAiServiceCapture.invocations()Returns the top-level AI Service invocations: those not started by another captured invocation, in the order they started.AiServiceCapture.invocations(Class<?> aiService) Returns the top-level AI Service invocations of the given AI Service interface (seeAiServiceCapture.invocations()), in the order they started.AiServiceInvocation.nestedInvocations()Returns the AI Service invocations started by the work of this invocation (for example by its tools, guardrails or content retrievers), in the order they started.Constructors in dev.langchain4j.test.service with parameters of type AiServiceInvocationModifierConstructorDescriptionCreates assertions on the given AI Service invocation.