Package app.ductape.sdk.vector.types
Record Class VectorEmbeddingTypes.EmbeddingModelConfig
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorEmbeddingTypes.EmbeddingModelConfig
- Enclosing class:
- VectorEmbeddingTypes
public static record VectorEmbeddingTypes.EmbeddingModelConfig(VectorEmbeddingTypes.EmbeddingProvider provider, String model, String apiKey, String baseUrl, Integer dimensions, Integer timeout, Integer batchSize, Map<String,String> headers)
extends Record
TS
IEmbeddingModelConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.baseUrl()Returns the value of thebaseUrlrecord component.Returns the value of thebatchSizerecord component.Returns the value of thedimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.model()Returns the value of themodelrecord component.provider()Returns the value of theproviderrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmbeddingModelConfig
public EmbeddingModelConfig(VectorEmbeddingTypes.EmbeddingProvider provider, String model, String apiKey, String baseUrl, Integer dimensions, Integer timeout, Integer batchSize, Map<String, String> headers) Creates an instance of aEmbeddingModelConfigrecord class.- Parameters:
provider- the value for theproviderrecord componentmodel- the value for themodelrecord componentapiKey- the value for theapiKeyrecord componentbaseUrl- the value for thebaseUrlrecord componentdimensions- the value for thedimensionsrecord componenttimeout- the value for thetimeoutrecord componentbatchSize- the value for thebatchSizerecord componentheaders- the value for theheadersrecord 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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
apiKey
Returns the value of theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
dimensions
Returns the value of thedimensionsrecord component.- Returns:
- the value of the
dimensionsrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
batchSize
Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-