Package dev.langchain4j.openai.spring
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
ConstructorsConstructorDescriptionProperties(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 aPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.openai.spring.ChatModelPropertiesReturns the value of thechatModelrecord component.dev.langchain4j.openai.spring.EmbeddingModelPropertiesReturns the value of theembeddingModelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.dev.langchain4j.openai.spring.ImageModelPropertiesReturns the value of theimageModelrecord component.dev.langchain4j.openai.spring.LanguageModelPropertiesReturns the value of thelanguageModelrecord component.dev.langchain4j.openai.spring.ModerationModelPropertiesReturns the value of themoderationModelrecord component.dev.langchain4j.openai.spring.ChatModelPropertiesReturns the value of thestreamingChatModelrecord component.dev.langchain4j.openai.spring.LanguageModelPropertiesReturns the value of thestreamingLanguageModelrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aPropertiesrecord class.- Parameters:
chatModel- the value for thechatModelrecord componentstreamingChatModel- the value for thestreamingChatModelrecord componentlanguageModel- the value for thelanguageModelrecord componentstreamingLanguageModel- the value for thestreamingLanguageModelrecord componentembeddingModel- the value for theembeddingModelrecord componentmoderationModel- the value for themoderationModelrecord componentimageModel- the value for theimageModelrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
chatModel
public dev.langchain4j.openai.spring.ChatModelProperties chatModel()Returns the value of thechatModelrecord component.- Returns:
- the value of the
chatModelrecord component
-
streamingChatModel
public dev.langchain4j.openai.spring.ChatModelProperties streamingChatModel()Returns the value of thestreamingChatModelrecord component.- Returns:
- the value of the
streamingChatModelrecord component
-
languageModel
public dev.langchain4j.openai.spring.LanguageModelProperties languageModel()Returns the value of thelanguageModelrecord component.- Returns:
- the value of the
languageModelrecord component
-
streamingLanguageModel
public dev.langchain4j.openai.spring.LanguageModelProperties streamingLanguageModel()Returns the value of thestreamingLanguageModelrecord component.- Returns:
- the value of the
streamingLanguageModelrecord component
-
embeddingModel
public dev.langchain4j.openai.spring.EmbeddingModelProperties embeddingModel()Returns the value of theembeddingModelrecord component.- Returns:
- the value of the
embeddingModelrecord component
-
moderationModel
public dev.langchain4j.openai.spring.ModerationModelProperties moderationModel()Returns the value of themoderationModelrecord component.- Returns:
- the value of the
moderationModelrecord component
-
imageModel
public dev.langchain4j.openai.spring.ImageModelProperties imageModel()Returns the value of theimageModelrecord component.- Returns:
- the value of the
imageModelrecord component
-