Uses of Class
dev.langchain4j.test.service.ModelCall
Packages that use ModelCall
-
Uses of ModelCall in dev.langchain4j.test.service
Subclasses of ModelCall in dev.langchain4j.test.serviceModifier and TypeClassDescriptionfinal classA call to a chat model made during an AI Service invocation (seeModelCall).final classA call to a decision model made during an AI Service invocation (seeModelCall).final classA call to a embedding model made during an AI Service invocation (seeModelCall).final classA call to a moderation model made during an AI Service invocation (seeModelCall).final classA call to a scoring model made during an AI Service invocation (seeModelCall).Methods in dev.langchain4j.test.service that return types with arguments of type ModelCallModifier and TypeMethodDescriptionAiServiceInvocation.modelCalls()Returns the calls to models made during this invocation, in the order they started: those of the AI Service to its own chat model (seeAiServiceInvocation.ownChatModelCalls()) and those of the components it runs, for example a query transformer, an embedding model used for retrieval, a scoring model, a moderation model or a judge in a guardrail.Method parameters in dev.langchain4j.test.service with type arguments of type ModelCallModifier and TypeMethodDescriptionAiServiceInvocationAssert.hasModelCallCount(Class<? extends ModelCall> type, int expectedCount) Asserts that exactly the given number of calls were made to models of the given type (seeAiServiceInvocation.modelCalls()), also calls that failed.