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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getPartialResponse()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamingChatModelReply.PartialResponse

        StreamingChatModelReply.PartialResponse(String partialResponse)