Skip to content

Commit 61d3fc5

Browse files
authored
feat: [Orchestration] Update to Orchestration Spec 0.36.1 (#203)
* Update to Orchestration Spec 0.36.1 * Update test payload * update spec, remove help.sap.com
1 parent 59bc45e commit 61d3fc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3147
-114
lines changed

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/AzureContentSafety.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/AzureContentSafetyFilterConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/AzureThreshold.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/ChatDelta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/ChatMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/CompletionPostRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/CompletionPostResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/CompletionPostResponseStreaming.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/DPIConfig.java

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -155,6 +155,9 @@ public static MethodEnum fromValue(@Nonnull final String value) {
155155
@JsonProperty("entities")
156156
private List<DPIEntityConfig> entities = new ArrayList<>();
157157

158+
@JsonProperty("allowlist")
159+
private List<String> allowlist = new ArrayList<>();
160+
158161
@JsonAnySetter @JsonAnyGetter
159162
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
160163

@@ -269,6 +272,52 @@ public void setEntities(@Nonnull final List<DPIEntityConfig> entities) {
269272
this.entities = entities;
270273
}
271274

275+
/**
276+
* Set the allowlist of this {@link DPIConfig} instance and return the same instance.
277+
*
278+
* @param allowlist List of strings that should not be masked
279+
* @return The same instance of this {@link DPIConfig} class
280+
*/
281+
@Nonnull
282+
public DPIConfig allowlist(@Nullable final List<String> allowlist) {
283+
this.allowlist = allowlist;
284+
return this;
285+
}
286+
287+
/**
288+
* Add one allowlist instance to this {@link DPIConfig}.
289+
*
290+
* @param allowlistItem The allowlist that should be added
291+
* @return The same instance of type {@link DPIConfig}
292+
*/
293+
@Nonnull
294+
public DPIConfig addAllowlistItem(@Nonnull final String allowlistItem) {
295+
if (this.allowlist == null) {
296+
this.allowlist = new ArrayList<>();
297+
}
298+
this.allowlist.add(allowlistItem);
299+
return this;
300+
}
301+
302+
/**
303+
* List of strings that should not be masked
304+
*
305+
* @return allowlist The allowlist of this {@link DPIConfig} instance.
306+
*/
307+
@Nonnull
308+
public List<String> getAllowlist() {
309+
return allowlist;
310+
}
311+
312+
/**
313+
* Set the allowlist of this {@link DPIConfig} instance.
314+
*
315+
* @param allowlist List of strings that should not be masked
316+
*/
317+
public void setAllowlist(@Nullable final List<String> allowlist) {
318+
this.allowlist = allowlist;
319+
}
320+
272321
/**
273322
* Get the names of the unrecognizable properties of the {@link DPIConfig}.
274323
*
@@ -319,12 +368,13 @@ public boolean equals(@Nullable final java.lang.Object o) {
319368
return Objects.equals(this.cloudSdkCustomFields, dpIConfig.cloudSdkCustomFields)
320369
&& Objects.equals(this.type, dpIConfig.type)
321370
&& Objects.equals(this.method, dpIConfig.method)
322-
&& Objects.equals(this.entities, dpIConfig.entities);
371+
&& Objects.equals(this.entities, dpIConfig.entities)
372+
&& Objects.equals(this.allowlist, dpIConfig.allowlist);
323373
}
324374

325375
@Override
326376
public int hashCode() {
327-
return Objects.hash(type, method, entities, cloudSdkCustomFields);
377+
return Objects.hash(type, method, entities, allowlist, cloudSdkCustomFields);
328378
}
329379

330380
@Override
@@ -335,6 +385,7 @@ public String toString() {
335385
sb.append(" type: ").append(toIndentedString(type)).append("\n");
336386
sb.append(" method: ").append(toIndentedString(method)).append("\n");
337387
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
388+
sb.append(" allowlist: ").append(toIndentedString(allowlist)).append("\n");
338389
cloudSdkCustomFields.forEach(
339390
(k, v) ->
340391
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/DPIEntities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.29.3
5+
* The version of the OpenAPI document: 0.36.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)