Record Class Properties

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

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

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

    Modifier and Type
    Method
    Description
    dev.langchain4j.azure.openai.spring.ChatModelProperties
    Returns the value of the chatModel record component.
    dev.langchain4j.azure.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.azure.openai.spring.ImageModelProperties
    Returns the value of the imageModel record component.
    dev.langchain4j.azure.openai.spring.ChatModelProperties
    Returns the value of the streamingChatModel 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.azure.openai.spring.ChatModelProperties chatModel, dev.langchain4j.azure.openai.spring.ChatModelProperties streamingChatModel, dev.langchain4j.azure.openai.spring.EmbeddingModelProperties embeddingModel, dev.langchain4j.azure.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
      embeddingModel - the value for the embeddingModel 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.azure.openai.spring.ChatModelProperties chatModel()
      Returns the value of the chatModel record component.
      Returns:
      the value of the chatModel record component
    • streamingChatModel

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

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

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