Skip to content

Commit 4c4d283

Browse files
BrigittaK307ZhongpinWangcloud-sdk-js
authored
chore: Update to new orchestration release (#1262)
* Update to new orchestration release * Ran postgenerate script adapted to windows * Minor changes * Reverted translation.ts and targetLanguage * fix: Changes from lint * Solved failing test case * Removed applyTo selector * Apply suggestion from @ZhongpinWang * Apply suggestion from @ZhongpinWang --------- Co-authored-by: Zhongpin Wang <[email protected]> Co-authored-by: cloud-sdk-js <[email protected]>
1 parent 58464e9 commit 4c4d283

37 files changed

+765
-113
lines changed

packages/orchestration/src/client/api/schema/azure-content-safety-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type AzureContentSafetyInput = {
1313
sexual?: AzureThreshold;
1414
violence?: AzureThreshold;
1515
/**
16-
* A flag to use prompt shield
16+
* Filter prompts for harmful content such as jailbreaks and prompt injections.
1717
*/
1818
prompt_shield?: boolean;
1919
};

packages/orchestration/src/client/api/schema/azure-content-safety-output.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ export type AzureContentSafetyOutput = {
1212
self_harm?: AzureThreshold;
1313
sexual?: AzureThreshold;
1414
violence?: AzureThreshold;
15+
/**
16+
* Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.
17+
*/
18+
protected_material_code?: boolean;
1519
};

packages/orchestration/src/client/api/schema/completion-post-request.ts

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,13 @@
33
*
44
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
55
*/
6-
import type { OrchestrationConfig } from './orchestration-config.js';
7-
import type { ChatMessages } from './chat-messages.js';
6+
import type { CompletionRequestConfiguration } from './completion-request-configuration.js';
7+
import type { CompletionRequestConfigurationReferenceById } from './completion-request-configuration-reference-by-id.js';
8+
import type { CompletionRequestConfigurationReferenceByNameScenarioVersion } from './completion-request-configuration-reference-by-name-scenario-version.js';
89
/**
910
* Representation of the 'CompletionPostRequest' schema.
1011
*/
11-
export type CompletionPostRequest = {
12-
config: OrchestrationConfig;
13-
/**
14-
* @example {
15-
* "groundingInput": "What is SAP Joule?",
16-
* "inputContext": "optimizing supply chain management"
17-
* }
18-
*/
19-
placeholder_values?: Record<string, string>;
20-
/**
21-
* History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
22-
*/
23-
messages_history?: ChatMessages;
24-
};
12+
export type CompletionPostRequest =
13+
| CompletionRequestConfiguration
14+
| CompletionRequestConfigurationReferenceById
15+
| CompletionRequestConfigurationReferenceByNameScenarioVersion;

packages/orchestration/src/client/api/schema/completion-post-response-streaming.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
import type { ModuleResultsStreaming } from './module-results-streaming.js';
77
import type { LLMModuleResultStreaming } from './llm-module-result-streaming.js';
8+
import type { ErrorStreaming } from './error-streaming.js';
89
/**
910
* Representation of the 'CompletionPostResponseStreaming' schema.
1011
*/
@@ -15,4 +16,8 @@ export type CompletionPostResponseStreaming = {
1516
request_id: string;
1617
intermediate_results?: ModuleResultsStreaming;
1718
final_result?: LLMModuleResultStreaming;
19+
/**
20+
* List of errors encountered during processing for unsuccessful modules configurations
21+
*/
22+
intermediate_failures?: ErrorStreaming[];
1823
} & Record<string, any>;

packages/orchestration/src/client/api/schema/completion-post-response.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
import type { ModuleResults } from './module-results.js';
77
import type { LlmModuleResult } from './llm-module-result.js';
8+
import type { Error } from './error.js';
89
/**
910
* Representation of the 'CompletionPostResponse' schema.
1011
*/
@@ -16,4 +17,8 @@ export type CompletionPostResponse = {
1617
request_id: string;
1718
intermediate_results: ModuleResults;
1819
final_result: LlmModuleResult;
20+
/**
21+
* List of errors encountered during processing for unsuccessful modules configurations
22+
*/
23+
intermediate_failures?: Error[];
1924
} & Record<string, any>;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3+
*
4+
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
5+
*/
6+
7+
/**
8+
* Representation of the 'CompletionRequestConfigurationReferenceByIdConfigRef' schema.
9+
*/
10+
export type CompletionRequestConfigurationReferenceByIdConfigRef = {
11+
/**
12+
* @example "f47ac10b-58cc-4372-a567-0e02b2c3d479"
13+
*/
14+
id: string;
15+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3+
*
4+
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
5+
*/
6+
import type { CompletionRequestConfigurationReferenceByIdConfigRef } from './completion-request-configuration-reference-by-id-config-ref.js';
7+
import type { ChatMessages } from './chat-messages.js';
8+
/**
9+
* Representation of the 'CompletionRequestConfigurationReferenceById' schema.
10+
*/
11+
export type CompletionRequestConfigurationReferenceById = {
12+
config_ref: CompletionRequestConfigurationReferenceByIdConfigRef;
13+
/**
14+
* @example {
15+
* "groundingInput": "What is SAP Joule?",
16+
* "inputContext": "optimizing supply chain management"
17+
* }
18+
*/
19+
placeholder_values?: Record<string, string>;
20+
/**
21+
* History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
22+
*/
23+
messages_history?: ChatMessages;
24+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3+
*
4+
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
5+
*/
6+
7+
/**
8+
* Representation of the 'CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef' schema.
9+
*/
10+
export type CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef =
11+
{
12+
scenario: string;
13+
name: string;
14+
version: string;
15+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3+
*
4+
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
5+
*/
6+
import type { CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef } from './completion-request-configuration-reference-by-name-scenario-version-config-ref.js';
7+
import type { ChatMessages } from './chat-messages.js';
8+
/**
9+
* Representation of the 'CompletionRequestConfigurationReferenceByNameScenarioVersion' schema.
10+
*/
11+
export type CompletionRequestConfigurationReferenceByNameScenarioVersion = {
12+
config_ref: CompletionRequestConfigurationReferenceByNameScenarioVersionConfigRef;
13+
/**
14+
* @example {
15+
* "groundingInput": "What is SAP Joule?",
16+
* "inputContext": "optimizing supply chain management"
17+
* }
18+
*/
19+
placeholder_values?: Record<string, string>;
20+
/**
21+
* History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
22+
*/
23+
messages_history?: ChatMessages;
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3+
*
4+
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
5+
*/
6+
import type { OrchestrationConfig } from './orchestration-config.js';
7+
import type { ChatMessages } from './chat-messages.js';
8+
/**
9+
* Representation of the 'CompletionRequestConfiguration' schema.
10+
*/
11+
export type CompletionRequestConfiguration = {
12+
config: OrchestrationConfig;
13+
/**
14+
* @example {
15+
* "groundingInput": "What is SAP Joule?",
16+
* "inputContext": "optimizing supply chain management"
17+
* }
18+
*/
19+
placeholder_values?: Record<string, string>;
20+
/**
21+
* History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message
22+
*/
23+
messages_history?: ChatMessages;
24+
};

0 commit comments

Comments
 (0)