Class VectorStoreSearchResponse.Builder
-
- All Implemented Interfaces:
public final class VectorStoreSearchResponse.Builder
A builder for VectorStoreSearchResponse.
-
-
Method Summary
-
-
Method Detail
-
attributes
final VectorStoreSearchResponse.Builder attributes(VectorStoreSearchResponse.Attributes attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
attributes
final VectorStoreSearchResponse.Builder attributes(Optional<VectorStoreSearchResponse.Attributes> attributes)
Alias for calling Builder.attributes with
attributes.orElse(null)
.
-
attributes
final VectorStoreSearchResponse.Builder attributes(JsonField<VectorStoreSearchResponse.Attributes> attributes)
Sets Builder.attributes to an arbitrary JSON value.
You should usually call Builder.attributes with a well-typed Attributes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final VectorStoreSearchResponse.Builder content(List<VectorStoreSearchResponse.Content> content)
Content chunks from the file.
-
content
final VectorStoreSearchResponse.Builder content(JsonField<List<VectorStoreSearchResponse.Content>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<Content>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final VectorStoreSearchResponse.Builder addContent(VectorStoreSearchResponse.Content content)
Adds a single Content to Builder.content.
-
fileId
final VectorStoreSearchResponse.Builder fileId(String fileId)
The ID of the vector store file.
-
fileId
final VectorStoreSearchResponse.Builder fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
filename
final VectorStoreSearchResponse.Builder filename(String filename)
The name of the vector store file.
-
filename
final VectorStoreSearchResponse.Builder filename(JsonField<String> filename)
Sets Builder.filename to an arbitrary JSON value.
You should usually call Builder.filename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
score
final VectorStoreSearchResponse.Builder score(Double score)
The similarity score for the result.
-
score
final VectorStoreSearchResponse.Builder score(JsonField<Double> score)
Sets Builder.score to an arbitrary JSON value.
You should usually call Builder.score with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final VectorStoreSearchResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VectorStoreSearchResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VectorStoreSearchResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VectorStoreSearchResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VectorStoreSearchResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VectorStoreSearchResponse build()
Returns an immutable instance of VectorStoreSearchResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.attributes() .content() .fileId() .filename() .score()
-
-
-
-