Package dev.langchain4j.spi
package dev.langchain4j.spi
-
ClassDescriptionSPI for supplying the
Executorthat LangChain4j uses to offload blocking work and run its asynchronous continuations — concurrent tool execution, blocking RAG / retrieval and embedding-store calls, moderation, in-process embedding models, retry backoff scheduling, and similar.Decides which implementation wins when more than one is registered for the same service.Utility wrapper aroundServiceLoader.load().