Record Class Properties

java.lang.Object
java.lang.Record
dev.langchain4j.openai.spring.Properties

@ConfigurationProperties(prefix="langchain4j.open-ai") public record Properties(@NestedConfigurationProperty dev.langchain4j.openai.spring.ChatModelProperties chatModel, @NestedConfigurationProperty dev.langchain4j.openai.spring.ChatModelProperties streamingChatModel, @NestedConfigurationProperty dev.langchain4j.openai.spring.LanguageModelProperties languageModel, @NestedConfigurationProperty dev.langchain4j.openai.spring.LanguageModelProperties streamingLanguageModel, @NestedConfigurationProperty dev.langchain4j.openai.spring.EmbeddingModelProperties embeddingModel, @NestedConfigurationProperty dev.langchain4j.openai.spring.ModerationModelProperties moderationModel, @NestedConfigurationProperty dev.langchain4j.openai.spring.ImageModelProperties imageModel) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Properties(dev.langchain4j.openai.spring.ChatModelProperties chatModel, dev.langchain4j.openai.spring.ChatModelProperties streamingChatModel, dev.langchain4j.openai.spring.LanguageModelProperties languageModel, dev.langchain4j.openai.spring.LanguageModelProperties streamingLanguageModel, dev.langchain4j.openai.spring.EmbeddingModelProperties embeddingModel, dev.langchain4j.openai.spring.ModerationModelProperties moderationModel, dev.langchain4j.openai.spring.ImageModelProperties imageModel)
    Creates an instance of a Properties record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.langchain4j.openai.spring.ChatModelProperties
    Returns the value of the chatModel record component.
    dev.langchain4j.openai.spring.EmbeddingModelProperties
    Returns the value of the embeddingModel record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    dev.langchain4j.openai.spring.ImageModelProperties
    Returns the value of the imageModel record component.
    dev.langchain4j.openai.spring.LanguageModelProperties
    Returns the value of the languageModel record component.
    dev.langchain4j.openai.spring.ModerationModelProperties
    Returns the value of the moderationModel record component.
    dev.langchain4j.openai.spring.ChatModelProperties
    Returns the value of the streamingChatModel record component.
    dev.langchain4j.openai.spring.LanguageModelProperties
    Returns the value of the streamingLanguageModel record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • Properties

      public Properties(dev.langchain4j.openai.spring.ChatModelProperties chatModel, dev.langchain4j.openai.spring.ChatModelProperties streamingChatModel, dev.langchain4j.openai.spring.LanguageModelProperties languageModel, dev.langchain4j.openai.spring.LanguageModelProperties streamingLanguageModel, dev.langchain4j.openai.spring.EmbeddingModelProperties embeddingModel, dev.langchain4j.openai.spring.ModerationModelProperties moderationModel, dev.langchain4j.openai.spring.ImageModelProperties imageModel)
      Creates an instance of a Properties record class.
      Parameters:
      chatModel - the value for the chatModel record component
      streamingChatModel - the value for the streamingChatModel record component
      languageModel - the value for the languageModel record component
      streamingLanguageModel - the value for the streamingLanguageModel record component
      embeddingModel - the value for the embeddingModel record component
      moderationModel - the value for the moderationModel record component
      imageModel - the value for the imageModel record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • chatModel

      public dev.langchain4j.openai.spring.ChatModelProperties chatModel()
      Returns the value of the chatModel record component.
      Returns:
      the value of the chatModel record component
    • streamingChatModel

      public dev.langchain4j.openai.spring.ChatModelProperties streamingChatModel()
      Returns the value of the streamingChatModel record component.
      Returns:
      the value of the streamingChatModel record component
    • languageModel

      public dev.langchain4j.openai.spring.LanguageModelProperties languageModel()
      Returns the value of the languageModel record component.
      Returns:
      the value of the languageModel record component
    • streamingLanguageModel

      public dev.langchain4j.openai.spring.LanguageModelProperties streamingLanguageModel()
      Returns the value of the streamingLanguageModel record component.
      Returns:
      the value of the streamingLanguageModel record component
    • embeddingModel

      public dev.langchain4j.openai.spring.EmbeddingModelProperties embeddingModel()
      Returns the value of the embeddingModel record component.
      Returns:
      the value of the embeddingModel record component
    • moderationModel

      public dev.langchain4j.openai.spring.ModerationModelProperties moderationModel()
      Returns the value of the moderationModel record component.
      Returns:
      the value of the moderationModel record component
    • imageModel

      public dev.langchain4j.openai.spring.ImageModelProperties imageModel()
      Returns the value of the imageModel record component.
      Returns:
      the value of the imageModel record component