@sap-ai-sdk/orchestration 2.0.0-20250821013115.0 → 2.0.0-20250822013112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/orchestration-response.d.ts +7 -2
- package/dist/orchestration-response.d.ts.map +1 -1
- package/dist/orchestration-response.js +12 -5
- package/dist/orchestration-response.js.map +1 -1
- package/dist/orchestration-stream-chunk-response.d.ts +8 -3
- package/dist/orchestration-stream-chunk-response.d.ts.map +1 -1
- package/dist/orchestration-stream-chunk-response.js +13 -6
- package/dist/orchestration-stream-chunk-response.js.map +1 -1
- package/dist/orchestration-stream-response.d.ts +12 -3
- package/dist/orchestration-stream-response.d.ts.map +1 -1
- package/dist/orchestration-stream-response.js +17 -5
- package/dist/orchestration-stream-response.js.map +1 -1
- package/dist/orchestration-stream.js +1 -1
- package/dist/orchestration-stream.js.map +1 -1
- package/dist/orchestration-types.d.ts +17 -1
- package/dist/orchestration-types.d.ts.map +1 -1
- package/dist/orchestration-types.js.map +1 -1
- package/dist/util/filtering.d.ts +2 -3
- package/dist/util/filtering.d.ts.map +1 -1
- package/dist/util/grounding.d.ts +2 -3
- package/dist/util/grounding.d.ts.map +1 -1
- package/dist/util/grounding.js.map +1 -1
- package/dist/util/masking.d.ts +2 -3
- package/dist/util/masking.d.ts.map +1 -1
- package/dist/util/masking.js.map +1 -1
- package/dist/util/translation.d.ts +2 -3
- package/dist/util/translation.d.ts.map +1 -1
- package/dist/util/translation.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { OrchestrationModuleConfig, PromptTemplatingModule, MaskingModule, GroundingModule, FilteringModule, TranslationModule, PromptTemplate, ChatCompletionRequest, RequestOptions, StreamOptions, DocumentGroundingServiceConfig, DocumentGroundingServiceFilter, DpiMaskingConfig, LlmModelParams, LlmModelDetails, LlamaGuardCategory, AzureContentFilter, AzureFilterThreshold, TranslationConfigParams, AzureContentSafety, AzureContentSafetyFilterConfig, OrchestrationErrorResponse } from './orchestration-types.js';
|
|
1
|
+
export type { OrchestrationModuleConfig, PromptTemplatingModule, MaskingModule, GroundingModule, FilteringModule, TranslationModule, PromptTemplate, ChatCompletionRequest, RequestOptions, StreamOptions, DocumentGroundingServiceConfig, DocumentGroundingServiceFilter, DpiMaskingConfig, LlmModelParams, LlmModelDetails, LlamaGuardCategory, AzureContentFilter, AzureFilterThreshold, TranslationConfigParams, AzureContentSafety, AzureContentSafetyFilterConfig, OrchestrationErrorResponse, LlamaGuardFilterConfig, DocumentGroundingConfig, DpiMaskingProviderConfig, TranslationConfig } from './orchestration-types.js';
|
|
2
2
|
export { OrchestrationStreamResponse } from './orchestration-stream-response.js';
|
|
3
3
|
export { OrchestrationStreamChunkResponse } from './orchestration-stream-chunk-response.js';
|
|
4
4
|
export { OrchestrationStream } from './orchestration-stream.js';
|
|
@@ -6,4 +6,10 @@ export { OrchestrationClient } from './orchestration-client.js';
|
|
|
6
6
|
export { OrchestrationResponse } from './orchestration-response.js';
|
|
7
7
|
export type { ChatModel } from './model-types.js';
|
|
8
8
|
export { buildAzureContentSafetyFilter, buildLlamaGuardFilter, buildDocumentGroundingConfig, buildDpiMaskingProvider, buildTranslationConfig } from './util/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Exporting frequently used types.
|
|
11
|
+
* In case of breaking changes, create wrappers in `orchestration-types.ts`.
|
|
12
|
+
* Explicitly export the wrapper also in `internal.ts`.
|
|
13
|
+
*/
|
|
14
|
+
export type { ChatMessage, SystemChatMessage, UserChatMessage, AssistantChatMessage, ToolChatMessage, DeveloperChatMessage, ChatCompletionTool, FunctionObject } from './client/api/schema/index.js';
|
|
9
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,8BAA8B,EAC9B,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,8BAA8B,EAC9B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,sBAAsB,EACtB,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,8BAA8B,EAC9B,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,8BAA8B,EAC9B,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACf,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpResponse } from '@sap-cloud-sdk/http-client';
|
|
2
|
-
import type { CompletionPostResponse, TokenUsage, ChatMessages, AssistantChatMessage, MessageToolCalls, LlmChoice } from './client/api/schema/index.js';
|
|
2
|
+
import type { CompletionPostResponse, TokenUsage, ChatMessages, AssistantChatMessage, MessageToolCalls, LlmChoice, ModuleResults } from './client/api/schema/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Representation of an orchestration response.
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class OrchestrationResponse {
|
|
|
8
8
|
/**
|
|
9
9
|
* The completion post response.
|
|
10
10
|
*/
|
|
11
|
-
readonly
|
|
11
|
+
readonly _data: CompletionPostResponse;
|
|
12
12
|
constructor(rawResponse: HttpResponse);
|
|
13
13
|
/**
|
|
14
14
|
* Usage of tokens in the response.
|
|
@@ -52,6 +52,11 @@ export declare class OrchestrationResponse {
|
|
|
52
52
|
* @returns The assistant message.
|
|
53
53
|
*/
|
|
54
54
|
getAssistantMessage(choiceIndex?: number): AssistantChatMessage | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Gets the intermediate results from the orchestration response.
|
|
57
|
+
* @returns The intermediate results.
|
|
58
|
+
*/
|
|
59
|
+
getIntermediateResults(): ModuleResults;
|
|
55
60
|
/**
|
|
56
61
|
* Parses the response and returns the choice by index.
|
|
57
62
|
* @param index - The index of the choice to find.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-response.d.ts","sourceRoot":"","sources":["../src/orchestration-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EAEV,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,
|
|
1
|
+
{"version":3,"file":"orchestration-response.d.ts","sourceRoot":"","sources":["../src/orchestration-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EAEV,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,aAAa,EACd,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,qBAAa,qBAAqB;aAKJ,WAAW,EAAE,YAAY;IAJrD;;OAEG;IACH,SAAgB,KAAK,EAAE,sBAAsB,CAAC;gBAClB,WAAW,EAAE,YAAY;IAIrD;;;OAGG;IACH,aAAa,IAAI,UAAU;IAG3B;;;;OAIG;IACH,eAAe,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAIpD;;;;;OAKG;IACH,UAAU,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAa/C;;;;OAIG;IACH,YAAY,CAAC,WAAW,SAAI,GAAG,gBAAgB,GAAG,SAAS;IAK3D;;;;OAIG;IACH,UAAU,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAK/C;;;;OAIG;IACH,cAAc,CAAC,WAAW,SAAI,GAAG,YAAY;IAO7C;;;;OAIG;IACH,mBAAmB,CAAC,WAAW,SAAI,GAAG,oBAAoB,GAAG,SAAS;IAItE;;;OAGG;IACH,sBAAsB,IAAI,aAAa;IAIvC;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAIvD,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -6,17 +6,17 @@ export class OrchestrationResponse {
|
|
|
6
6
|
/**
|
|
7
7
|
* The completion post response.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
_data;
|
|
10
10
|
constructor(rawResponse) {
|
|
11
11
|
this.rawResponse = rawResponse;
|
|
12
|
-
this.
|
|
12
|
+
this._data = rawResponse.data;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Usage of tokens in the response.
|
|
16
16
|
* @returns Token usage.
|
|
17
17
|
*/
|
|
18
18
|
getTokenUsage() {
|
|
19
|
-
return this.
|
|
19
|
+
return this._data.final_result.usage;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Reason for stopping the completion.
|
|
@@ -64,7 +64,7 @@ export class OrchestrationResponse {
|
|
|
64
64
|
* @returns A list of all messages.
|
|
65
65
|
*/
|
|
66
66
|
getAllMessages(choiceIndex = 0) {
|
|
67
|
-
const messages = this.
|
|
67
|
+
const messages = this._data.intermediate_results.templating ?? [];
|
|
68
68
|
const content = this.findChoiceByIndex(choiceIndex)?.message;
|
|
69
69
|
return content ? [...messages, content] : messages;
|
|
70
70
|
}
|
|
@@ -76,6 +76,13 @@ export class OrchestrationResponse {
|
|
|
76
76
|
getAssistantMessage(choiceIndex = 0) {
|
|
77
77
|
return this.findChoiceByIndex(choiceIndex)?.message;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Gets the intermediate results from the orchestration response.
|
|
81
|
+
* @returns The intermediate results.
|
|
82
|
+
*/
|
|
83
|
+
getIntermediateResults() {
|
|
84
|
+
return this._data.intermediate_results;
|
|
85
|
+
}
|
|
79
86
|
/**
|
|
80
87
|
* Parses the response and returns the choice by index.
|
|
81
88
|
* @param index - The index of the choice to find.
|
|
@@ -85,7 +92,7 @@ export class OrchestrationResponse {
|
|
|
85
92
|
return this.getChoices().find((c) => c.index === index);
|
|
86
93
|
}
|
|
87
94
|
getChoices() {
|
|
88
|
-
return this.
|
|
95
|
+
return this._data.final_result.choices;
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
98
|
//# sourceMappingURL=orchestration-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-response.js","sourceRoot":"","sources":["../src/orchestration-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestration-response.js","sourceRoot":"","sources":["../src/orchestration-response.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAKJ;IAJ5B;;OAEG;IACa,KAAK,CAAyB;IAC9C,YAA4B,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;QACnD,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;IAChC,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAM,CAAC;IACxC,CAAC;IACD;;;;OAIG;IACH,eAAe,CAAC,WAAW,GAAG,CAAC;QAC7B,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5D,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,WAAW,GAAG,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,W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E,CAAC,IAAI,CAAC,CAAC,CAAoB,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAC7E,CAAC;IAEO,UAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CompletionPostResponseStreaming, LlmChoiceStreaming, TokenUsage, ToolCallChunk } from './client/api/schema/index.js';
|
|
1
|
+
import type { CompletionPostResponseStreaming, LlmChoiceStreaming, ModuleResultsStreaming, TokenUsage, ToolCallChunk } from './client/api/schema/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Orchestration stream chunk response.
|
|
4
4
|
*/
|
|
5
5
|
export declare class OrchestrationStreamChunkResponse {
|
|
6
|
-
readonly
|
|
7
|
-
constructor(
|
|
6
|
+
readonly _data: CompletionPostResponseStreaming;
|
|
7
|
+
constructor(_data: CompletionPostResponseStreaming);
|
|
8
8
|
/**
|
|
9
9
|
* Usage of tokens in the chunk response.
|
|
10
10
|
* @returns Token usage.
|
|
@@ -28,6 +28,11 @@ export declare class OrchestrationStreamChunkResponse {
|
|
|
28
28
|
* @returns The message delta content.
|
|
29
29
|
*/
|
|
30
30
|
getDeltaContent(choiceIndex?: number): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the intermediate results from the chunk.
|
|
33
|
+
* @returns The intermediate results.
|
|
34
|
+
*/
|
|
35
|
+
getIntermediateResults(): ModuleResultsStreaming | undefined;
|
|
31
36
|
/**
|
|
32
37
|
* Parses the chunk response and returns the choice by index.
|
|
33
38
|
* @param index - The index of the choice to find.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-stream-chunk-response.d.ts","sourceRoot":"","sources":["../src/orchestration-stream-chunk-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,kBAAkB,EAClB,UAAU,EACV,aAAa,EACd,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,qBAAa,gCAAgC;aACf,
|
|
1
|
+
{"version":3,"file":"orchestration-stream-chunk-response.d.ts","sourceRoot":"","sources":["../src/orchestration-stream-chunk-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,aAAa,EACd,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,qBAAa,gCAAgC;aACf,KAAK,EAAE,+BAA+B;gBAAtC,KAAK,EAAE,+BAA+B;IAIlE;;;OAGG;IACH,aAAa,IAAI,UAAU,GAAG,SAAS;IAIvC;;;;OAIG;IACH,eAAe,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAIpD;;;;OAIG;IACH,iBAAiB,CAAC,WAAW,SAAI,GAAG,aAAa,EAAE,GAAG,SAAS;IAI/D;;;;OAIG;IACH,eAAe,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAIpD;;;OAGG;IACH,sBAAsB,IAAI,sBAAsB,GAAG,SAAS;IAI5D;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAMhE,OAAO,CAAC,UAAU;CAGnB"}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Orchestration stream chunk response.
|
|
3
3
|
*/
|
|
4
4
|
export class OrchestrationStreamChunkResponse {
|
|
5
|
-
|
|
6
|
-
constructor(
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
5
|
+
_data;
|
|
6
|
+
constructor(_data) {
|
|
7
|
+
this._data = _data;
|
|
8
|
+
this._data = _data;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Usage of tokens in the chunk response.
|
|
12
12
|
* @returns Token usage.
|
|
13
13
|
*/
|
|
14
14
|
getTokenUsage() {
|
|
15
|
-
return this.
|
|
15
|
+
return this._data.final_result?.usage;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Reason for stopping the completion stream chunk.
|
|
@@ -38,6 +38,13 @@ export class OrchestrationStreamChunkResponse {
|
|
|
38
38
|
getDeltaContent(choiceIndex = 0) {
|
|
39
39
|
return this.findChoiceByIndex(choiceIndex)?.delta.content;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Gets the intermediate results from the chunk.
|
|
43
|
+
* @returns The intermediate results.
|
|
44
|
+
*/
|
|
45
|
+
getIntermediateResults() {
|
|
46
|
+
return this._data.intermediate_results;
|
|
47
|
+
}
|
|
41
48
|
/**
|
|
42
49
|
* Parses the chunk response and returns the choice by index.
|
|
43
50
|
* @param index - The index of the choice to find.
|
|
@@ -47,7 +54,7 @@ export class OrchestrationStreamChunkResponse {
|
|
|
47
54
|
return this.getChoices()?.find((c) => c.index === index);
|
|
48
55
|
}
|
|
49
56
|
getChoices() {
|
|
50
|
-
return this.
|
|
57
|
+
return this._data.final_result?.choices;
|
|
51
58
|
}
|
|
52
59
|
}
|
|
53
60
|
//# sourceMappingURL=orchestration-stream-chunk-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-stream-chunk-response.js","sourceRoot":"","sources":["../src/orchestration-stream-chunk-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestration-stream-chunk-response.js","sourceRoot":"","sources":["../src/orchestration-stream-chunk-response.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,OAAO,gCAAgC;IACf;IAA5B,YAA4B,KAAsC;QAAtC,UAAK,GAAL,KAAK,CAAiC;QAChE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,WAAW,GAAG,CAAC;QAC7B,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,WAAW,GAAG,CAAC;QAC/B,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAC/D,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,WAAW,GAAG,CAAC;QAC7B,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACH,sBAAsB;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,KAAa;QAC7B,OAAO,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,CAC5B,CAAC,CAAqB,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAC7C,CAAC;IACJ,CAAC;IAEO,UAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,OAAO,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistantChatMessage, ChatMessages, CompletionPostResponse, MessageToolCalls, TokenUsage } from './client/api/schema/index.js';
|
|
1
|
+
import type { AssistantChatMessage, ChatMessages, CompletionPostResponse, LlmChoice, MessageToolCalls, ModuleResults, TokenUsage } from './client/api/schema/index.js';
|
|
2
2
|
import type { OrchestrationStream } from './orchestration-stream.js';
|
|
3
3
|
/**
|
|
4
4
|
* Orchestration stream response.
|
|
@@ -49,10 +49,19 @@ export declare class OrchestrationStreamResponse<T> {
|
|
|
49
49
|
* @returns The assistant message.
|
|
50
50
|
*/
|
|
51
51
|
getAssistantMessage(choiceIndex?: number): AssistantChatMessage | undefined;
|
|
52
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Gets the intermediate results from the orchestration response.
|
|
54
|
+
* @returns The intermediate results.
|
|
55
|
+
*/
|
|
56
|
+
getIntermediateResults(): ModuleResults | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Parses the response and returns the choice by index.
|
|
59
|
+
* @param index - The index of the choice to find.
|
|
60
|
+
* @returns An {@link LLMChoice} object associated with the index.
|
|
61
|
+
*/
|
|
62
|
+
findChoiceByIndex(index: number): LlmChoice | undefined;
|
|
53
63
|
get stream(): OrchestrationStream<T>;
|
|
54
64
|
private getChoices;
|
|
55
|
-
private findChoiceByIndex;
|
|
56
65
|
private isStreamOpen;
|
|
57
66
|
/**
|
|
58
67
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-stream-response.d.ts","sourceRoot":"","sources":["../src/orchestration-stream-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,YAAY,EACZ,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;GAEG;AACH,qBAAa,2BAA2B,CAAC,CAAC;IACjC,WAAW,UAAQ;IACnB,KAAK,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAM;IACnD,OAAO,CAAC,OAAO,CAAqC;IAEpD;;;OAGG;
|
|
1
|
+
{"version":3,"file":"orchestration-stream-response.d.ts","sourceRoot":"","sources":["../src/orchestration-stream-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,YAAY,EACZ,sBAAsB,EACtB,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,UAAU,EACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;GAEG;AACH,qBAAa,2BAA2B,CAAC,CAAC;IACjC,WAAW,UAAQ;IACnB,KAAK,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAM;IACnD,OAAO,CAAC,OAAO,CAAqC;IAEpD;;;OAGG;IACH,aAAa,IAAI,UAAU,GAAG,SAAS;IAOvC;;;;OAIG;IACH,eAAe,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAOpD;;;;;OAKG;IACH,UAAU,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAQ/C;;;;OAIG;IACH,YAAY,CAAC,WAAW,SAAI,GAAG,gBAAgB,GAAG,SAAS;IAQ3D;;;;OAIG;IACH,UAAU,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS;IAQ/C;;;;OAIG;IACH,cAAc,CAAC,WAAW,SAAI,GAAG,YAAY,GAAG,SAAS;IAUzD;;;;OAIG;IACH,mBAAmB,CAAC,WAAW,SAAI,GAAG,oBAAoB,GAAG,SAAS;IAOtE;;;OAGG;IACH,sBAAsB,IAAI,aAAa,GAAG,SAAS;IAOnD;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAOvD,IAAI,MAAM,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAKnC;IAED,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,YAAY;IASpB;;OAEG;IACH,IAAI,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAExC;CACF"}
|
|
@@ -87,11 +87,26 @@ export class OrchestrationStreamResponse {
|
|
|
87
87
|
}
|
|
88
88
|
return this.findChoiceByIndex(choiceIndex)?.message;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Gets the intermediate results from the orchestration response.
|
|
92
|
+
* @returns The intermediate results.
|
|
93
|
+
*/
|
|
94
|
+
getIntermediateResults() {
|
|
91
95
|
if (this.isStreamOpen()) {
|
|
92
96
|
return;
|
|
93
97
|
}
|
|
94
|
-
return this._data;
|
|
98
|
+
return this._data.intermediate_results;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Parses the response and returns the choice by index.
|
|
102
|
+
* @param index - The index of the choice to find.
|
|
103
|
+
* @returns An {@link LLMChoice} object associated with the index.
|
|
104
|
+
*/
|
|
105
|
+
findChoiceByIndex(index) {
|
|
106
|
+
if (this.isStreamOpen()) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
return this.getChoices().find((c) => c.index === index);
|
|
95
110
|
}
|
|
96
111
|
get stream() {
|
|
97
112
|
if (!this._stream) {
|
|
@@ -102,9 +117,6 @@ export class OrchestrationStreamResponse {
|
|
|
102
117
|
getChoices() {
|
|
103
118
|
return this._data.final_result?.choices ?? [];
|
|
104
119
|
}
|
|
105
|
-
findChoiceByIndex(index) {
|
|
106
|
-
return this.getChoices().find((c) => c.index === index);
|
|
107
|
-
}
|
|
108
120
|
isStreamOpen() {
|
|
109
121
|
if (this._openStream) {
|
|
110
122
|
throw Error('The stream is still open, the requested data is not available yet. Please wait until the stream is closed.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-stream-response.js","sourceRoot":"","sources":["../src/orchestration-stream-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestration-stream-response.js","sourceRoot":"","sources":["../src/orchestration-stream-response.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,MAAM,OAAO,2BAA2B;IAC/B,WAAW,GAAG,IAAI,CAAC;IACnB,KAAK,GAAoC,EAAE,CAAC;IAC3C,OAAO,CAAqC;IAEpD;;;OAGG;IACH,aAAa;QACX,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,WAAW,GAAG,CAAC;QAC7B,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,a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C,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QACD,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,sBAAsB;QACpB,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,KAAa;QAC7B,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,CAAoB,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAC7E,CAAC;IAED,IAAI,MAAM;QACR,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAEO,UAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,OAAO,IAAI,EAAE,CAAC;IAChD,CAAC;IAEO,YAAY;QAClB,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,MAAM,KAAK,CACT,4GAA4G,CAC7G,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,MAA8B;QACvC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -31,7 +31,7 @@ export class OrchestrationStream extends SseStream {
|
|
|
31
31
|
throw new Error('Response is required to process completion post response streaming.');
|
|
32
32
|
}
|
|
33
33
|
for await (const chunk of stream) {
|
|
34
|
-
mergeStreamResponse(response, chunk.
|
|
34
|
+
mergeStreamResponse(response, chunk._data);
|
|
35
35
|
yield chunk;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-stream.js","sourceRoot":"","sources":["../src/orchestration-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAKtD;;GAEG;AACH,MAAM,OAAO,mBAA0B,SAAQ,SAAe;IAgFnD;IA/ET;;;;;OAKG;IACI,MAAM,CAAC,OAAO,CACnB,QAAsB,EACtB,UAA2B;QAE3B,MAAM,MAAM,GACV,SAAS,CAAC,oBAAoB,CAC5B,QAAQ,EACR,UAAU,CACX,CAAC;QACJ,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,CACzB,MAA4D;QAE5D,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YACjC,MAAM,IAAI,gCAAgC,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,CAAC,wCAAwC,CACpD,MAA6D,EAC7D,QAAwE;QAExE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;QACJ,CAAC;QACD,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YACjC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"orchestration-stream.js","sourceRoot":"","sources":["../src/orchestration-stream.ts"],"names":[],"mappings":"AAAA,O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,KAAK,CAAC;QACd,CAAC;QAED,QAAQ,CAAC,WAAW,GAAG,KAAK,CAAC;IAC/B,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,KAAK,CAAC,CAAC,qBAAqB,CACjC,MAA6D;QAE7D,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YACjC,MAAM,YAAY,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;YAC7C,IAAI,CAAC,YAAY,EAAE,CAAC;gBAClB,SAAS;YACX,CAAC;YACD,MAAM,YAAY,CAAC;QACrB,CAAC;IACH,CAAC;IAED,YACS,QAAmC,EAC1C,UAA2B;QAE3B,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAHrB,aAAQ,GAAR,QAAQ,CAA2B;IAI5C,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CACH,SAG2B,EAC3B,QAAwE;QAExE,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,mBAAmB,CAC5B,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,EAC/B,IAAI,CAAC,UAAU,CAChB,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACI,eAAe;QAGpB,OAAO,IAAI,mBAAmB,CAC5B,GAAG,EAAE,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,IAAI,CAAC,EACrD,IAAI,CAAC,UAAU,CAChB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Xor } from '@sap-cloud-sdk/util';
|
|
2
2
|
import type { CustomRequestConfig } from '@sap-cloud-sdk/http-client';
|
|
3
3
|
import type { ChatModel } from './model-types.js';
|
|
4
|
-
import type { ChatMessages, DataRepositoryType, DocumentGroundingFilter, DpiConfig, DpiEntities, FilteringStreamOptions, LlamaGuard38B, LLMModelDetails as OriginalLLMModelDetails, Template, TemplateRef, TemplatingChatMessage, AzureContentSafetyOutput, AzureContentSafetyOutputFilterConfig, DPIStandardEntity, DPICustomEntity, InputFilteringConfig, OutputFilteringConfig, MaskingProviderConfig, SAPDocumentTranslation, GlobalStreamOptions, ErrorResponse } from './client/api/schema/index.js';
|
|
4
|
+
import type { ChatMessages, DataRepositoryType, DocumentGroundingFilter, DpiConfig, DpiEntities, FilteringStreamOptions, LlamaGuard38B, LLMModelDetails as OriginalLLMModelDetails, Template, TemplateRef, TemplatingChatMessage, AzureContentSafetyOutput, AzureContentSafetyOutputFilterConfig, DPIStandardEntity, DPICustomEntity, InputFilteringConfig, OutputFilteringConfig, MaskingProviderConfig, SAPDocumentTranslation, GlobalStreamOptions, ErrorResponse, GroundingModuleConfig, LlamaGuard38BFilterConfig } from './client/api/schema/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Chat completion request configuration.
|
|
7
7
|
*/
|
|
@@ -370,5 +370,21 @@ export type AzureContentSafety = AzureContentSafetyOutput;
|
|
|
370
370
|
* Representation of the Azure Content Safety filter config schema.
|
|
371
371
|
*/
|
|
372
372
|
export type AzureContentSafetyFilterConfig = AzureContentSafetyOutputFilterConfig;
|
|
373
|
+
/**
|
|
374
|
+
* Representation of the 'LlamaGuard38BFilterConfig' schema.
|
|
375
|
+
*/
|
|
376
|
+
export type LlamaGuardFilterConfig = LlamaGuard38BFilterConfig;
|
|
377
|
+
/**
|
|
378
|
+
* Representation of the 'GroundingModuleConfig' schema.
|
|
379
|
+
*/
|
|
380
|
+
export type DocumentGroundingConfig = GroundingModuleConfig;
|
|
381
|
+
/**
|
|
382
|
+
* Representation of the 'DpiConfig' schema.
|
|
383
|
+
*/
|
|
384
|
+
export type DpiMaskingProviderConfig = DpiConfig;
|
|
385
|
+
/**
|
|
386
|
+
* Representation of the 'SAPDocumentTranslation' schema.
|
|
387
|
+
*/
|
|
388
|
+
export type TranslationConfig = SAPDocumentTranslation;
|
|
373
389
|
export {};
|
|
374
390
|
//# sourceMappingURL=orchestration-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-types.d.ts","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,eAAe,IAAI,uBAAuB,EAC1C,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,wBAAwB,EACxB,oCAAoC,EACpC,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,
|
|
1
|
+
{"version":3,"file":"orchestration-types.d.ts","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,eAAe,IAAI,uBAAuB,EAC1C,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,wBAAwB,EACxB,oCAAoC,EACpC,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,a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AAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,8BAA8B,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,aAAa,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GACxC,oCAAoC,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-types.js","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestration-types.js","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"AAgYA;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,UAAU,EAAE,CAAC;IACb,cAAc,EAAE,CAAC;IACjB,qBAAqB,EAAE,CAAC;IACxB,SAAS,EAAE,CAAC;CACJ,CAAC"}
|
package/dist/util/filtering.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AzureContentFilter, AzureContentSafetyFilterConfig, LlamaGuardCategory } from '../orchestration-types.js';
|
|
1
|
+
import type { AzureContentFilter, AzureContentSafetyFilterConfig, LlamaGuardCategory, LlamaGuardFilterConfig } from '../orchestration-types.js';
|
|
3
2
|
/**
|
|
4
3
|
* Convenience function to build Azure content filter.
|
|
5
4
|
* @param config - Configuration for Azure content safety filter.
|
|
@@ -14,5 +13,5 @@ export declare function buildAzureContentSafetyFilter(config?: AzureContentFilte
|
|
|
14
13
|
* @returns Filter config object.
|
|
15
14
|
* @example "buildLlamaGuardFilter('self_harm', 'hate')"
|
|
16
15
|
*/
|
|
17
|
-
export declare function buildLlamaGuardFilter(...categories: [LlamaGuardCategory, ...LlamaGuardCategory[]]):
|
|
16
|
+
export declare function buildLlamaGuardFilter(...categories: [LlamaGuardCategory, ...LlamaGuardCategory[]]): LlamaGuardFilterConfig;
|
|
18
17
|
//# sourceMappingURL=filtering.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../src/util/filtering.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../src/util/filtering.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,8BAA8B,EAE9B,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,CAAC,EAAE,kBAAkB,GAC1B,8BAA8B,CAiBhC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,UAAU,EAAE,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,CAAC,GAC3D,sBAAsB,CAOxB"}
|
package/dist/util/grounding.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DocumentGroundingServiceConfig } from '../orchestration-types.js';
|
|
1
|
+
import type { DocumentGroundingServiceConfig, DocumentGroundingConfig } from '../orchestration-types.js';
|
|
3
2
|
/**
|
|
4
3
|
* Convenience function to create Document Grounding configuration.
|
|
5
4
|
* @param groundingConfig - Configuration for the document grounding service.
|
|
6
5
|
* @returns An object with the full grounding configuration.
|
|
7
6
|
*/
|
|
8
|
-
export declare function buildDocumentGroundingConfig(groundingConfig: DocumentGroundingServiceConfig):
|
|
7
|
+
export declare function buildDocumentGroundingConfig(groundingConfig: DocumentGroundingServiceConfig): DocumentGroundingConfig;
|
|
9
8
|
//# sourceMappingURL=grounding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grounding.d.ts","sourceRoot":"","sources":["../../src/util/grounding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"grounding.d.ts","sourceRoot":"","sources":["../../src/util/grounding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,eAAe,EAAE,8BAA8B,GAC9C,uBAAuB,CAmBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grounding.js","sourceRoot":"","sources":["../../src/util/grounding.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grounding.js","sourceRoot":"","sources":["../../src/util/grounding.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAC1C,eAA+C;IAE/C,OAAO;QACL,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE;YACN,YAAY,EAAE;gBACZ,KAAK,EAAE,eAAe,CAAC,YAAY,CAAC,KAAK;gBACzC,MAAM,EAAE,eAAe,CAAC,YAAY,CAAC,MAAM;aAC5C;YACD,GAAG,CAAC,eAAe,CAAC,OAAO,IAAI;gBAC7B,OAAO,EAAE,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;oBAC/C,oBAAoB,EAAE,QAAQ;oBAC9B,GAAG,MAAM;iBACV,CAAC,CAAC;aACJ,CAAC;YACF,GAAG,CAAC,eAAe,CAAC,eAAe,IAAI;gBACrC,eAAe,EAAE,eAAe,CAAC,eAAe;aACjD,CAAC;SACH;KACF,CAAC;AACJ,CAAC"}
|
package/dist/util/masking.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DpiMaskingConfig } from '../orchestration-types.js';
|
|
1
|
+
import type { DpiMaskingProviderConfig, DpiMaskingConfig } from '../orchestration-types.js';
|
|
3
2
|
/**
|
|
4
3
|
* Convenience function to create masking provider SAP Data Privacy Integration.
|
|
5
4
|
* @param dpiMaskingConfig - Configuration for the masking provider SAP Data Privacy Integration.
|
|
6
5
|
* @returns An object with the masking provider configuration.
|
|
7
6
|
*/
|
|
8
|
-
export declare function buildDpiMaskingProvider(dpiMaskingConfig: DpiMaskingConfig):
|
|
7
|
+
export declare function buildDpiMaskingProvider(dpiMaskingConfig: DpiMaskingConfig): DpiMaskingProviderConfig;
|
|
9
8
|
//# sourceMappingURL=masking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masking.d.ts","sourceRoot":"","sources":["../../src/util/masking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"masking.d.ts","sourceRoot":"","sources":["../../src/util/masking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,gBAAgB,EAAE,gBAAgB,GACjC,wBAAwB,CAuB1B"}
|
package/dist/util/masking.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masking.js","sourceRoot":"","sources":["../../src/util/masking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"masking.js","sourceRoot":"","sources":["../../src/util/masking.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,gBAAkC;IAElC,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,QAAQ,EAAE,SAAS,EAAE,GACzD,gBAAgB,CAAC;IACnB,OAAO;QACL,IAAI,EAAE,8BAA8B;QACpC,MAAM;QACN,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YAC9B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;YAC1B,CAAC;YACD,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ;gBAC7B,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;gBAC1C,CAAC,CAAC,MAAM,CAAC;QACb,CAAC,CAAC;QACF,GAAG,CAAC,oBAAoB,KAAK,SAAS,IAAI;YACxC,oBAAoB,EAAE;gBACpB,OAAO,EAAE,oBAAoB;aAC9B;SACF,CAAC;QACF,GAAG,CAAC,SAAS,IAAI;YACf,SAAS;SACV,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TranslationConfigParams } from '../orchestration-types.js';
|
|
2
|
-
import type { SAPDocumentTranslation } from '../client/api/schema/index.js';
|
|
1
|
+
import type { TranslationConfig, TranslationConfigParams } from '../orchestration-types.js';
|
|
3
2
|
/**
|
|
4
3
|
* Convenience function to build a document translation configuration for orchestration service.
|
|
5
4
|
* @param config - Config for SAP Document Translation service.
|
|
@@ -8,5 +7,5 @@ import type { SAPDocumentTranslation } from '../client/api/schema/index.js';
|
|
|
8
7
|
* @returns A `SAPDocumentTranslation` configuration object.
|
|
9
8
|
* @example "buildTranslationConfig({ sourceLanguage: 'de-DE', targetLanguage: 'en-US' })"
|
|
10
9
|
*/
|
|
11
|
-
export declare function buildTranslationConfig(config: TranslationConfigParams):
|
|
10
|
+
export declare function buildTranslationConfig(config: TranslationConfigParams): TranslationConfig;
|
|
12
11
|
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/util/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/util/translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,uBAAuB,GAC9B,iBAAiB,CAUnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../src/util/translation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translation.js","sourceRoot":"","sources":["../../src/util/translation.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAA+B;IAE/B,OAAO;QACL,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE;YACN,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI;gBAC3B,eAAe,EAAE,MAAM,CAAC,cAAc;aACvC,CAAC;YACF,eAAe,EAAE,MAAM,CAAC,cAAc;SACvC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/orchestration",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-20250822013112.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@sap-cloud-sdk/util": "^4.1.1",
|
|
24
24
|
"yaml": "^2.8.1",
|
|
25
|
-
"@sap-ai-sdk/core": "^2.0.0-
|
|
26
|
-
"@sap-ai-sdk/ai-api": "^2.0.0-
|
|
27
|
-
"@sap-ai-sdk/prompt-registry": "^2.0.0-
|
|
25
|
+
"@sap-ai-sdk/core": "^2.0.0-20250822013112.0",
|
|
26
|
+
"@sap-ai-sdk/ai-api": "^2.0.0-20250822013112.0",
|
|
27
|
+
"@sap-ai-sdk/prompt-registry": "^2.0.0-20250822013112.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@sap-cloud-sdk/http-client": "^4.1.1",
|