Class ChatModelResponse

java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelResponse

@Deprecated(forRemoval=true) public class ChatModelResponse extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
in favour of ChatResponse
A response from the ChatLanguageModel or StreamingChatLanguageModel, intended to be used with ChatModelListener.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChatModelResponse(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    id()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChatModelResponse

      public ChatModelResponse(String id, String model, TokenUsage tokenUsage, FinishReason finishReason, AiMessage aiMessage)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • builder

      Deprecated, for removal: This API element is subject to removal in a future version.
    • id

      public String id()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • model

      public String model()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • tokenUsage

      public TokenUsage tokenUsage()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • finishReason

      public FinishReason finishReason()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • aiMessage

      public AiMessage aiMessage()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object