Uses of Class
dev.langchain4j.model.chat.response.PartialResponseContext
Packages that use PartialResponseContext
-
Uses of PartialResponseContext in dev.langchain4j.model.chat.response
Methods in dev.langchain4j.model.chat.response with parameters of type PartialResponseContextModifier and TypeMethodDescriptiondefault voidStreamingChatResponseHandler.onPartialResponse(PartialResponse partialResponse, PartialResponseContext context) Invoked each time the model generates a partial textual response, usually a single token. -
Uses of PartialResponseContext in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type PartialResponseContextModifier and TypeMethodDescriptionAiServiceTokenStream.onPartialResponseWithContext(BiConsumer<PartialResponse, PartialResponseContext> handler) default TokenStreamTokenStream.onPartialResponseWithContext(BiConsumer<PartialResponse, PartialResponseContext> handler) The provided consumer will be invoked every time a new partial textual response (usually a single token) from a language model is available.