Package dev.langchain4j.spi
package dev.langchain4j.spi
-
ClassDescriptionThe context of a thread (tracing span, SLF4J MDC, security context, …), captured by
ExecutorProvider.captureContext()so that it can be restored in tasks that run later, possibly on another thread.SPI for supplying theExecutorthat 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 a service of which only one is used, such as a JSON codec or a prompt template factory.Utility wrapper aroundServiceLoader.load().