Uses of Package
dev.langchain4j.test.mock
Packages that use dev.langchain4j.test.mock
Package
Description
Model mocks for tests: they need no network, answer the way a test tells them to, and record the requests they
receive.
-
Classes in dev.langchain4j.test.mock used by dev.langchain4j.test.mockClassDescriptionA
ChatModelfor tests: it needs no network, answers the way the test tells it to, and records the requests it receives.ADecisionModelfor tests: it needs no network, answers the way the test tells it to, and records the requests it receives.AnEmbeddingModelfor tests: it needs no network, returns the vectors the test tells it to, and records the requests it receives.AModerationModelfor tests: it needs no network, moderates the way the test tells it to, and records the requests it receives.AScoringModelfor tests: it needs no network, scores each document the way the test tells it to, and records the requests it receives.AStreamingChatModelfor tests: it needs no network, streams the answers the test tells it to, and records the requests it receives.