Class StreamingChatModelReply.PartialResponse
-
- All Implemented Interfaces:
-
dev.langchain4j.kotlin.model.chat.StreamingChatModelReply
public final class StreamingChatModelReply.PartialResponse implements StreamingChatModelReply
Represents a partial response received from an AI language model during a streaming interaction.
This data class is used to encapsulate an intermediate token that the model generates as part of its streaming output. Partial responses are often used in scenarios where the model's output is produced incrementally, enabling real-time updates to the user or downstream processes.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringpartialResponse
-
Constructor Summary
Constructors Constructor Description StreamingChatModelReply.PartialResponse(String partialResponse)
-
Method Summary
Modifier and Type Method Description final StringgetPartialResponse()-
-
Constructor Detail
-
StreamingChatModelReply.PartialResponse
StreamingChatModelReply.PartialResponse(String partialResponse)
-
-
Method Detail
-
getPartialResponse
final String getPartialResponse()
-
-
-
-