Package dev.langchain4j.invocation
package dev.langchain4j.invocation
-
ClassDescriptionCarries the context of the thread that started an AI Service invocation, captured with
ExecutorProvider.captureContext(), in theInvocationContextof the invocation, so that every task the invocation offloads runs with it, whichever thread submits the task.TheInvocationContextbuilt by LangChain4j.Represents the context of a single AI Service invocation.A builder class to createInvocationContextinstances.Makes sure that an AI Service invocation reports its end only once, with exactly one ofAiServiceCompletedEvent,AiServiceErrorEventorAiServiceCancelledEvent, also when completion, failure and cancellation race.Represents arbitrary parameters available during a single AI Service invocation.A marker interface for components that are managed by LangChain4j framework.