Uses of Class
dev.langchain4j.agentic.internal.AsyncResponse
Packages that use AsyncResponse
-
Uses of AsyncResponse in dev.langchain4j.agentic.internal
Method parameters in dev.langchain4j.agentic.internal with type arguments of type AsyncResponseModifier and TypeMethodDescriptionvoidAsyncResponse.onComplete(Consumer<AsyncResponse<T>> onComplete) Passes this response toonCompletewhen it completes, successfully or not, on the thread completing it, or immediately on the calling thread when it already completed. -
Uses of AsyncResponse in dev.langchain4j.agentic.scope
Methods in dev.langchain4j.agentic.scope with parameters of type AsyncResponseModifier and TypeMethodDescriptionvoidDefaultAgenticScope.asyncEnded(String outputKey, AsyncResponse<?> response) Completes an asynchronous agent, on the thread of its executor.voidDefaultAgenticScope.asyncPending(String agentName, String outputKey, AsyncResponse<?> response) Tracks the response of an asynchronous agent just written to this scope: its result takes the place of the response when it completes, seeDefaultAgenticScope.asyncEnded(String, AsyncResponse), and until then the next root call on this scope waits for it.