The builder is not reusable.
- */
- public DocumentGroundingFilter build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilterSearchConfiguration.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilterSearchConfiguration.java
deleted file mode 100644
index fb1080880..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilterSearchConfiguration.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.Arrays;
-import java.util.Objects;
-import org.openapitools.jackson.nullable.JsonNullable;
-
-/** GroundingFilterSearchConfiguration */
-@JsonPropertyOrder({
- GroundingFilterSearchConfiguration.JSON_PROPERTY_MAX_CHUNK_COUNT,
- GroundingFilterSearchConfiguration.JSON_PROPERTY_MAX_DOCUMENT_COUNT
-})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class GroundingFilterSearchConfiguration {
- public static final String JSON_PROPERTY_MAX_CHUNK_COUNT = "max_chunk_count";
- public static final String JSON_PROPERTY_MAX_DOCUMENT_COUNT = "max_document_count";
- private JsonNullable The builder is not reusable.
- */
- public GroundingFilterSearchConfiguration build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java
deleted file mode 100644
index d57864ab7..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonValue;
-import java.util.Objects;
-
-/** GroundingModuleConfig */
-@JsonPropertyOrder({
- GroundingModuleConfig.JSON_PROPERTY_TYPE,
- GroundingModuleConfig.JSON_PROPERTY_CONFIG
-})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class GroundingModuleConfig {
- public static final String JSON_PROPERTY_TYPE = "type";
- public static final String JSON_PROPERTY_CONFIG = "config";
- private TypeEnum type;
- private GroundingModuleConfigConfig config;
-
- public GroundingModuleConfig() {}
-
- /** Create a builder with no initialized field. */
- public static GroundingModuleConfig.Builder builder() {
- return new GroundingModuleConfig.Builder();
- }
-
- public GroundingModuleConfig type(TypeEnum type) {
-
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- *
- * @return type
- */
- @javax.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public TypeEnum getType() {
- return type;
- }
-
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setType(TypeEnum type) {
- this.type = type;
- }
-
- public GroundingModuleConfig config(GroundingModuleConfigConfig config) {
-
- this.config = config;
- return this;
- }
-
- /**
- * Get config
- *
- * @return config
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_CONFIG)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public GroundingModuleConfigConfig getConfig() {
- return config;
- }
-
- @JsonProperty(JSON_PROPERTY_CONFIG)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setConfig(GroundingModuleConfigConfig config) {
- this.config = config;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- GroundingModuleConfig groundingModuleConfig = (GroundingModuleConfig) o;
- return Objects.equals(this.type, groundingModuleConfig.type)
- && Objects.equals(this.config, groundingModuleConfig.config);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(type, config);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class GroundingModuleConfig {\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" config: ").append(toIndentedString(config)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /** Create a builder with a shallow copy of this instance. */
- public GroundingModuleConfig.Builder toBuilder() {
- return new GroundingModuleConfig.Builder().type(getType()).config(getConfig());
- }
-
- /** Gets or Sets type */
- public enum TypeEnum {
- DOCUMENT_GROUNDING_SERVICE("document_grounding_service"),
-
- UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
-
- private String value;
-
- TypeEnum(String value) {
- this.value = value;
- }
-
- @JsonCreator
- public static TypeEnum fromValue(String value) {
- for (TypeEnum b : TypeEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- return null;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
- }
-
- public static class Builder {
-
- private GroundingModuleConfig instance;
-
- public Builder() {
- this(new GroundingModuleConfig());
- }
-
- protected Builder(GroundingModuleConfig instance) {
- this.instance = instance;
- }
-
- public GroundingModuleConfig.Builder type(TypeEnum type) {
- this.instance.type = type;
- return this;
- }
-
- public GroundingModuleConfig.Builder config(GroundingModuleConfigConfig config) {
- this.instance.config = config;
- return this;
- }
-
- /**
- * returns a built GroundingModuleConfig instance.
- *
- * The builder is not reusable.
- */
- public GroundingModuleConfig build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigConfig.java
deleted file mode 100644
index e0a9d3fab..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigConfig.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-
-/** GroundingModuleConfigConfig */
-@JsonPropertyOrder({
- GroundingModuleConfigConfig.JSON_PROPERTY_FILTERS,
- GroundingModuleConfigConfig.JSON_PROPERTY_INPUT_PARAMS,
- GroundingModuleConfigConfig.JSON_PROPERTY_OUTPUT_PARAM
-})
-@JsonTypeName("GroundingModuleConfig_config")
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class GroundingModuleConfigConfig {
- public static final String JSON_PROPERTY_FILTERS = "filters";
- public static final String JSON_PROPERTY_INPUT_PARAMS = "input_params";
- public static final String JSON_PROPERTY_OUTPUT_PARAM = "output_param";
- private List The builder is not reusable.
- */
- public GroundingModuleConfigConfig build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigConfigFiltersInner.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigConfigFiltersInner.java
deleted file mode 100644
index 6c2220f75..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigConfigFiltersInner.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-@JsonIgnoreProperties(
- value = "", // ignore manually set , it will be automatically generated by Jackson during
- // serialization
- allowSetters = true // allows the to be set during deserialization
- )
-@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
-public interface GroundingModuleConfigConfigFiltersInner {}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/KeyValueListPair.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/KeyValueListPair.java
deleted file mode 100644
index e0c7b349c..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/KeyValueListPair.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-
-/** KeyValueListPair */
-@JsonPropertyOrder({KeyValueListPair.JSON_PROPERTY_KEY, KeyValueListPair.JSON_PROPERTY_VALUE})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class KeyValueListPair {
- public static final String JSON_PROPERTY_KEY = "key";
- public static final String JSON_PROPERTY_VALUE = "value";
- private String key;
- private List The builder is not reusable.
- */
- public KeyValueListPair build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java
index 172a18623..f6de3861a 100644
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java
+++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java
@@ -29,11 +29,12 @@
comments = "Generator version: 7.9.0")
public class LLMModuleConfig {
public static final String JSON_PROPERTY_MODEL_NAME = "model_name";
- public static final String JSON_PROPERTY_MODEL_VERSION = "model_version";
+ private String modelName;
public static final String JSON_PROPERTY_MODEL_PARAMS = "model_params";
private Object modelParams;
- private String modelName;
+
+ public static final String JSON_PROPERTY_MODEL_VERSION = "model_version";
private String modelVersion = "latest";
public LLMModuleConfig() {}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java
index 1d36779a1..a3b32b66b 100644
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java
+++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java
@@ -12,10 +12,20 @@
package com.sap.ai.sdk.orchestration.client.model;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
-// ignore manually set , it will be automatically generated by Jackson during
-// serialization
-// allows the to be set during deserialization
-@JsonTypeInfo(use = JsonTypeInfo.Id.NONE)
+@javax.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.9.0")
+@JsonIgnoreProperties(
+ value = "", // ignore manually set , it will be automatically generated by Jackson during
+ // serialization
+ allowSetters = true // allows the to be set during deserialization
+ )
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "",
+ visible = true)
public interface LLMModuleResult {}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResultsOutputUnmaskingInner.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResultsOutputUnmaskingInner.java
index f05ce0dc4..387276f96 100644
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResultsOutputUnmaskingInner.java
+++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResultsOutputUnmaskingInner.java
@@ -12,12 +12,20 @@
package com.sap.ai.sdk.orchestration.client.model;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
-@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
-@JsonSubTypes({
- @JsonSubTypes.Type(value = LLMChoice.class, name = "LLMChoice"),
- @JsonSubTypes.Type(value = LLMChoiceStreaming.class, name = "LLMChoiceStreaming")
-})
+@javax.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.9.0")
+@JsonIgnoreProperties(
+ value = "", // ignore manually set , it will be automatically generated by Jackson during
+ // serialization
+ allowSetters = true // allows the to be set during deserialization
+ )
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "",
+ visible = true)
public interface ModuleResultsOutputUnmaskingInner {}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java
deleted file mode 100644
index 6d192ea4d..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.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;
-
-/** OrchestrationV1EndpointsHealthz503Response */
-// CHECKSTYLE:OFF
-public class OrchestrationV1EndpointsHealthz503Response
-// CHECKSTYLE:ON
-{
- @JsonAnySetter @JsonAnyGetter
- private final Map The builder is not reusable.
- */
- public SearchDocumentKeyValueListPair build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/SearchSelectOptionEnum.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/SearchSelectOptionEnum.java
deleted file mode 100644
index 36036a4fa..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/SearchSelectOptionEnum.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonValue;
-
-/** Gets or Sets SearchSelectOptionEnum */
-public enum SearchSelectOptionEnum {
- IGNORE_IF_KEY_ABSENT("ignoreIfKeyAbsent"),
-
- UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
-
- private String value;
-
- SearchSelectOptionEnum(String value) {
- this.value = value;
- }
-
- @JsonCreator
- public static SearchSelectOptionEnum fromValue(String value) {
- for (SearchSelectOptionEnum b : SearchSelectOptionEnum.values()) {
- if (b.value.equals(value)) {
- return b;
- }
- }
- return null;
- }
-
- @JsonValue
- public String getValue() {
- return value;
- }
-
- @Override
- public String toString() {
- return String.valueOf(value);
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRef.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRef.java
deleted file mode 100644
index bf84de777..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRef.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.Objects;
-
-/** TemplateRef */
-@JsonPropertyOrder({TemplateRef.JSON_PROPERTY_TEMPLATE_REF})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class TemplateRef {
- public static final String JSON_PROPERTY_TEMPLATE_REF = "template_ref";
- private TemplateRefTemplateRef templateRef;
-
- public TemplateRef() {}
-
- /** Create a builder with no initialized field. */
- public static TemplateRef.Builder builder() {
- return new TemplateRef.Builder();
- }
-
- public TemplateRef templateRef(TemplateRefTemplateRef templateRef) {
-
- this.templateRef = templateRef;
- return this;
- }
-
- /**
- * Get templateRef
- *
- * @return templateRef
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_TEMPLATE_REF)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public TemplateRefTemplateRef getTemplateRef() {
- return templateRef;
- }
-
- @JsonProperty(JSON_PROPERTY_TEMPLATE_REF)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setTemplateRef(TemplateRefTemplateRef templateRef) {
- this.templateRef = templateRef;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TemplateRef templateRef = (TemplateRef) o;
- return Objects.equals(this.templateRef, templateRef.templateRef);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(templateRef);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class TemplateRef {\n");
- sb.append(" templateRef: ").append(toIndentedString(templateRef)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /** Create a builder with a shallow copy of this instance. */
- public TemplateRef.Builder toBuilder() {
- return new TemplateRef.Builder().templateRef(getTemplateRef());
- }
-
- public static class Builder {
-
- private TemplateRef instance;
-
- public Builder() {
- this(new TemplateRef());
- }
-
- protected Builder(TemplateRef instance) {
- this.instance = instance;
- }
-
- public TemplateRef.Builder templateRef(TemplateRefTemplateRef templateRef) {
- this.instance.templateRef = templateRef;
- return this;
- }
-
- /**
- * returns a built TemplateRef instance.
- *
- * The builder is not reusable.
- */
- public TemplateRef build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefByID.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefByID.java
deleted file mode 100644
index 28ed912e1..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefByID.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.Objects;
-
-/** TemplateRefByID */
-@JsonPropertyOrder({TemplateRefByID.JSON_PROPERTY_ID})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class TemplateRefByID implements TemplateRefTemplateRef {
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public TemplateRefByID() {}
-
- /** Create a builder with no initialized field. */
- public static TemplateRefByID.Builder builder() {
- return new TemplateRefByID.Builder();
- }
-
- public TemplateRefByID id(String id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * ID of the template in prompt registry
- *
- * @return id
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getId() {
- return id;
- }
-
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setId(String id) {
- this.id = id;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TemplateRefByID templateRefByID = (TemplateRefByID) o;
- return Objects.equals(this.id, templateRefByID.id);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class TemplateRefByID {\n");
- sb.append(" id: ").append(toIndentedString(id)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /** Create a builder with a shallow copy of this instance. */
- public TemplateRefByID.Builder toBuilder() {
- return new TemplateRefByID.Builder().id(getId());
- }
-
- public static class Builder {
-
- private TemplateRefByID instance;
-
- public Builder() {
- this(new TemplateRefByID());
- }
-
- protected Builder(TemplateRefByID instance) {
- this.instance = instance;
- }
-
- public TemplateRefByID.Builder id(String id) {
- this.instance.id = id;
- return this;
- }
-
- /**
- * returns a built TemplateRefByID instance.
- *
- * The builder is not reusable.
- */
- public TemplateRefByID build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefByScenarioNameVersion.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefByScenarioNameVersion.java
deleted file mode 100644
index fb41fad2c..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefByScenarioNameVersion.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.Objects;
-
-/** TemplateRefByScenarioNameVersion */
-@JsonPropertyOrder({
- TemplateRefByScenarioNameVersion.JSON_PROPERTY_SCENARIO,
- TemplateRefByScenarioNameVersion.JSON_PROPERTY_NAME,
- TemplateRefByScenarioNameVersion.JSON_PROPERTY_VERSION
-})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-public class TemplateRefByScenarioNameVersion {
- public static final String JSON_PROPERTY_SCENARIO = "scenario";
- public static final String JSON_PROPERTY_NAME = "name";
- public static final String JSON_PROPERTY_VERSION = "version";
- private String scenario;
- private String name;
- private String version;
-
- public TemplateRefByScenarioNameVersion() {}
-
- /** Create a builder with no initialized field. */
- public static TemplateRefByScenarioNameVersion.Builder builder() {
- return new TemplateRefByScenarioNameVersion.Builder();
- }
-
- public TemplateRefByScenarioNameVersion scenario(String scenario) {
-
- this.scenario = scenario;
- return this;
- }
-
- /**
- * Scenario name
- *
- * @return scenario
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_SCENARIO)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getScenario() {
- return scenario;
- }
-
- @JsonProperty(JSON_PROPERTY_SCENARIO)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setScenario(String scenario) {
- this.scenario = scenario;
- }
-
- public TemplateRefByScenarioNameVersion name(String name) {
-
- this.name = name;
- return this;
- }
-
- /**
- * Name of the template
- *
- * @return name
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getName() {
- return name;
- }
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setName(String name) {
- this.name = name;
- }
-
- public TemplateRefByScenarioNameVersion version(String version) {
-
- this.version = version;
- return this;
- }
-
- /**
- * Version of the template
- *
- * @return version
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_VERSION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getVersion() {
- return version;
- }
-
- @JsonProperty(JSON_PROPERTY_VERSION)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setVersion(String version) {
- this.version = version;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TemplateRefByScenarioNameVersion templateRefByScenarioNameVersion =
- (TemplateRefByScenarioNameVersion) o;
- return Objects.equals(this.scenario, templateRefByScenarioNameVersion.scenario)
- && Objects.equals(this.name, templateRefByScenarioNameVersion.name)
- && Objects.equals(this.version, templateRefByScenarioNameVersion.version);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(scenario, name, version);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class TemplateRefByScenarioNameVersion {\n");
- sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" version: ").append(toIndentedString(version)).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(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /** Create a builder with a shallow copy of this instance. */
- public TemplateRefByScenarioNameVersion.Builder toBuilder() {
- return new TemplateRefByScenarioNameVersion.Builder()
- .scenario(getScenario())
- .name(getName())
- .version(getVersion());
- }
-
- public static class Builder {
-
- private TemplateRefByScenarioNameVersion instance;
-
- public Builder() {
- this(new TemplateRefByScenarioNameVersion());
- }
-
- protected Builder(TemplateRefByScenarioNameVersion instance) {
- this.instance = instance;
- }
-
- public TemplateRefByScenarioNameVersion.Builder scenario(String scenario) {
- this.instance.scenario = scenario;
- return this;
- }
-
- public TemplateRefByScenarioNameVersion.Builder name(String name) {
- this.instance.name = name;
- return this;
- }
-
- public TemplateRefByScenarioNameVersion.Builder version(String version) {
- this.instance.version = version;
- return this;
- }
-
- /**
- * returns a built TemplateRefByScenarioNameVersion instance.
- *
- * The builder is not reusable.
- */
- public TemplateRefByScenarioNameVersion build() {
- try {
- return this.instance;
- } finally {
- // ensure that this.instance is not reused
- this.instance = null;
- }
- }
-
- @Override
- public String toString() {
- return getClass() + "=(" + instance + ")";
- }
- }
-}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefTemplateRef.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefTemplateRef.java
deleted file mode 100644
index cec1ce89c..000000000
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplateRefTemplateRef.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Internal Orchestration Service API
- * SAP AI Core - Orchestration Service API
- *
- * The version of the OpenAPI document: 0.0.1
- *
- *
- * 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.orchestration.client.model;
-
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.9.0")
-@JsonIgnoreProperties(
- value = "", // ignore manually set , it will be automatically generated by Jackson during
- // serialization
- allowSetters = true // allows the to be set during deserialization
- )
-@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
-public interface TemplateRefTemplateRef {}
diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java
index 65715ee9c..24eaba3b3 100644
--- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java
+++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java
@@ -29,11 +29,12 @@
comments = "Generator version: 7.9.0")
public class TokenUsage {
public static final String JSON_PROPERTY_COMPLETION_TOKENS = "completion_tokens";
- public static final String JSON_PROPERTY_TOTAL_TOKENS = "total_tokens";
+ private Integer completionTokens;
public static final String JSON_PROPERTY_PROMPT_TOKENS = "prompt_tokens";
private Integer promptTokens;
- private Integer completionTokens;
+
+ public static final String JSON_PROPERTY_TOTAL_TOKENS = "total_tokens";
private Integer totalTokens;
public TokenUsage() {}
diff --git a/orchestration/src/test/java/com/sap/ai/sdk/orchestration/LLMModuleResultDeserializerTest.java b/orchestration/src/test/java/com/sap/ai/sdk/orchestration/LLMModuleResultDeserializerTest.java
index 76642eb04..37089f6e6 100644
--- a/orchestration/src/test/java/com/sap/ai/sdk/orchestration/LLMModuleResultDeserializerTest.java
+++ b/orchestration/src/test/java/com/sap/ai/sdk/orchestration/LLMModuleResultDeserializerTest.java
@@ -4,7 +4,6 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sap.ai.sdk.orchestration.client.model.LLMModuleResult;
-import com.sap.ai.sdk.orchestration.client.model.LLMModuleResultStreaming;
import com.sap.ai.sdk.orchestration.client.model.LLMModuleResultSynchronous;
import lombok.SneakyThrows;
import org.junit.jupiter.api.Test;
@@ -54,42 +53,4 @@ void testSubtypeResolutionSynchronous() {
// Assert
assertThat(result).isExactlyInstanceOf(LLMModuleResultSynchronous.class);
}
-
- @SneakyThrows
- @Test
- void testSubtypeResolutionStreaming() {
- var choices =
- """
- [
- {
- "index": 0,
- "delta": {
- "content": "Sample response content."
- }
- }
- ]
- """;
-
- var json = String.format(jsonTemplate, choices);
-
- // Deserialize JSON content
- LLMModuleResult result = objectMapper.readValue(json, LLMModuleResult.class);
-
- // Assert
- assertThat(result).isExactlyInstanceOf(LLMModuleResultStreaming.class);
- }
-
- @SneakyThrows
- @Test
- void testSubtypeResolutionEmptyChoices() {
-
- String choice = "[]";
- var json = String.format(jsonTemplate, choice);
-
- // Deserialize JSON content
- LLMModuleResult result = objectMapper.readValue(json, LLMModuleResult.class);
-
- // Assert
- assertThat(result).isExactlyInstanceOf(LLMModuleResultSynchronous.class);
- }
}