Class VectorStoreSearchPageResponse
-
- All Implemented Interfaces:
public final class VectorStoreSearchPageResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
VectorStoreSearchPageResponse.Builder
A builder for VectorStoreSearchPageResponse.
-
Method Summary
Modifier and Type Method Description final List<VectorStoreSearchResponse>
data()
The list of search result items. final Boolean
hasMore()
Indicates if there are more results to fetch. final Optional<String>
nextPage()
The token for the next page, if any. final JsonValue
_object_()
The object type, which is always vector_store.search_results.page
Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("vector_store.search_results.page")
final List<String>
searchQuery()
final JsonField<List<VectorStoreSearchResponse>>
_data()
Returns the raw JSON value of data. final JsonField<Boolean>
_hasMore()
Returns the raw JSON value of hasMore. final JsonField<String>
_nextPage()
Returns the raw JSON value of nextPage. final JsonField<List<String>>
_searchQuery()
Returns the raw JSON value of searchQuery. final Map<String, JsonValue>
_additionalProperties()
final VectorStoreSearchPageResponse.Builder
toBuilder()
final VectorStoreSearchPageResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static VectorStoreSearchPageResponse.Builder
builder()
Returns a mutable builder for constructing an instance of VectorStoreSearchPageResponse. -
-
Method Detail
-
data
final List<VectorStoreSearchResponse> data()
The list of search result items.
-
_object_
final JsonValue _object_()
The object type, which is always
vector_store.search_results.page
Expected to always return the following:
JsonValue.from("vector_store.search_results.page")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
searchQuery
final List<String> searchQuery()
-
_data
final JsonField<List<VectorStoreSearchResponse>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_hasMore
final JsonField<Boolean> _hasMore()
Returns the raw JSON value of hasMore.
Unlike hasMore, this method doesn't throw if the JSON field has an unexpected type.
-
_nextPage
final JsonField<String> _nextPage()
Returns the raw JSON value of nextPage.
Unlike nextPage, this method doesn't throw if the JSON field has an unexpected type.
-
_searchQuery
final JsonField<List<String>> _searchQuery()
Returns the raw JSON value of searchQuery.
Unlike searchQuery, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final VectorStoreSearchPageResponse.Builder toBuilder()
-
validate
final VectorStoreSearchPageResponse validate()
-
builder
final static VectorStoreSearchPageResponse.Builder builder()
Returns a mutable builder for constructing an instance of VectorStoreSearchPageResponse.
The following fields are required:
.data() .hasMore() .nextPage() .searchQuery()
-
-
-
-