diff --git a/.github/workflows/pr-lint.yaml b/.github/workflows/pr-lint.yaml
index cd53b8d6d..eb9922098 100644
--- a/.github/workflows/pr-lint.yaml
+++ b/.github/workflows/pr-lint.yaml
@@ -24,6 +24,7 @@ jobs:
Orchestration
DevOps
PromptRegistry
+ Grounding
headerPattern: '^(\w.+): (?:\[(\w.+)\] )?(.+)$'
headerPatternCorrespondence: type, scope, subject
# for available types, check:
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java
index 54377a57a..6c8cc4dc4 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java
@@ -8,6 +8,7 @@
import com.sap.ai.sdk.grounding.model.GetPipelineExecutions;
import com.sap.ai.sdk.grounding.model.GetPipelineStatus;
import com.sap.ai.sdk.grounding.model.GetPipelines;
+import com.sap.ai.sdk.grounding.model.ManualPipelineTrigger;
import com.sap.ai.sdk.grounding.model.PipelineDocumentResponse;
import com.sap.ai.sdk.grounding.model.PipelineId;
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
@@ -1002,4 +1003,72 @@ public GetPipelineStatus getPipelineStatus(
localVarAuthNames,
localVarReturnType);
}
+
+ /**
+ * Pipeline Trigger
+ *
+ *
Manually trigger a pipeline
+ *
+ *
202 - Accepted
+ *
+ *
400 - The specification of the resource was incorrect
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param manualPipelineTrigger The value for the parameter manualPipelineTrigger
+ * @return An OpenApiResponse containing the status code of the HttpResponse.
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public OpenApiResponse manualTriggerPipeline(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final ManualPipelineTrigger manualPipelineTrigger)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = manualPipelineTrigger;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling manualTriggerPipeline");
+ }
+
+ // verify the required parameter 'manualPipelineTrigger' is set
+ if (manualPipelineTrigger == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'manualPipelineTrigger' when calling pipelineV1PipelineEndpointsTriggerPipeline");
+ }
+
+ final String localVarPath =
+ UriComponentsBuilder.fromPath("/pipelines/trigger").build().toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {"application/json"};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.POST,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ return new OpenApiResponse(apiClient);
+ }
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java
index 085d949c7..3ebebbc31 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java
@@ -9,8 +9,8 @@
import com.sap.ai.sdk.grounding.model.DocumentUpdateRequest;
import com.sap.ai.sdk.grounding.model.Documents;
import com.sap.ai.sdk.grounding.model.DocumentsListResponse;
-import com.sap.ai.sdk.grounding.model.SearchResults;
import com.sap.ai.sdk.grounding.model.TextSearchRequest;
+import com.sap.ai.sdk.grounding.model.VectorSearchResults;
import com.sap.ai.sdk.grounding.model.VectorV1VectorEndpointsGetCollectionCreationStatus200Response;
import com.sap.ai.sdk.grounding.model.VectorV1VectorEndpointsGetCollectionDeletionStatus200Response;
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
@@ -914,11 +914,11 @@ public DocumentResponse getDocumentById(
*
* @param aiResourceGroup Resource Group ID
* @param textSearchRequest The value for the parameter textSearchRequest
- * @return SearchResults
+ * @return VectorSearchResults
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public SearchResults search(
+ public VectorSearchResults search(
@Nonnull final String aiResourceGroup, @Nonnull final TextSearchRequest textSearchRequest)
throws OpenApiRequestException {
final Object localVarPostBody = textSearchRequest;
@@ -954,8 +954,8 @@ public SearchResults search(
final String[] localVarAuthNames = new String[] {};
- final ParameterizedTypeReference localVarReturnType =
- new ParameterizedTypeReference() {};
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
return apiClient.invokeAPI(
localVarPath,
HttpMethod.POST,
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java
index b23bfcf24..2691195fe 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java
@@ -35,7 +35,7 @@ public class BaseDocument
private List chunks = new ArrayList<>();
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -96,7 +96,7 @@ public void setChunks(@Nonnull final List chunks) {
* @return The same instance of this {@link BaseDocument} class
*/
@Nonnull
- public BaseDocument metadata(@Nonnull final List metadata) {
+ public BaseDocument metadata(@Nonnull final List metadata) {
this.metadata = metadata;
return this;
}
@@ -108,7 +108,7 @@ public BaseDocument metadata(@Nonnull final List metad
* @return The same instance of type {@link BaseDocument}
*/
@Nonnull
- public BaseDocument addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
+ public BaseDocument addMetadataItem(@Nonnull final VectorDocumentKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -122,7 +122,7 @@ public BaseDocument addMetadataItem(@Nonnull final DocumentKeyValueListPair meta
* @return metadata The metadata of this {@link BaseDocument} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -131,7 +131,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link BaseDocument}
*/
- public void setMetadata(@Nonnull final List metadata) {
+ public void setMetadata(@Nonnull final List metadata) {
this.metadata = metadata;
}
@@ -270,7 +270,7 @@ public interface Builder1 {
* @param metadata The metadata of this {@link BaseDocument}
* @return The BaseDocument instance.
*/
- BaseDocument metadata(@Nonnull final List metadata);
+ BaseDocument metadata(@Nonnull final List metadata);
/**
* Set the metadata of this {@link BaseDocument} instance.
@@ -278,7 +278,7 @@ public interface Builder1 {
* @param metadata The metadata of this {@link BaseDocument}
* @return The BaseDocument instance.
*/
- default BaseDocument metadata(@Nonnull final DocumentKeyValueListPair... metadata) {
+ default BaseDocument metadata(@Nonnull final VectorDocumentKeyValueListPair... metadata) {
return metadata(Arrays.asList(metadata));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java
index e7eab9bed..a8a084385 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java
@@ -38,7 +38,7 @@ public class Collection
private EmbeddingConfig embeddingConfig;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("id")
private UUID id;
@@ -119,7 +119,7 @@ public void setEmbeddingConfig(@Nonnull final EmbeddingConfig embeddingConfig) {
* @return The same instance of this {@link Collection} class
*/
@Nonnull
- public Collection metadata(@Nullable final List metadata) {
+ public Collection metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -131,7 +131,7 @@ public Collection metadata(@Nullable final List metadata) {
* @return The same instance of type {@link Collection}
*/
@Nonnull
- public Collection addMetadataItem(@Nonnull final KeyValueListPair metadataItem) {
+ public Collection addMetadataItem(@Nonnull final VectorKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -145,7 +145,7 @@ public Collection addMetadataItem(@Nonnull final KeyValueListPair metadataItem)
* @return metadata The metadata of this {@link Collection} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -155,7 +155,7 @@ public List getMetadata() {
* @param metadata Metadata attached to collection. Useful to restrict search to a subset of
* collections.
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java
index 8826a7af0..78de8426b 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java
@@ -37,7 +37,7 @@ public class CollectionRequest
private EmbeddingConfig embeddingConfig;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -116,7 +116,7 @@ public void setEmbeddingConfig(@Nonnull final EmbeddingConfig embeddingConfig) {
* @return The same instance of this {@link CollectionRequest} class
*/
@Nonnull
- public CollectionRequest metadata(@Nullable final List metadata) {
+ public CollectionRequest metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -128,7 +128,7 @@ public CollectionRequest metadata(@Nullable final List metadat
* @return The same instance of type {@link CollectionRequest}
*/
@Nonnull
- public CollectionRequest addMetadataItem(@Nonnull final KeyValueListPair metadataItem) {
+ public CollectionRequest addMetadataItem(@Nonnull final VectorKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -142,7 +142,7 @@ public CollectionRequest addMetadataItem(@Nonnull final KeyValueListPair metadat
* @return metadata The metadata of this {@link CollectionRequest} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -152,7 +152,7 @@ public List getMetadata() {
* @param metadata Metadata attached to collection. Useful to restrict search to a subset of
* collections.
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java
index 17804cd51..e33734cb1 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java
@@ -19,12 +19,18 @@
@JsonSubTypes({
@JsonSubTypes.Type(value = MSSharePointPipelineCreateRequest.class, name = "MSSharePoint"),
@JsonSubTypes.Type(value = S3PipelineCreateRequest.class, name = "S3"),
+ @JsonSubTypes.Type(value = SDMPipelineCreateRequest.class, name = "SDM"),
@JsonSubTypes.Type(value = SFTPPipelineCreateRequest.class, name = "SFTP"),
+ @JsonSubTypes.Type(value = WorkZonePipelineCreateRequest.class, name = "WorkZone"),
@JsonSubTypes.Type(
value = MSSharePointPipelineCreateRequest.class,
name = "MSSharePointPipelineCreateRequest"),
@JsonSubTypes.Type(value = S3PipelineCreateRequest.class, name = "S3PipelineCreateRequest"),
+ @JsonSubTypes.Type(value = SDMPipelineCreateRequest.class, name = "SDMPipelineCreateRequest"),
@JsonSubTypes.Type(value = SFTPPipelineCreateRequest.class, name = "SFTPPipelineCreateRequest"),
+ @JsonSubTypes.Type(
+ value = WorkZonePipelineCreateRequest.class,
+ name = "WorkZonePipelineCreateRequest"),
})
public interface CreatePipeline {
Object getType();
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java
index a6e60689b..c1c195443 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java
@@ -38,7 +38,7 @@ public class DataRepository
private String title;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("type")
private DataRepositoryType type;
@@ -119,7 +119,7 @@ public void setTitle(@Nonnull final String title) {
* @return The same instance of this {@link DataRepository} class
*/
@Nonnull
- public DataRepository metadata(@Nullable final List metadata) {
+ public DataRepository metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -131,7 +131,7 @@ public DataRepository metadata(@Nullable final List metadata)
* @return The same instance of type {@link DataRepository}
*/
@Nonnull
- public DataRepository addMetadataItem(@Nonnull final KeyValueListPair metadataItem) {
+ public DataRepository addMetadataItem(@Nonnull final RetrievalKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -146,7 +146,7 @@ public DataRepository addMetadataItem(@Nonnull final KeyValueListPair metadataIt
* @return metadata The metadata of this {@link DataRepository} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -156,7 +156,7 @@ public List getMetadata() {
* @param metadata Metadata attached to DataRepository. Useful to later limit search to a subset
* of DataRepositories.
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java
index a305466e8..60e8049c7 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java
@@ -32,7 +32,7 @@ public class DataRepositorySearchResults
// CHECKSTYLE:ON
{
@JsonProperty("results")
- private List results = new ArrayList<>();
+ private List results = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -48,7 +48,7 @@ protected DataRepositorySearchResults() {}
* @return The same instance of this {@link DataRepositorySearchResults} class
*/
@Nonnull
- public DataRepositorySearchResults results(@Nonnull final List results) {
+ public DataRepositorySearchResults results(@Nonnull final List results) {
this.results = results;
return this;
}
@@ -60,7 +60,7 @@ public DataRepositorySearchResults results(@Nonnull final List re
* @return The same instance of type {@link DataRepositorySearchResults}
*/
@Nonnull
- public DataRepositorySearchResults addResultsItem(@Nonnull final ResultsInner2 resultsItem) {
+ public DataRepositorySearchResults addResultsItem(@Nonnull final ResultsInner3 resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
@@ -74,7 +74,7 @@ public DataRepositorySearchResults addResultsItem(@Nonnull final ResultsInner2 r
* @return results The results of this {@link DataRepositorySearchResults} instance.
*/
@Nonnull
- public List getResults() {
+ public List getResults() {
return results;
}
@@ -83,7 +83,7 @@ public List getResults() {
*
* @param results List of returned results.
*/
- public void setResults(@Nonnull final List results) {
+ public void setResults(@Nonnull final List results) {
this.results = results;
}
@@ -201,7 +201,7 @@ public interface Builder {
* @param results List of returned results.
* @return The DataRepositorySearchResults instance.
*/
- DataRepositorySearchResults results(@Nonnull final List results);
+ DataRepositorySearchResults results(@Nonnull final List results);
/**
* Set the results of this {@link DataRepositorySearchResults} instance.
@@ -209,7 +209,7 @@ public interface Builder {
* @param results List of returned results.
* @return The DataRepositorySearchResults instance.
*/
- default DataRepositorySearchResults results(@Nonnull final ResultsInner2... results) {
+ default DataRepositorySearchResults results(@Nonnull final ResultsInner3... results) {
return results(Arrays.asList(results));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java
index b2dbc8cec..df951886e 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java
@@ -39,7 +39,7 @@ public class DataRepositoryWithDocuments
private String title;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("documents")
private List documents = new ArrayList<>();
@@ -122,7 +122,8 @@ public void setTitle(@Nonnull final String title) {
* @return The same instance of this {@link DataRepositoryWithDocuments} class
*/
@Nonnull
- public DataRepositoryWithDocuments metadata(@Nullable final List metadata) {
+ public DataRepositoryWithDocuments metadata(
+ @Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -134,7 +135,8 @@ public DataRepositoryWithDocuments metadata(@Nullable final List();
}
@@ -149,7 +151,7 @@ public DataRepositoryWithDocuments addMetadataItem(@Nonnull final KeyValueListPa
* @return metadata The metadata of this {@link DataRepositoryWithDocuments} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -159,7 +161,7 @@ public List getMetadata() {
* @param metadata Metadata attached to DataRepository. Useful to later limit search to a subset
* of DataRepositories.
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java
index f60c56b31..46bac5d58 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java
@@ -35,10 +35,10 @@ public class Document
private String id;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("chunks")
- private List chunks = new ArrayList<>();
+ private List chunks = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -84,7 +84,7 @@ public void setId(@Nonnull final String id) {
* @return The same instance of this {@link Document} class
*/
@Nonnull
- public Document metadata(@Nullable final List metadata) {
+ public Document metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -96,7 +96,7 @@ public Document metadata(@Nullable final List metadata
* @return The same instance of type {@link Document}
*/
@Nonnull
- public Document addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
+ public Document addMetadataItem(@Nonnull final RetrievalDocumentKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -110,7 +110,7 @@ public Document addMetadataItem(@Nonnull final DocumentKeyValueListPair metadata
* @return metadata The metadata of this {@link Document} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -119,7 +119,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link Document}
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
@@ -130,7 +130,7 @@ public void setMetadata(@Nullable final List metadata)
* @return The same instance of this {@link Document} class
*/
@Nonnull
- public Document chunks(@Nonnull final List chunks) {
+ public Document chunks(@Nonnull final List chunks) {
this.chunks = chunks;
return this;
}
@@ -142,7 +142,7 @@ public Document chunks(@Nonnull final List chunks) {
* @return The same instance of type {@link Document}
*/
@Nonnull
- public Document addChunksItem(@Nonnull final Chunk chunksItem) {
+ public Document addChunksItem(@Nonnull final RetrievalChunk chunksItem) {
if (this.chunks == null) {
this.chunks = new ArrayList<>();
}
@@ -156,7 +156,7 @@ public Document addChunksItem(@Nonnull final Chunk chunksItem) {
* @return chunks The chunks of this {@link Document} instance.
*/
@Nonnull
- public List getChunks() {
+ public List getChunks() {
return chunks;
}
@@ -165,7 +165,7 @@ public List getChunks() {
*
* @param chunks The chunks of this {@link Document}
*/
- public void setChunks(@Nonnull final List chunks) {
+ public void setChunks(@Nonnull final List chunks) {
this.chunks = chunks;
}
@@ -297,7 +297,7 @@ public interface Builder1 {
* @param chunks The chunks of this {@link Document}
* @return The Document instance.
*/
- Document chunks(@Nonnull final List chunks);
+ Document chunks(@Nonnull final List chunks);
/**
* Set the chunks of this {@link Document} instance.
@@ -305,7 +305,7 @@ public interface Builder1 {
* @param chunks The chunks of this {@link Document}
* @return The Document instance.
*/
- default Document chunks(@Nonnull final Chunk... chunks) {
+ default Document chunks(@Nonnull final RetrievalChunk... chunks) {
return chunks(Arrays.asList(chunks));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java
index 95a55a1c2..e8d8937e6 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java
@@ -36,7 +36,7 @@ public class DocumentInput
private List chunks = new ArrayList<>();
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("id")
private UUID id;
@@ -100,7 +100,7 @@ public void setChunks(@Nonnull final List chunks) {
* @return The same instance of this {@link DocumentInput} class
*/
@Nonnull
- public DocumentInput metadata(@Nonnull final List metadata) {
+ public DocumentInput metadata(@Nonnull final List metadata) {
this.metadata = metadata;
return this;
}
@@ -112,7 +112,7 @@ public DocumentInput metadata(@Nonnull final List meta
* @return The same instance of type {@link DocumentInput}
*/
@Nonnull
- public DocumentInput addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
+ public DocumentInput addMetadataItem(@Nonnull final VectorDocumentKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -126,7 +126,7 @@ public DocumentInput addMetadataItem(@Nonnull final DocumentKeyValueListPair met
* @return metadata The metadata of this {@link DocumentInput} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -135,7 +135,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link DocumentInput}
*/
- public void setMetadata(@Nonnull final List metadata) {
+ public void setMetadata(@Nonnull final List metadata) {
this.metadata = metadata;
}
@@ -309,7 +309,7 @@ public interface Builder1 {
* @param metadata The metadata of this {@link DocumentInput}
* @return The DocumentInput builder.
*/
- Builder2 metadata(@Nonnull final List metadata);
+ Builder2 metadata(@Nonnull final List metadata);
/**
* Set the metadata of this {@link DocumentInput} instance.
@@ -317,7 +317,7 @@ public interface Builder1 {
* @param metadata The metadata of this {@link DocumentInput}
* @return The DocumentInput builder.
*/
- default Builder2 metadata(@Nonnull final DocumentKeyValueListPair... metadata) {
+ default Builder2 metadata(@Nonnull final VectorDocumentKeyValueListPair... metadata) {
return metadata(Arrays.asList(metadata));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java
index 972994555..c651c03c6 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java
@@ -36,10 +36,10 @@ public class DocumentOutput
private UUID id;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("chunks")
- private List chunks = new ArrayList<>();
+ private List chunks = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -85,7 +85,7 @@ public void setId(@Nonnull final UUID id) {
* @return The same instance of this {@link DocumentOutput} class
*/
@Nonnull
- public DocumentOutput metadata(@Nullable final List metadata) {
+ public DocumentOutput metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -97,7 +97,8 @@ public DocumentOutput metadata(@Nullable final List me
* @return The same instance of type {@link DocumentOutput}
*/
@Nonnull
- public DocumentOutput addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
+ public DocumentOutput addMetadataItem(
+ @Nonnull final VectorDocumentKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -111,7 +112,7 @@ public DocumentOutput addMetadataItem(@Nonnull final DocumentKeyValueListPair me
* @return metadata The metadata of this {@link DocumentOutput} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -120,7 +121,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link DocumentOutput}
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
@@ -131,7 +132,7 @@ public void setMetadata(@Nullable final List metadata)
* @return The same instance of this {@link DocumentOutput} class
*/
@Nonnull
- public DocumentOutput chunks(@Nonnull final List chunks) {
+ public DocumentOutput chunks(@Nonnull final List chunks) {
this.chunks = chunks;
return this;
}
@@ -143,7 +144,7 @@ public DocumentOutput chunks(@Nonnull final List chunks) {
* @return The same instance of type {@link DocumentOutput}
*/
@Nonnull
- public DocumentOutput addChunksItem(@Nonnull final Chunk chunksItem) {
+ public DocumentOutput addChunksItem(@Nonnull final VectorChunk chunksItem) {
if (this.chunks == null) {
this.chunks = new ArrayList<>();
}
@@ -157,7 +158,7 @@ public DocumentOutput addChunksItem(@Nonnull final Chunk chunksItem) {
* @return chunks The chunks of this {@link DocumentOutput} instance.
*/
@Nonnull
- public List getChunks() {
+ public List getChunks() {
return chunks;
}
@@ -166,7 +167,7 @@ public List getChunks() {
*
* @param chunks The chunks of this {@link DocumentOutput}
*/
- public void setChunks(@Nonnull final List chunks) {
+ public void setChunks(@Nonnull final List chunks) {
this.chunks = chunks;
}
@@ -298,7 +299,7 @@ public interface Builder1 {
* @param chunks The chunks of this {@link DocumentOutput}
* @return The DocumentOutput instance.
*/
- DocumentOutput chunks(@Nonnull final List chunks);
+ DocumentOutput chunks(@Nonnull final List chunks);
/**
* Set the chunks of this {@link DocumentOutput} instance.
@@ -306,7 +307,7 @@ public interface Builder1 {
* @param chunks The chunks of this {@link DocumentOutput}
* @return The DocumentOutput instance.
*/
- default DocumentOutput chunks(@Nonnull final Chunk... chunks) {
+ default DocumentOutput chunks(@Nonnull final VectorChunk... chunks) {
return chunks(Arrays.asList(chunks));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java
index 6c27f1ec8..6cad13430 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java
@@ -36,7 +36,7 @@ public class DocumentResponse
private List chunks = new ArrayList<>();
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("id")
private UUID id;
@@ -100,7 +100,7 @@ public void setChunks(@Nonnull final List chunks) {
* @return The same instance of this {@link DocumentResponse} class
*/
@Nonnull
- public DocumentResponse metadata(@Nonnull final List metadata) {
+ public DocumentResponse metadata(@Nonnull final List metadata) {
this.metadata = metadata;
return this;
}
@@ -112,7 +112,8 @@ public DocumentResponse metadata(@Nonnull final List m
* @return The same instance of type {@link DocumentResponse}
*/
@Nonnull
- public DocumentResponse addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
+ public DocumentResponse addMetadataItem(
+ @Nonnull final VectorDocumentKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -126,7 +127,7 @@ public DocumentResponse addMetadataItem(@Nonnull final DocumentKeyValueListPair
* @return metadata The metadata of this {@link DocumentResponse} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -135,7 +136,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link DocumentResponse}
*/
- public void setMetadata(@Nonnull final List metadata) {
+ public void setMetadata(@Nonnull final List metadata) {
this.metadata = metadata;
}
@@ -309,7 +310,7 @@ public interface Builder1 {
* @param metadata The metadata of this {@link DocumentResponse}
* @return The DocumentResponse builder.
*/
- Builder2 metadata(@Nonnull final List metadata);
+ Builder2 metadata(@Nonnull final List metadata);
/**
* Set the metadata of this {@link DocumentResponse} instance.
@@ -317,7 +318,7 @@ public interface Builder1 {
* @param metadata The metadata of this {@link DocumentResponse}
* @return The DocumentResponse builder.
*/
- default Builder2 metadata(@Nonnull final DocumentKeyValueListPair... metadata) {
+ default Builder2 metadata(@Nonnull final VectorDocumentKeyValueListPair... metadata) {
return metadata(Arrays.asList(metadata));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java
index cfbb1235c..b332a84c7 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java
@@ -29,6 +29,8 @@ public enum DocumentStatus {
FAILED_TO_BE_RETRIED("FAILED_TO_BE_RETRIED"),
+ TO_BE_SCHEDULED("TO_BE_SCHEDULED"),
+
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private final String value;
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java
index 524d54dbd..32a3f6401 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java
@@ -33,7 +33,7 @@ public class DocumentWithoutChunks
// CHECKSTYLE:ON
{
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("id")
private UUID id;
@@ -51,7 +51,8 @@ protected DocumentWithoutChunks() {}
* @return The same instance of this {@link DocumentWithoutChunks} class
*/
@Nonnull
- public DocumentWithoutChunks metadata(@Nonnull final List metadata) {
+ public DocumentWithoutChunks metadata(
+ @Nonnull final List metadata) {
this.metadata = metadata;
return this;
}
@@ -64,7 +65,7 @@ public DocumentWithoutChunks metadata(@Nonnull final List();
}
@@ -78,7 +79,7 @@ public DocumentWithoutChunks addMetadataItem(
* @return metadata The metadata of this {@link DocumentWithoutChunks} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -87,7 +88,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link DocumentWithoutChunks}
*/
- public void setMetadata(@Nonnull final List metadata) {
+ public void setMetadata(@Nonnull final List metadata) {
this.metadata = metadata;
}
@@ -237,7 +238,7 @@ public interface Builder {
* @param metadata The metadata of this {@link DocumentWithoutChunks}
* @return The DocumentWithoutChunks builder.
*/
- Builder1 metadata(@Nonnull final List metadata);
+ Builder1 metadata(@Nonnull final List metadata);
/**
* Set the metadata of this {@link DocumentWithoutChunks} instance.
@@ -245,7 +246,7 @@ public interface Builder {
* @param metadata The metadata of this {@link DocumentWithoutChunks}
* @return The DocumentWithoutChunks builder.
*/
- default Builder1 metadata(@Nonnull final DocumentKeyValueListPair... metadata) {
+ default Builder1 metadata(@Nonnull final VectorDocumentKeyValueListPair... metadata) {
return metadata(Arrays.asList(metadata));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java
index b79c0c891..aa5494086 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java
@@ -39,7 +39,7 @@ public class DocumentsChunk
private String title;
@JsonProperty("metadata")
- private List metadata = new ArrayList<>();
+ private List metadata = new ArrayList<>();
@JsonProperty("documents")
private List documents = new ArrayList<>();
@@ -119,7 +119,7 @@ public void setTitle(@Nonnull final String title) {
* @return The same instance of this {@link DocumentsChunk} class
*/
@Nonnull
- public DocumentsChunk metadata(@Nullable final List metadata) {
+ public DocumentsChunk metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
@@ -131,7 +131,7 @@ public DocumentsChunk metadata(@Nullable final List metadata)
* @return The same instance of type {@link DocumentsChunk}
*/
@Nonnull
- public DocumentsChunk addMetadataItem(@Nonnull final KeyValueListPair metadataItem) {
+ public DocumentsChunk addMetadataItem(@Nonnull final VectorKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -145,7 +145,7 @@ public DocumentsChunk addMetadataItem(@Nonnull final KeyValueListPair metadataIt
* @return metadata The metadata of this {@link DocumentsChunk} instance.
*/
@Nonnull
- public List getMetadata() {
+ public List getMetadata() {
return metadata;
}
@@ -154,7 +154,7 @@ public List getMetadata() {
*
* @param metadata The metadata of this {@link DocumentsChunk}
*/
- public void setMetadata(@Nullable final List metadata) {
+ public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java
index 5c9a182e1..f8ad868f2 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java
@@ -34,6 +34,27 @@ public class DocumentsStatusResponseResourcesInner
@JsonProperty("status")
private DocumentStatus status;
+ @JsonProperty("viewLocation")
+ private String viewLocation;
+
+ @JsonProperty("downloadLocation")
+ private String downloadLocation;
+
+ @JsonProperty("absoluteUrl")
+ private String absoluteUrl;
+
+ @JsonProperty("title")
+ private String title;
+
+ @JsonProperty("metadataId")
+ private String metadataId;
+
+ @JsonProperty("createdTimestamp")
+ private String createdTimestamp;
+
+ @JsonProperty("lastUpdatedTimestamp")
+ private String lastUpdatedTimestamp;
+
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -104,6 +125,245 @@ public void setStatus(@Nullable final DocumentStatus status) {
this.status = status;
}
+ /**
+ * Set the viewLocation of this {@link DocumentsStatusResponseResourcesInner} instance and return
+ * the same instance.
+ *
+ * @param viewLocation The viewLocation of this {@link DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner viewLocation(@Nullable final String viewLocation) {
+ this.viewLocation = viewLocation;
+ return this;
+ }
+
+ /**
+ * Get viewLocation
+ *
+ * @return viewLocation The viewLocation of this {@link DocumentsStatusResponseResourcesInner}
+ * instance.
+ */
+ @Nullable
+ public String getViewLocation() {
+ return viewLocation;
+ }
+
+ /**
+ * Set the viewLocation of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param viewLocation The viewLocation of this {@link DocumentsStatusResponseResourcesInner}
+ */
+ public void setViewLocation(@Nullable final String viewLocation) {
+ this.viewLocation = viewLocation;
+ }
+
+ /**
+ * Set the downloadLocation of this {@link DocumentsStatusResponseResourcesInner} instance and
+ * return the same instance.
+ *
+ * @param downloadLocation The downloadLocation of this {@link
+ * DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner downloadLocation(
+ @Nullable final String downloadLocation) {
+ this.downloadLocation = downloadLocation;
+ return this;
+ }
+
+ /**
+ * Get downloadLocation
+ *
+ * @return downloadLocation The downloadLocation of this {@link
+ * DocumentsStatusResponseResourcesInner} instance.
+ */
+ @Nullable
+ public String getDownloadLocation() {
+ return downloadLocation;
+ }
+
+ /**
+ * Set the downloadLocation of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param downloadLocation The downloadLocation of this {@link
+ * DocumentsStatusResponseResourcesInner}
+ */
+ public void setDownloadLocation(@Nullable final String downloadLocation) {
+ this.downloadLocation = downloadLocation;
+ }
+
+ /**
+ * Set the absoluteUrl of this {@link DocumentsStatusResponseResourcesInner} instance and return
+ * the same instance.
+ *
+ * @param absoluteUrl The absoluteUrl of this {@link DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner absoluteUrl(@Nullable final String absoluteUrl) {
+ this.absoluteUrl = absoluteUrl;
+ return this;
+ }
+
+ /**
+ * Get absoluteUrl
+ *
+ * @return absoluteUrl The absoluteUrl of this {@link DocumentsStatusResponseResourcesInner}
+ * instance.
+ */
+ @Nullable
+ public String getAbsoluteUrl() {
+ return absoluteUrl;
+ }
+
+ /**
+ * Set the absoluteUrl of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param absoluteUrl The absoluteUrl of this {@link DocumentsStatusResponseResourcesInner}
+ */
+ public void setAbsoluteUrl(@Nullable final String absoluteUrl) {
+ this.absoluteUrl = absoluteUrl;
+ }
+
+ /**
+ * Set the title of this {@link DocumentsStatusResponseResourcesInner} instance and return the
+ * same instance.
+ *
+ * @param title The title of this {@link DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner title(@Nullable final String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * Get title
+ *
+ * @return title The title of this {@link DocumentsStatusResponseResourcesInner} instance.
+ */
+ @Nullable
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * Set the title of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param title The title of this {@link DocumentsStatusResponseResourcesInner}
+ */
+ public void setTitle(@Nullable final String title) {
+ this.title = title;
+ }
+
+ /**
+ * Set the metadataId of this {@link DocumentsStatusResponseResourcesInner} instance and return
+ * the same instance.
+ *
+ * @param metadataId The metadataId of this {@link DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner metadataId(@Nullable final String metadataId) {
+ this.metadataId = metadataId;
+ return this;
+ }
+
+ /**
+ * Get metadataId
+ *
+ * @return metadataId The metadataId of this {@link DocumentsStatusResponseResourcesInner}
+ * instance.
+ */
+ @Nullable
+ public String getMetadataId() {
+ return metadataId;
+ }
+
+ /**
+ * Set the metadataId of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param metadataId The metadataId of this {@link DocumentsStatusResponseResourcesInner}
+ */
+ public void setMetadataId(@Nullable final String metadataId) {
+ this.metadataId = metadataId;
+ }
+
+ /**
+ * Set the createdTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance and
+ * return the same instance.
+ *
+ * @param createdTimestamp The createdTimestamp of this {@link
+ * DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner createdTimestamp(
+ @Nullable final String createdTimestamp) {
+ this.createdTimestamp = createdTimestamp;
+ return this;
+ }
+
+ /**
+ * Get createdTimestamp
+ *
+ * @return createdTimestamp The createdTimestamp of this {@link
+ * DocumentsStatusResponseResourcesInner} instance.
+ */
+ @Nonnull
+ public String getCreatedTimestamp() {
+ return createdTimestamp;
+ }
+
+ /**
+ * Set the createdTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param createdTimestamp The createdTimestamp of this {@link
+ * DocumentsStatusResponseResourcesInner}
+ */
+ public void setCreatedTimestamp(@Nullable final String createdTimestamp) {
+ this.createdTimestamp = createdTimestamp;
+ }
+
+ /**
+ * Set the lastUpdatedTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance and
+ * return the same instance.
+ *
+ * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link
+ * DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner lastUpdatedTimestamp(
+ @Nullable final String lastUpdatedTimestamp) {
+ this.lastUpdatedTimestamp = lastUpdatedTimestamp;
+ return this;
+ }
+
+ /**
+ * Get lastUpdatedTimestamp
+ *
+ * @return lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link
+ * DocumentsStatusResponseResourcesInner} instance.
+ */
+ @Nonnull
+ public String getLastUpdatedTimestamp() {
+ return lastUpdatedTimestamp;
+ }
+
+ /**
+ * Set the lastUpdatedTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link
+ * DocumentsStatusResponseResourcesInner}
+ */
+ public void setLastUpdatedTimestamp(@Nullable final String lastUpdatedTimestamp) {
+ this.lastUpdatedTimestamp = lastUpdatedTimestamp;
+ }
+
/**
* Get the names of the unrecognizable properties of the {@link
* DocumentsStatusResponseResourcesInner}.
@@ -147,6 +407,14 @@ public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (id != null) declaredFields.put("id", id);
if (status != null) declaredFields.put("status", status);
+ if (viewLocation != null) declaredFields.put("viewLocation", viewLocation);
+ if (downloadLocation != null) declaredFields.put("downloadLocation", downloadLocation);
+ if (absoluteUrl != null) declaredFields.put("absoluteUrl", absoluteUrl);
+ if (title != null) declaredFields.put("title", title);
+ if (metadataId != null) declaredFields.put("metadataId", metadataId);
+ if (createdTimestamp != null) declaredFields.put("createdTimestamp", createdTimestamp);
+ if (lastUpdatedTimestamp != null)
+ declaredFields.put("lastUpdatedTimestamp", lastUpdatedTimestamp);
return declaredFields;
}
@@ -176,12 +444,32 @@ public boolean equals(@Nullable final java.lang.Object o) {
return Objects.equals(
this.cloudSdkCustomFields, documentsStatusResponseResourcesInner.cloudSdkCustomFields)
&& Objects.equals(this.id, documentsStatusResponseResourcesInner.id)
- && Objects.equals(this.status, documentsStatusResponseResourcesInner.status);
+ && Objects.equals(this.status, documentsStatusResponseResourcesInner.status)
+ && Objects.equals(this.viewLocation, documentsStatusResponseResourcesInner.viewLocation)
+ && Objects.equals(
+ this.downloadLocation, documentsStatusResponseResourcesInner.downloadLocation)
+ && Objects.equals(this.absoluteUrl, documentsStatusResponseResourcesInner.absoluteUrl)
+ && Objects.equals(this.title, documentsStatusResponseResourcesInner.title)
+ && Objects.equals(this.metadataId, documentsStatusResponseResourcesInner.metadataId)
+ && Objects.equals(
+ this.createdTimestamp, documentsStatusResponseResourcesInner.createdTimestamp)
+ && Objects.equals(
+ this.lastUpdatedTimestamp, documentsStatusResponseResourcesInner.lastUpdatedTimestamp);
}
@Override
public int hashCode() {
- return Objects.hash(id, status, cloudSdkCustomFields);
+ return Objects.hash(
+ id,
+ status,
+ viewLocation,
+ downloadLocation,
+ absoluteUrl,
+ title,
+ metadataId,
+ createdTimestamp,
+ lastUpdatedTimestamp,
+ cloudSdkCustomFields);
}
@Override
@@ -191,6 +479,15 @@ public String toString() {
sb.append("class DocumentsStatusResponseResourcesInner {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" viewLocation: ").append(toIndentedString(viewLocation)).append("\n");
+ sb.append(" downloadLocation: ").append(toIndentedString(downloadLocation)).append("\n");
+ sb.append(" absoluteUrl: ").append(toIndentedString(absoluteUrl)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" metadataId: ").append(toIndentedString(metadataId)).append("\n");
+ sb.append(" createdTimestamp: ").append(toIndentedString(createdTimestamp)).append("\n");
+ sb.append(" lastUpdatedTimestamp: ")
+ .append(toIndentedString(lastUpdatedTimestamp))
+ .append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java
index 8eb624ce7..d4ff3f099 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java
@@ -19,12 +19,18 @@
@JsonSubTypes({
@JsonSubTypes.Type(value = MSSharePointPipelineGetResponse.class, name = "MSSharePoint"),
@JsonSubTypes.Type(value = S3PipelineGetResponse.class, name = "S3"),
+ @JsonSubTypes.Type(value = SDMPipelineGetResponse.class, name = "SDM"),
@JsonSubTypes.Type(value = SFTPPipelineGetResponse.class, name = "SFTP"),
+ @JsonSubTypes.Type(value = WorkZonePipelineGetResponse.class, name = "WorkZone"),
@JsonSubTypes.Type(
value = MSSharePointPipelineGetResponse.class,
name = "MSSharePointPipelineGetResponse"),
@JsonSubTypes.Type(value = S3PipelineGetResponse.class, name = "S3PipelineGetResponse"),
+ @JsonSubTypes.Type(value = SDMPipelineGetResponse.class, name = "SDMPipelineGetResponse"),
@JsonSubTypes.Type(value = SFTPPipelineGetResponse.class, name = "SFTPPipelineGetResponse"),
+ @JsonSubTypes.Type(
+ value = WorkZonePipelineGetResponse.class,
+ name = "WorkZonePipelineGetResponse"),
})
public interface GetPipeline {
Object getType();
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java
index fb54a8ccf..bbd250c3b 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java
@@ -31,6 +31,12 @@ public class GetPipelineStatus
@JsonProperty("lastStarted")
private String lastStarted;
+ @JsonProperty("createdAt")
+ private String createdAt;
+
+ @JsonProperty("lastCompletedAt")
+ private String lastCompletedAt;
+
@JsonProperty("status")
private PipelineExecutionStatus status;
@@ -71,6 +77,69 @@ public void setLastStarted(@Nullable final String lastStarted) {
this.lastStarted = lastStarted;
}
+ /**
+ * Set the createdAt of this {@link GetPipelineStatus} instance and return the same instance.
+ *
+ * @param createdAt The createdAt of this {@link GetPipelineStatus}
+ * @return The same instance of this {@link GetPipelineStatus} class
+ */
+ @Nonnull
+ public GetPipelineStatus createdAt(@Nullable final String createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get createdAt
+ *
+ * @return createdAt The createdAt of this {@link GetPipelineStatus} instance.
+ */
+ @Nullable
+ public String getCreatedAt() {
+ return createdAt;
+ }
+
+ /**
+ * Set the createdAt of this {@link GetPipelineStatus} instance.
+ *
+ * @param createdAt The createdAt of this {@link GetPipelineStatus}
+ */
+ public void setCreatedAt(@Nullable final String createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ /**
+ * Set the lastCompletedAt of this {@link GetPipelineStatus} instance and return the same
+ * instance.
+ *
+ * @param lastCompletedAt The lastCompletedAt of this {@link GetPipelineStatus}
+ * @return The same instance of this {@link GetPipelineStatus} class
+ */
+ @Nonnull
+ public GetPipelineStatus lastCompletedAt(@Nullable final String lastCompletedAt) {
+ this.lastCompletedAt = lastCompletedAt;
+ return this;
+ }
+
+ /**
+ * Get lastCompletedAt
+ *
+ * @return lastCompletedAt The lastCompletedAt of this {@link GetPipelineStatus} instance.
+ */
+ @Nullable
+ public String getLastCompletedAt() {
+ return lastCompletedAt;
+ }
+
+ /**
+ * Set the lastCompletedAt of this {@link GetPipelineStatus} instance.
+ *
+ * @param lastCompletedAt The lastCompletedAt of this {@link GetPipelineStatus}
+ */
+ public void setLastCompletedAt(@Nullable final String lastCompletedAt) {
+ this.lastCompletedAt = lastCompletedAt;
+ }
+
/**
* Set the status of this {@link GetPipelineStatus} instance and return the same instance.
*
@@ -141,6 +210,8 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (lastStarted != null) declaredFields.put("lastStarted", lastStarted);
+ if (createdAt != null) declaredFields.put("createdAt", createdAt);
+ if (lastCompletedAt != null) declaredFields.put("lastCompletedAt", lastCompletedAt);
if (status != null) declaredFields.put("status", status);
return declaredFields;
}
@@ -168,12 +239,14 @@ public boolean equals(@Nullable final java.lang.Object o) {
final GetPipelineStatus getPipelineStatus = (GetPipelineStatus) o;
return Objects.equals(this.cloudSdkCustomFields, getPipelineStatus.cloudSdkCustomFields)
&& Objects.equals(this.lastStarted, getPipelineStatus.lastStarted)
+ && Objects.equals(this.createdAt, getPipelineStatus.createdAt)
+ && Objects.equals(this.lastCompletedAt, getPipelineStatus.lastCompletedAt)
&& Objects.equals(this.status, getPipelineStatus.status);
}
@Override
public int hashCode() {
- return Objects.hash(lastStarted, status, cloudSdkCustomFields);
+ return Objects.hash(lastStarted, createdAt, lastCompletedAt, status, cloudSdkCustomFields);
}
@Override
@@ -182,6 +255,8 @@ public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class GetPipelineStatus {\n");
sb.append(" lastStarted: ").append(toIndentedString(lastStarted)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" lastCompletedAt: ").append(toIndentedString(lastCompletedAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ManualPipelineTrigger.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ManualPipelineTrigger.java
new file mode 100644
index 000000000..696c3e563
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ManualPipelineTrigger.java
@@ -0,0 +1,171 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** ManualPipelineTrigger */
+// CHECKSTYLE:OFF
+public class ManualPipelineTrigger
+// CHECKSTYLE:ON
+{
+ @JsonProperty("pipelineId")
+ private String pipelineId;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for ManualPipelineTrigger. */
+ protected ManualPipelineTrigger() {}
+
+ /**
+ * Set the pipelineId of this {@link ManualPipelineTrigger} instance and return the same instance.
+ *
+ * @param pipelineId The pipelineId of this {@link ManualPipelineTrigger}
+ * @return The same instance of this {@link ManualPipelineTrigger} class
+ */
+ @Nonnull
+ public ManualPipelineTrigger pipelineId(@Nullable final String pipelineId) {
+ this.pipelineId = pipelineId;
+ return this;
+ }
+
+ /**
+ * Get pipelineId
+ *
+ * @return pipelineId The pipelineId of this {@link ManualPipelineTrigger} instance.
+ */
+ @Nonnull
+ public String getPipelineId() {
+ return pipelineId;
+ }
+
+ /**
+ * Set the pipelineId of this {@link ManualPipelineTrigger} instance.
+ *
+ * @param pipelineId The pipelineId of this {@link ManualPipelineTrigger}
+ */
+ public void setPipelineId(@Nullable final String pipelineId) {
+ this.pipelineId = pipelineId;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link ManualPipelineTrigger}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link ManualPipelineTrigger} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "ManualPipelineTrigger has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link ManualPipelineTrigger} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (pipelineId != null) declaredFields.put("pipelineId", pipelineId);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link ManualPipelineTrigger} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final ManualPipelineTrigger manualPipelineTrigger = (ManualPipelineTrigger) o;
+ return Objects.equals(this.cloudSdkCustomFields, manualPipelineTrigger.cloudSdkCustomFields)
+ && Objects.equals(this.pipelineId, manualPipelineTrigger.pipelineId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(pipelineId, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class ManualPipelineTrigger {\n");
+ sb.append(" pipelineId: ").append(toIndentedString(pipelineId)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /** Create a new {@link ManualPipelineTrigger} instance. No arguments are required. */
+ public static ManualPipelineTrigger create() {
+ return new ManualPipelineTrigger();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java
index 61fb9653c..2456089fa 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java
@@ -31,18 +31,30 @@ public class PipelineDocumentResponse
@JsonProperty("id")
private String id;
+ @JsonProperty("status")
+ private DocumentStatus status;
+
@JsonProperty("viewLocation")
private String viewLocation;
@JsonProperty("downloadLocation")
private String downloadLocation;
+ @JsonProperty("absoluteUrl")
+ private String absoluteUrl;
+
+ @JsonProperty("title")
+ private String title;
+
+ @JsonProperty("metadataId")
+ private String metadataId;
+
+ @JsonProperty("createdTimestamp")
+ private String createdTimestamp;
+
@JsonProperty("lastUpdatedTimestamp")
private String lastUpdatedTimestamp;
- @JsonProperty("status")
- private DocumentStatus status;
-
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -80,6 +92,37 @@ public void setId(@Nullable final String id) {
this.id = id;
}
+ /**
+ * Set the status of this {@link PipelineDocumentResponse} instance and return the same instance.
+ *
+ * @param status The status of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse status(@Nullable final DocumentStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status The status of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nonnull
+ public DocumentStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * Set the status of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param status The status of this {@link PipelineDocumentResponse}
+ */
+ public void setStatus(@Nullable final DocumentStatus status) {
+ this.status = status;
+ }
+
/**
* Set the viewLocation of this {@link PipelineDocumentResponse} instance and return the same
* instance.
@@ -146,68 +189,165 @@ public void setDownloadLocation(@Nullable final String downloadLocation) {
}
/**
- * Set the lastUpdatedTimestamp of this {@link PipelineDocumentResponse} instance and return the
- * same instance.
+ * Set the absoluteUrl of this {@link PipelineDocumentResponse} instance and return the same
+ * instance.
*
- * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ * @param absoluteUrl The absoluteUrl of this {@link PipelineDocumentResponse}
* @return The same instance of this {@link PipelineDocumentResponse} class
*/
@Nonnull
- public PipelineDocumentResponse lastUpdatedTimestamp(
- @Nullable final String lastUpdatedTimestamp) {
- this.lastUpdatedTimestamp = lastUpdatedTimestamp;
+ public PipelineDocumentResponse absoluteUrl(@Nullable final String absoluteUrl) {
+ this.absoluteUrl = absoluteUrl;
return this;
}
/**
- * Get lastUpdatedTimestamp
+ * Get absoluteUrl
*
- * @return lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ * @return absoluteUrl The absoluteUrl of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nullable
+ public String getAbsoluteUrl() {
+ return absoluteUrl;
+ }
+
+ /**
+ * Set the absoluteUrl of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param absoluteUrl The absoluteUrl of this {@link PipelineDocumentResponse}
+ */
+ public void setAbsoluteUrl(@Nullable final String absoluteUrl) {
+ this.absoluteUrl = absoluteUrl;
+ }
+
+ /**
+ * Set the title of this {@link PipelineDocumentResponse} instance and return the same instance.
+ *
+ * @param title The title of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse title(@Nullable final String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * Get title
+ *
+ * @return title The title of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nullable
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * Set the title of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param title The title of this {@link PipelineDocumentResponse}
+ */
+ public void setTitle(@Nullable final String title) {
+ this.title = title;
+ }
+
+ /**
+ * Set the metadataId of this {@link PipelineDocumentResponse} instance and return the same
+ * instance.
+ *
+ * @param metadataId The metadataId of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse metadataId(@Nullable final String metadataId) {
+ this.metadataId = metadataId;
+ return this;
+ }
+
+ /**
+ * Get metadataId
+ *
+ * @return metadataId The metadataId of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nullable
+ public String getMetadataId() {
+ return metadataId;
+ }
+
+ /**
+ * Set the metadataId of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param metadataId The metadataId of this {@link PipelineDocumentResponse}
+ */
+ public void setMetadataId(@Nullable final String metadataId) {
+ this.metadataId = metadataId;
+ }
+
+ /**
+ * Set the createdTimestamp of this {@link PipelineDocumentResponse} instance and return the same
+ * instance.
+ *
+ * @param createdTimestamp The createdTimestamp of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse createdTimestamp(@Nullable final String createdTimestamp) {
+ this.createdTimestamp = createdTimestamp;
+ return this;
+ }
+
+ /**
+ * Get createdTimestamp
+ *
+ * @return createdTimestamp The createdTimestamp of this {@link PipelineDocumentResponse}
* instance.
*/
@Nonnull
- public String getLastUpdatedTimestamp() {
- return lastUpdatedTimestamp;
+ public String getCreatedTimestamp() {
+ return createdTimestamp;
}
/**
- * Set the lastUpdatedTimestamp of this {@link PipelineDocumentResponse} instance.
+ * Set the createdTimestamp of this {@link PipelineDocumentResponse} instance.
*
- * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ * @param createdTimestamp The createdTimestamp of this {@link PipelineDocumentResponse}
*/
- public void setLastUpdatedTimestamp(@Nullable final String lastUpdatedTimestamp) {
- this.lastUpdatedTimestamp = lastUpdatedTimestamp;
+ public void setCreatedTimestamp(@Nullable final String createdTimestamp) {
+ this.createdTimestamp = createdTimestamp;
}
/**
- * Set the status of this {@link PipelineDocumentResponse} instance and return the same instance.
+ * Set the lastUpdatedTimestamp of this {@link PipelineDocumentResponse} instance and return the
+ * same instance.
*
- * @param status The status of this {@link PipelineDocumentResponse}
+ * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
* @return The same instance of this {@link PipelineDocumentResponse} class
*/
@Nonnull
- public PipelineDocumentResponse status(@Nullable final DocumentStatus status) {
- this.status = status;
+ public PipelineDocumentResponse lastUpdatedTimestamp(
+ @Nullable final String lastUpdatedTimestamp) {
+ this.lastUpdatedTimestamp = lastUpdatedTimestamp;
return this;
}
/**
- * Get status
+ * Get lastUpdatedTimestamp
*
- * @return status The status of this {@link PipelineDocumentResponse} instance.
+ * @return lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ * instance.
*/
@Nonnull
- public DocumentStatus getStatus() {
- return status;
+ public String getLastUpdatedTimestamp() {
+ return lastUpdatedTimestamp;
}
/**
- * Set the status of this {@link PipelineDocumentResponse} instance.
+ * Set the lastUpdatedTimestamp of this {@link PipelineDocumentResponse} instance.
*
- * @param status The status of this {@link PipelineDocumentResponse}
+ * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
*/
- public void setStatus(@Nullable final DocumentStatus status) {
- this.status = status;
+ public void setLastUpdatedTimestamp(@Nullable final String lastUpdatedTimestamp) {
+ this.lastUpdatedTimestamp = lastUpdatedTimestamp;
}
/**
@@ -250,11 +390,15 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (id != null) declaredFields.put("id", id);
+ if (status != null) declaredFields.put("status", status);
if (viewLocation != null) declaredFields.put("viewLocation", viewLocation);
if (downloadLocation != null) declaredFields.put("downloadLocation", downloadLocation);
+ if (absoluteUrl != null) declaredFields.put("absoluteUrl", absoluteUrl);
+ if (title != null) declaredFields.put("title", title);
+ if (metadataId != null) declaredFields.put("metadataId", metadataId);
+ if (createdTimestamp != null) declaredFields.put("createdTimestamp", createdTimestamp);
if (lastUpdatedTimestamp != null)
declaredFields.put("lastUpdatedTimestamp", lastUpdatedTimestamp);
- if (status != null) declaredFields.put("status", status);
return declaredFields;
}
@@ -281,16 +425,29 @@ public boolean equals(@Nullable final java.lang.Object o) {
final PipelineDocumentResponse pipelineDocumentResponse = (PipelineDocumentResponse) o;
return Objects.equals(this.cloudSdkCustomFields, pipelineDocumentResponse.cloudSdkCustomFields)
&& Objects.equals(this.id, pipelineDocumentResponse.id)
+ && Objects.equals(this.status, pipelineDocumentResponse.status)
&& Objects.equals(this.viewLocation, pipelineDocumentResponse.viewLocation)
&& Objects.equals(this.downloadLocation, pipelineDocumentResponse.downloadLocation)
- && Objects.equals(this.lastUpdatedTimestamp, pipelineDocumentResponse.lastUpdatedTimestamp)
- && Objects.equals(this.status, pipelineDocumentResponse.status);
+ && Objects.equals(this.absoluteUrl, pipelineDocumentResponse.absoluteUrl)
+ && Objects.equals(this.title, pipelineDocumentResponse.title)
+ && Objects.equals(this.metadataId, pipelineDocumentResponse.metadataId)
+ && Objects.equals(this.createdTimestamp, pipelineDocumentResponse.createdTimestamp)
+ && Objects.equals(this.lastUpdatedTimestamp, pipelineDocumentResponse.lastUpdatedTimestamp);
}
@Override
public int hashCode() {
return Objects.hash(
- id, viewLocation, downloadLocation, lastUpdatedTimestamp, status, cloudSdkCustomFields);
+ id,
+ status,
+ viewLocation,
+ downloadLocation,
+ absoluteUrl,
+ title,
+ metadataId,
+ createdTimestamp,
+ lastUpdatedTimestamp,
+ cloudSdkCustomFields);
}
@Override
@@ -299,12 +456,16 @@ public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class PipelineDocumentResponse {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" viewLocation: ").append(toIndentedString(viewLocation)).append("\n");
sb.append(" downloadLocation: ").append(toIndentedString(downloadLocation)).append("\n");
+ sb.append(" absoluteUrl: ").append(toIndentedString(absoluteUrl)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" metadataId: ").append(toIndentedString(metadataId)).append("\n");
+ sb.append(" createdTimestamp: ").append(toIndentedString(createdTimestamp)).append("\n");
sb.append(" lastUpdatedTimestamp: ")
.append(toIndentedString(lastUpdatedTimestamp))
.append("\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineExecutionData.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineExecutionData.java
index 195ea2f82..38f8724d6 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineExecutionData.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineExecutionData.java
@@ -34,6 +34,12 @@ public class PipelineExecutionData
@JsonProperty("status")
private PipelineExecutionStatus status;
+ @JsonProperty("createdAt")
+ private String createdAt;
+
+ @JsonProperty("modifiedAt")
+ private String modifiedAt;
+
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -102,6 +108,68 @@ public void setStatus(@Nullable final PipelineExecutionStatus status) {
this.status = status;
}
+ /**
+ * Set the createdAt of this {@link PipelineExecutionData} instance and return the same instance.
+ *
+ * @param createdAt The createdAt of this {@link PipelineExecutionData}
+ * @return The same instance of this {@link PipelineExecutionData} class
+ */
+ @Nonnull
+ public PipelineExecutionData createdAt(@Nullable final String createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get createdAt
+ *
+ * @return createdAt The createdAt of this {@link PipelineExecutionData} instance.
+ */
+ @Nullable
+ public String getCreatedAt() {
+ return createdAt;
+ }
+
+ /**
+ * Set the createdAt of this {@link PipelineExecutionData} instance.
+ *
+ * @param createdAt The createdAt of this {@link PipelineExecutionData}
+ */
+ public void setCreatedAt(@Nullable final String createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ /**
+ * Set the modifiedAt of this {@link PipelineExecutionData} instance and return the same instance.
+ *
+ * @param modifiedAt The modifiedAt of this {@link PipelineExecutionData}
+ * @return The same instance of this {@link PipelineExecutionData} class
+ */
+ @Nonnull
+ public PipelineExecutionData modifiedAt(@Nullable final String modifiedAt) {
+ this.modifiedAt = modifiedAt;
+ return this;
+ }
+
+ /**
+ * Get modifiedAt
+ *
+ * @return modifiedAt The modifiedAt of this {@link PipelineExecutionData} instance.
+ */
+ @Nullable
+ public String getModifiedAt() {
+ return modifiedAt;
+ }
+
+ /**
+ * Set the modifiedAt of this {@link PipelineExecutionData} instance.
+ *
+ * @param modifiedAt The modifiedAt of this {@link PipelineExecutionData}
+ */
+ public void setModifiedAt(@Nullable final String modifiedAt) {
+ this.modifiedAt = modifiedAt;
+ }
+
/**
* Get the names of the unrecognizable properties of the {@link PipelineExecutionData}.
*
@@ -143,6 +211,8 @@ public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (id != null) declaredFields.put("id", id);
if (status != null) declaredFields.put("status", status);
+ if (createdAt != null) declaredFields.put("createdAt", createdAt);
+ if (modifiedAt != null) declaredFields.put("modifiedAt", modifiedAt);
return declaredFields;
}
@@ -169,12 +239,14 @@ public boolean equals(@Nullable final java.lang.Object o) {
final PipelineExecutionData pipelineExecutionData = (PipelineExecutionData) o;
return Objects.equals(this.cloudSdkCustomFields, pipelineExecutionData.cloudSdkCustomFields)
&& Objects.equals(this.id, pipelineExecutionData.id)
- && Objects.equals(this.status, pipelineExecutionData.status);
+ && Objects.equals(this.status, pipelineExecutionData.status)
+ && Objects.equals(this.createdAt, pipelineExecutionData.createdAt)
+ && Objects.equals(this.modifiedAt, pipelineExecutionData.modifiedAt);
}
@Override
public int hashCode() {
- return Objects.hash(id, status, cloudSdkCustomFields);
+ return Objects.hash(id, status, createdAt, modifiedAt, cloudSdkCustomFields);
}
@Override
@@ -184,6 +256,8 @@ public String toString() {
sb.append("class PipelineExecutionData {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner1.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner1.java
index af2b069df..530a118f4 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner1.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner1.java
@@ -16,6 +16,7 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -34,10 +35,7 @@ public class ResultsInner1
private String filterId;
@JsonProperty("results")
- private List results = new ArrayList<>();
-
- @JsonProperty("message")
- private String message;
+ private List results = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -79,11 +77,11 @@ public void setFilterId(@Nonnull final String filterId) {
/**
* Set the results of this {@link ResultsInner1} instance and return the same instance.
*
- * @param results List of returned results.
+ * @param results The results of this {@link ResultsInner1}
* @return The same instance of this {@link ResultsInner1} class
*/
@Nonnull
- public ResultsInner1 results(@Nullable final List results) {
+ public ResultsInner1 results(@Nonnull final List results) {
this.results = results;
return this;
}
@@ -95,8 +93,7 @@ public ResultsInner1 results(@Nullable final List();
}
@@ -105,55 +102,24 @@ public ResultsInner1 addResultsItem(
}
/**
- * List of returned results.
+ * Get results
*
* @return results The results of this {@link ResultsInner1} instance.
*/
@Nonnull
- public List getResults() {
+ public List getResults() {
return results;
}
/**
* Set the results of this {@link ResultsInner1} instance.
*
- * @param results List of returned results.
+ * @param results The results of this {@link ResultsInner1}
*/
- public void setResults(@Nullable final List results) {
+ public void setResults(@Nonnull final List results) {
this.results = results;
}
- /**
- * Set the message of this {@link ResultsInner1} instance and return the same instance.
- *
- * @param message The message of this {@link ResultsInner1}
- * @return The same instance of this {@link ResultsInner1} class
- */
- @Nonnull
- public ResultsInner1 message(@Nonnull final String message) {
- this.message = message;
- return this;
- }
-
- /**
- * Get message
- *
- * @return message The message of this {@link ResultsInner1} instance.
- */
- @Nonnull
- public String getMessage() {
- return message;
- }
-
- /**
- * Set the message of this {@link ResultsInner1} instance.
- *
- * @param message The message of this {@link ResultsInner1}
- */
- public void setMessage(@Nonnull final String message) {
- this.message = message;
- }
-
/**
* Get the names of the unrecognizable properties of the {@link ResultsInner1}.
*
@@ -194,7 +160,6 @@ public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (filterId != null) declaredFields.put("filterId", filterId);
if (results != null) declaredFields.put("results", results);
- if (message != null) declaredFields.put("message", message);
return declaredFields;
}
@@ -221,13 +186,12 @@ public boolean equals(@Nullable final java.lang.Object o) {
final ResultsInner1 resultsInner1 = (ResultsInner1) o;
return Objects.equals(this.cloudSdkCustomFields, resultsInner1.cloudSdkCustomFields)
&& Objects.equals(this.filterId, resultsInner1.filterId)
- && Objects.equals(this.results, resultsInner1.results)
- && Objects.equals(this.message, resultsInner1.message);
+ && Objects.equals(this.results, resultsInner1.results);
}
@Override
public int hashCode() {
- return Objects.hash(filterId, results, message, cloudSdkCustomFields);
+ return Objects.hash(filterId, results, cloudSdkCustomFields);
}
@Override
@@ -237,7 +201,6 @@ public String toString() {
sb.append("class ResultsInner1 {\n");
sb.append(" filterId: ").append(toIndentedString(filterId)).append("\n");
sb.append(" results: ").append(toIndentedString(results)).append("\n");
- sb.append(" message: ").append(toIndentedString(message)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
@@ -260,7 +223,7 @@ private String toIndentedString(final java.lang.Object o) {
* with all required arguments.
*/
public static Builder create() {
- return (filterId) -> (message) -> new ResultsInner1().filterId(filterId).message(message);
+ return (filterId) -> (results) -> new ResultsInner1().filterId(filterId).results(results);
}
/** Builder helper class. */
@@ -277,11 +240,21 @@ public interface Builder {
/** Builder helper class. */
public interface Builder1 {
/**
- * Set the message of this {@link ResultsInner1} instance.
+ * Set the results of this {@link ResultsInner1} instance.
*
- * @param message The message of this {@link ResultsInner1}
+ * @param results The results of this {@link ResultsInner1}
* @return The ResultsInner1 instance.
*/
- ResultsInner1 message(@Nonnull final String message);
+ ResultsInner1 results(@Nonnull final List results);
+
+ /**
+ * Set the results of this {@link ResultsInner1} instance.
+ *
+ * @param results The results of this {@link ResultsInner1}
+ * @return The ResultsInner1 instance.
+ */
+ default ResultsInner1 results(@Nonnull final DocumentsChunk... results) {
+ return results(Arrays.asList(results));
+ }
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner2.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner2.java
index 10e655a61..57d91deec 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner2.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner2.java
@@ -34,10 +34,10 @@ public class ResultsInner2
private String filterId;
@JsonProperty("results")
- private List results = new ArrayList<>();
+ private List results = new ArrayList<>();
@JsonProperty("error")
- private PerFilterSearchResultError error;
+ private RetrievalPerFilterSearchResultError error;
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -83,7 +83,7 @@ public void setFilterId(@Nonnull final String filterId) {
* @return The same instance of this {@link ResultsInner2} class
*/
@Nonnull
- public ResultsInner2 results(@Nullable final List results) {
+ public ResultsInner2 results(@Nullable final List results) {
this.results = results;
return this;
}
@@ -95,7 +95,8 @@ public ResultsInner2 results(@Nullable final List re
* @return The same instance of type {@link ResultsInner2}
*/
@Nonnull
- public ResultsInner2 addResultsItem(@Nonnull final DataRepositorySearchResult resultsItem) {
+ public ResultsInner2 addResultsItem(
+ @Nonnull final RetrievalDataRepositorySearchResult resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
@@ -109,7 +110,7 @@ public ResultsInner2 addResultsItem(@Nonnull final DataRepositorySearchResult re
* @return results The results of this {@link ResultsInner2} instance.
*/
@Nonnull
- public List getResults() {
+ public List getResults() {
return results;
}
@@ -118,7 +119,7 @@ public List getResults() {
*
* @param results List of returned results.
*/
- public void setResults(@Nullable final List results) {
+ public void setResults(@Nullable final List results) {
this.results = results;
}
@@ -129,7 +130,7 @@ public void setResults(@Nullable final List results)
* @return The same instance of this {@link ResultsInner2} class
*/
@Nonnull
- public ResultsInner2 error(@Nullable final PerFilterSearchResultError error) {
+ public ResultsInner2 error(@Nullable final RetrievalPerFilterSearchResultError error) {
this.error = error;
return this;
}
@@ -140,7 +141,7 @@ public ResultsInner2 error(@Nullable final PerFilterSearchResultError error) {
* @return error The error of this {@link ResultsInner2} instance.
*/
@Nonnull
- public PerFilterSearchResultError getError() {
+ public RetrievalPerFilterSearchResultError getError() {
return error;
}
@@ -149,7 +150,7 @@ public PerFilterSearchResultError getError() {
*
* @param error The error of this {@link ResultsInner2}
*/
- public void setError(@Nullable final PerFilterSearchResultError error) {
+ public void setError(@Nullable final RetrievalPerFilterSearchResultError error) {
this.error = error;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner3.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner3.java
new file mode 100644
index 000000000..d6c0cf558
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ResultsInner3.java
@@ -0,0 +1,275 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** ResultsInner3 */
+// CHECKSTYLE:OFF
+public class ResultsInner3
+// CHECKSTYLE:ON
+{
+ @JsonProperty("filterId")
+ private String filterId;
+
+ @JsonProperty("results")
+ private List results = new ArrayList<>();
+
+ @JsonProperty("error")
+ private PerFilterSearchResultError error;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for ResultsInner3. */
+ protected ResultsInner3() {}
+
+ /**
+ * Set the filterId of this {@link ResultsInner3} instance and return the same instance.
+ *
+ * @param filterId The filterId of this {@link ResultsInner3}
+ * @return The same instance of this {@link ResultsInner3} class
+ */
+ @Nonnull
+ public ResultsInner3 filterId(@Nonnull final String filterId) {
+ this.filterId = filterId;
+ return this;
+ }
+
+ /**
+ * Get filterId
+ *
+ * @return filterId The filterId of this {@link ResultsInner3} instance.
+ */
+ @Nonnull
+ public String getFilterId() {
+ return filterId;
+ }
+
+ /**
+ * Set the filterId of this {@link ResultsInner3} instance.
+ *
+ * @param filterId The filterId of this {@link ResultsInner3}
+ */
+ public void setFilterId(@Nonnull final String filterId) {
+ this.filterId = filterId;
+ }
+
+ /**
+ * Set the results of this {@link ResultsInner3} instance and return the same instance.
+ *
+ * @param results List of returned results.
+ * @return The same instance of this {@link ResultsInner3} class
+ */
+ @Nonnull
+ public ResultsInner3 results(@Nullable final List results) {
+ this.results = results;
+ return this;
+ }
+
+ /**
+ * Add one results instance to this {@link ResultsInner3}.
+ *
+ * @param resultsItem The results that should be added
+ * @return The same instance of type {@link ResultsInner3}
+ */
+ @Nonnull
+ public ResultsInner3 addResultsItem(@Nonnull final DataRepositorySearchResult resultsItem) {
+ if (this.results == null) {
+ this.results = new ArrayList<>();
+ }
+ this.results.add(resultsItem);
+ return this;
+ }
+
+ /**
+ * List of returned results.
+ *
+ * @return results The results of this {@link ResultsInner3} instance.
+ */
+ @Nonnull
+ public List getResults() {
+ return results;
+ }
+
+ /**
+ * Set the results of this {@link ResultsInner3} instance.
+ *
+ * @param results List of returned results.
+ */
+ public void setResults(@Nullable final List results) {
+ this.results = results;
+ }
+
+ /**
+ * Set the error of this {@link ResultsInner3} instance and return the same instance.
+ *
+ * @param error The error of this {@link ResultsInner3}
+ * @return The same instance of this {@link ResultsInner3} class
+ */
+ @Nonnull
+ public ResultsInner3 error(@Nullable final PerFilterSearchResultError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Get error
+ *
+ * @return error The error of this {@link ResultsInner3} instance.
+ */
+ @Nonnull
+ public PerFilterSearchResultError getError() {
+ return error;
+ }
+
+ /**
+ * Set the error of this {@link ResultsInner3} instance.
+ *
+ * @param error The error of this {@link ResultsInner3}
+ */
+ public void setError(@Nullable final PerFilterSearchResultError error) {
+ this.error = error;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link ResultsInner3}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link ResultsInner3} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException("ResultsInner3 has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link ResultsInner3} instance including unrecognized
+ * properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (filterId != null) declaredFields.put("filterId", filterId);
+ if (results != null) declaredFields.put("results", results);
+ if (error != null) declaredFields.put("error", error);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link ResultsInner3} instance. If the map previously
+ * contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final ResultsInner3 resultsInner3 = (ResultsInner3) o;
+ return Objects.equals(this.cloudSdkCustomFields, resultsInner3.cloudSdkCustomFields)
+ && Objects.equals(this.filterId, resultsInner3.filterId)
+ && Objects.equals(this.results, resultsInner3.results)
+ && Objects.equals(this.error, resultsInner3.error);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(filterId, results, error, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class ResultsInner3 {\n");
+ sb.append(" filterId: ").append(toIndentedString(filterId)).append("\n");
+ sb.append(" results: ").append(toIndentedString(results)).append("\n");
+ sb.append(" error: ").append(toIndentedString(error)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link ResultsInner3} instance
+ * with all required arguments.
+ */
+ public static Builder create() {
+ return (filterId) -> new ResultsInner3().filterId(filterId);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the filterId of this {@link ResultsInner3} instance.
+ *
+ * @param filterId The filterId of this {@link ResultsInner3}
+ * @return The ResultsInner3 instance.
+ */
+ ResultsInner3 filterId(@Nonnull final String filterId);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalChunk.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalChunk.java
new file mode 100644
index 000000000..96f6093f7
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalChunk.java
@@ -0,0 +1,286 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** RetrievalChunk */
+// CHECKSTYLE:OFF
+public class RetrievalChunk
+// CHECKSTYLE:ON
+{
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("content")
+ private String content;
+
+ @JsonProperty("metadata")
+ private List metadata = new ArrayList<>();
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for RetrievalChunk. */
+ protected RetrievalChunk() {}
+
+ /**
+ * Set the id of this {@link RetrievalChunk} instance and return the same instance.
+ *
+ * @param id The id of this {@link RetrievalChunk}
+ * @return The same instance of this {@link RetrievalChunk} class
+ */
+ @Nonnull
+ public RetrievalChunk id(@Nonnull final String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id The id of this {@link RetrievalChunk} instance.
+ */
+ @Nonnull
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Set the id of this {@link RetrievalChunk} instance.
+ *
+ * @param id The id of this {@link RetrievalChunk}
+ */
+ public void setId(@Nonnull final String id) {
+ this.id = id;
+ }
+
+ /**
+ * Set the content of this {@link RetrievalChunk} instance and return the same instance.
+ *
+ * @param content The content of this {@link RetrievalChunk}
+ * @return The same instance of this {@link RetrievalChunk} class
+ */
+ @Nonnull
+ public RetrievalChunk content(@Nonnull final String content) {
+ this.content = content;
+ return this;
+ }
+
+ /**
+ * Get content
+ *
+ * @return content The content of this {@link RetrievalChunk} instance.
+ */
+ @Nonnull
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * Set the content of this {@link RetrievalChunk} instance.
+ *
+ * @param content The content of this {@link RetrievalChunk}
+ */
+ public void setContent(@Nonnull final String content) {
+ this.content = content;
+ }
+
+ /**
+ * Set the metadata of this {@link RetrievalChunk} instance and return the same instance.
+ *
+ * @param metadata The metadata of this {@link RetrievalChunk}
+ * @return The same instance of this {@link RetrievalChunk} class
+ */
+ @Nonnull
+ public RetrievalChunk metadata(@Nullable final List metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Add one metadata instance to this {@link RetrievalChunk}.
+ *
+ * @param metadataItem The metadata that should be added
+ * @return The same instance of type {@link RetrievalChunk}
+ */
+ @Nonnull
+ public RetrievalChunk addMetadataItem(@Nonnull final RetrievalKeyValueListPair metadataItem) {
+ if (this.metadata == null) {
+ this.metadata = new ArrayList<>();
+ }
+ this.metadata.add(metadataItem);
+ return this;
+ }
+
+ /**
+ * Get metadata
+ *
+ * @return metadata The metadata of this {@link RetrievalChunk} instance.
+ */
+ @Nonnull
+ public List getMetadata() {
+ return metadata;
+ }
+
+ /**
+ * Set the metadata of this {@link RetrievalChunk} instance.
+ *
+ * @param metadata The metadata of this {@link RetrievalChunk}
+ */
+ public void setMetadata(@Nullable final List metadata) {
+ this.metadata = metadata;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link RetrievalChunk}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link RetrievalChunk} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException("RetrievalChunk has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link RetrievalChunk} instance including unrecognized
+ * properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (id != null) declaredFields.put("id", id);
+ if (content != null) declaredFields.put("content", content);
+ if (metadata != null) declaredFields.put("metadata", metadata);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link RetrievalChunk} instance. If the map previously
+ * contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final RetrievalChunk retrievalChunk = (RetrievalChunk) o;
+ return Objects.equals(this.cloudSdkCustomFields, retrievalChunk.cloudSdkCustomFields)
+ && Objects.equals(this.id, retrievalChunk.id)
+ && Objects.equals(this.content, retrievalChunk.content)
+ && Objects.equals(this.metadata, retrievalChunk.metadata);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, content, metadata, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class RetrievalChunk {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" content: ").append(toIndentedString(content)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link RetrievalChunk}
+ * instance with all required arguments.
+ */
+ public static Builder create() {
+ return (id) -> (content) -> new RetrievalChunk().id(id).content(content);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the id of this {@link RetrievalChunk} instance.
+ *
+ * @param id The id of this {@link RetrievalChunk}
+ * @return The RetrievalChunk builder.
+ */
+ Builder1 id(@Nonnull final String id);
+ }
+
+ /** Builder helper class. */
+ public interface Builder1 {
+ /**
+ * Set the content of this {@link RetrievalChunk} instance.
+ *
+ * @param content The content of this {@link RetrievalChunk}
+ * @return The RetrievalChunk instance.
+ */
+ RetrievalChunk content(@Nonnull final String content);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalDocumentKeyValueListPair.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalDocumentKeyValueListPair.java
new file mode 100644
index 000000000..958f23b02
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalDocumentKeyValueListPair.java
@@ -0,0 +1,365 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonValue;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** RetrievalDocumentKeyValueListPair */
+// CHECKSTYLE:OFF
+public class RetrievalDocumentKeyValueListPair
+// CHECKSTYLE:ON
+{
+ @JsonProperty("key")
+ private String key;
+
+ @JsonProperty("value")
+ private List value = new ArrayList<>();
+
+ /** Gets or Sets matchMode */
+ public enum MatchModeEnum {
+ /** The ANY option of this RetrievalDocumentKeyValueListPair */
+ ANY("ANY"),
+
+ /** The ALL option of this RetrievalDocumentKeyValueListPair */
+ ALL("ALL"),
+
+ /** The UNKNOWN_DEFAULT_OPEN_API option of this RetrievalDocumentKeyValueListPair */
+ UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
+
+ private String value;
+
+ MatchModeEnum(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the value of the enum
+ *
+ * @return The enum value
+ */
+ @JsonValue
+ @Nonnull
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Get the String value of the enum value.
+ *
+ * @return The enum value as String
+ */
+ @Override
+ @Nonnull
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ /**
+ * Get the enum value from a String value
+ *
+ * @param value The String value
+ * @return The enum value of type RetrievalDocumentKeyValueListPair
+ */
+ @JsonCreator
+ @Nullable
+ public static MatchModeEnum fromValue(@Nonnull final String value) {
+ for (MatchModeEnum b : MatchModeEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ return null;
+ }
+ }
+
+ @JsonProperty("matchMode")
+ private MatchModeEnum matchMode;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for RetrievalDocumentKeyValueListPair. */
+ protected RetrievalDocumentKeyValueListPair() {}
+
+ /**
+ * Set the key of this {@link RetrievalDocumentKeyValueListPair} instance and return the same
+ * instance.
+ *
+ * @param key The key of this {@link RetrievalDocumentKeyValueListPair}
+ * @return The same instance of this {@link RetrievalDocumentKeyValueListPair} class
+ */
+ @Nonnull
+ public RetrievalDocumentKeyValueListPair key(@Nonnull final String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * Get key
+ *
+ * @return key The key of this {@link RetrievalDocumentKeyValueListPair} instance.
+ */
+ @Nonnull
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Set the key of this {@link RetrievalDocumentKeyValueListPair} instance.
+ *
+ * @param key The key of this {@link RetrievalDocumentKeyValueListPair}
+ */
+ public void setKey(@Nonnull final String key) {
+ this.key = key;
+ }
+
+ /**
+ * Set the value of this {@link RetrievalDocumentKeyValueListPair} instance and return the same
+ * instance.
+ *
+ * @param value The value of this {@link RetrievalDocumentKeyValueListPair}
+ * @return The same instance of this {@link RetrievalDocumentKeyValueListPair} class
+ */
+ @Nonnull
+ public RetrievalDocumentKeyValueListPair value(@Nonnull final List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Add one value instance to this {@link RetrievalDocumentKeyValueListPair}.
+ *
+ * @param valueItem The value that should be added
+ * @return The same instance of type {@link RetrievalDocumentKeyValueListPair}
+ */
+ @Nonnull
+ public RetrievalDocumentKeyValueListPair addValueItem(@Nonnull final String valueItem) {
+ if (this.value == null) {
+ this.value = new ArrayList<>();
+ }
+ this.value.add(valueItem);
+ return this;
+ }
+
+ /**
+ * Get value
+ *
+ * @return value The value of this {@link RetrievalDocumentKeyValueListPair} instance.
+ */
+ @Nonnull
+ public List getValue() {
+ return value;
+ }
+
+ /**
+ * Set the value of this {@link RetrievalDocumentKeyValueListPair} instance.
+ *
+ * @param value The value of this {@link RetrievalDocumentKeyValueListPair}
+ */
+ public void setValue(@Nonnull final List value) {
+ this.value = value;
+ }
+
+ /**
+ * Set the matchMode of this {@link RetrievalDocumentKeyValueListPair} instance and return the
+ * same instance.
+ *
+ * @param matchMode The matchMode of this {@link RetrievalDocumentKeyValueListPair}
+ * @return The same instance of this {@link RetrievalDocumentKeyValueListPair} class
+ */
+ @Nonnull
+ public RetrievalDocumentKeyValueListPair matchMode(@Nullable final MatchModeEnum matchMode) {
+ this.matchMode = matchMode;
+ return this;
+ }
+
+ /**
+ * Get matchMode
+ *
+ * @return matchMode The matchMode of this {@link RetrievalDocumentKeyValueListPair} instance.
+ */
+ @Nullable
+ public MatchModeEnum getMatchMode() {
+ return matchMode;
+ }
+
+ /**
+ * Set the matchMode of this {@link RetrievalDocumentKeyValueListPair} instance.
+ *
+ * @param matchMode The matchMode of this {@link RetrievalDocumentKeyValueListPair}
+ */
+ public void setMatchMode(@Nullable final MatchModeEnum matchMode) {
+ this.matchMode = matchMode;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link
+ * RetrievalDocumentKeyValueListPair}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link RetrievalDocumentKeyValueListPair}
+ * instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "RetrievalDocumentKeyValueListPair has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link RetrievalDocumentKeyValueListPair} instance
+ * including unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (key != null) declaredFields.put("key", key);
+ if (value != null) declaredFields.put("value", value);
+ if (matchMode != null) declaredFields.put("matchMode", matchMode);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link RetrievalDocumentKeyValueListPair} instance. If
+ * the map previously contained a mapping for the key, the old value is replaced by the specified
+ * value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final RetrievalDocumentKeyValueListPair retrievalDocumentKeyValueListPair =
+ (RetrievalDocumentKeyValueListPair) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, retrievalDocumentKeyValueListPair.cloudSdkCustomFields)
+ && Objects.equals(this.key, retrievalDocumentKeyValueListPair.key)
+ && Objects.equals(this.value, retrievalDocumentKeyValueListPair.value)
+ && Objects.equals(this.matchMode, retrievalDocumentKeyValueListPair.matchMode);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(key, value, matchMode, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class RetrievalDocumentKeyValueListPair {\n");
+ sb.append(" key: ").append(toIndentedString(key)).append("\n");
+ sb.append(" value: ").append(toIndentedString(value)).append("\n");
+ sb.append(" matchMode: ").append(toIndentedString(matchMode)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link
+ * RetrievalDocumentKeyValueListPair} instance with all required arguments.
+ */
+ public static Builder create() {
+ return (key) -> (value) -> new RetrievalDocumentKeyValueListPair().key(key).value(value);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the key of this {@link RetrievalDocumentKeyValueListPair} instance.
+ *
+ * @param key The key of this {@link RetrievalDocumentKeyValueListPair}
+ * @return The RetrievalDocumentKeyValueListPair builder.
+ */
+ Builder1 key(@Nonnull final String key);
+ }
+
+ /** Builder helper class. */
+ public interface Builder1 {
+ /**
+ * Set the value of this {@link RetrievalDocumentKeyValueListPair} instance.
+ *
+ * @param value The value of this {@link RetrievalDocumentKeyValueListPair}
+ * @return The RetrievalDocumentKeyValueListPair instance.
+ */
+ RetrievalDocumentKeyValueListPair value(@Nonnull final List value);
+
+ /**
+ * Set the value of this {@link RetrievalDocumentKeyValueListPair} instance.
+ *
+ * @param value The value of this {@link RetrievalDocumentKeyValueListPair}
+ * @return The RetrievalDocumentKeyValueListPair instance.
+ */
+ default RetrievalDocumentKeyValueListPair value(@Nonnull final String... value) {
+ return value(Arrays.asList(value));
+ }
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalKeyValueListPair.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalKeyValueListPair.java
new file mode 100644
index 000000000..9b3ba466b
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalKeyValueListPair.java
@@ -0,0 +1,261 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package com.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** RetrievalKeyValueListPair */
+// CHECKSTYLE:OFF
+public class RetrievalKeyValueListPair
+// CHECKSTYLE:ON
+{
+ @JsonProperty("key")
+ private String key;
+
+ @JsonProperty("value")
+ private List value = new ArrayList<>();
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for RetrievalKeyValueListPair. */
+ protected RetrievalKeyValueListPair() {}
+
+ /**
+ * Set the key of this {@link RetrievalKeyValueListPair} instance and return the same instance.
+ *
+ * @param key The key of this {@link RetrievalKeyValueListPair}
+ * @return The same instance of this {@link RetrievalKeyValueListPair} class
+ */
+ @Nonnull
+ public RetrievalKeyValueListPair key(@Nonnull final String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * Get key
+ *
+ * @return key The key of this {@link RetrievalKeyValueListPair} instance.
+ */
+ @Nonnull
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Set the key of this {@link RetrievalKeyValueListPair} instance.
+ *
+ * @param key The key of this {@link RetrievalKeyValueListPair}
+ */
+ public void setKey(@Nonnull final String key) {
+ this.key = key;
+ }
+
+ /**
+ * Set the value of this {@link RetrievalKeyValueListPair} instance and return the same instance.
+ *
+ * @param value The value of this {@link RetrievalKeyValueListPair}
+ * @return The same instance of this {@link RetrievalKeyValueListPair} class
+ */
+ @Nonnull
+ public RetrievalKeyValueListPair value(@Nonnull final List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Add one value instance to this {@link RetrievalKeyValueListPair}.
+ *
+ * @param valueItem The value that should be added
+ * @return The same instance of type {@link RetrievalKeyValueListPair}
+ */
+ @Nonnull
+ public RetrievalKeyValueListPair addValueItem(@Nonnull final String valueItem) {
+ if (this.value == null) {
+ this.value = new ArrayList<>();
+ }
+ this.value.add(valueItem);
+ return this;
+ }
+
+ /**
+ * Get value
+ *
+ * @return value The value of this {@link RetrievalKeyValueListPair} instance.
+ */
+ @Nonnull
+ public List getValue() {
+ return value;
+ }
+
+ /**
+ * Set the value of this {@link RetrievalKeyValueListPair} instance.
+ *
+ * @param value The value of this {@link RetrievalKeyValueListPair}
+ */
+ public void setValue(@Nonnull final List value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link RetrievalKeyValueListPair}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link RetrievalKeyValueListPair} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "RetrievalKeyValueListPair has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link RetrievalKeyValueListPair} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map