@sap-ai-sdk/orchestration 1.3.1-20241203013145.0 → 1.3.1-20241205013157.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/README.md +1 -1
- package/dist/client/api/schema/data-repository-type.d.ts +1 -1
- package/dist/client/api/schema/data-repository-type.d.ts.map +1 -1
- package/dist/client/api/schema/dpi-config.d.ts +4 -0
- package/dist/client/api/schema/dpi-config.d.ts.map +1 -1
- package/dist/client/api/schema/index.d.ts +4 -0
- package/dist/client/api/schema/index.d.ts.map +1 -1
- package/dist/client/api/schema/index.js +4 -0
- package/dist/client/api/schema/index.js.map +1 -1
- package/dist/client/api/schema/llm-module-result.d.ts +3 -34
- package/dist/client/api/schema/llm-module-result.d.ts.map +1 -1
- package/dist/client/api/schema/module-results.d.ts +4 -3
- package/dist/client/api/schema/module-results.d.ts.map +1 -1
- package/dist/client/api/schema/orchestration-config.d.ts +6 -0
- package/dist/client/api/schema/orchestration-config.d.ts.map +1 -1
- package/dist/client/api/schema/output-filtering-config.d.ts +2 -0
- package/dist/client/api/schema/output-filtering-config.d.ts.map +1 -1
- package/dist/client/api/schema/template-ref-by-id.d.ts +11 -0
- package/dist/client/api/schema/template-ref-by-id.d.ts.map +1 -0
- package/dist/client/api/schema/template-ref-by-id.js +7 -0
- package/dist/client/api/schema/template-ref-by-id.js.map +1 -0
- package/dist/client/api/schema/template-ref-by-scenario-name-version.d.ts +21 -0
- package/dist/client/api/schema/template-ref-by-scenario-name-version.d.ts.map +1 -0
- package/dist/client/api/schema/template-ref-by-scenario-name-version.js +7 -0
- package/dist/client/api/schema/template-ref-by-scenario-name-version.js.map +1 -0
- package/dist/client/api/schema/template-ref.d.ts +12 -0
- package/dist/client/api/schema/template-ref.d.ts.map +1 -0
- package/dist/client/api/schema/template-ref.js +2 -0
- package/dist/client/api/schema/template-ref.js.map +1 -0
- package/dist/client/api/schema/template.d.ts +3 -3
- package/dist/client/api/schema/template.d.ts.map +1 -1
- package/dist/client/api/schema/templating-chat-message.d.ts +7 -0
- package/dist/client/api/schema/templating-chat-message.d.ts.map +1 -0
- package/dist/client/api/schema/templating-chat-message.js +2 -0
- package/dist/client/api/schema/templating-chat-message.js.map +1 -0
- package/dist/client/api/schema/templating-module-config.d.ts +2 -1
- package/dist/client/api/schema/templating-module-config.d.ts.map +1 -1
- package/dist/orchestration-response.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -311,7 +311,7 @@ const orchestrationClient = new OrchestrationClient({
|
|
|
311
311
|
id: 'filter1',
|
|
312
312
|
data_repositories: ['*'],
|
|
313
313
|
search_config: {},
|
|
314
|
-
data_repository_type: '
|
|
314
|
+
data_repository_type: 'vector'
|
|
315
315
|
}
|
|
316
316
|
],
|
|
317
317
|
input_params: ['groundingRequest'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-repository-type.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/data-repository-type.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"data-repository-type.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/data-repository-type.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dpi-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/dpi-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,8BAA8B,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,eAAe,GAAG,kBAAkB,CAAC;IAC7C;;;OAGG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"dpi-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/dpi-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,8BAA8B,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,eAAe,GAAG,kBAAkB,CAAC;IAC7C;;;OAGG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './completion-post-request.js';
|
|
2
2
|
export * from './chat-messages.js';
|
|
3
|
+
export * from './templating-chat-message.js';
|
|
3
4
|
export * from './chat-message.js';
|
|
4
5
|
export * from './chat-delta.js';
|
|
5
6
|
export * from './completion-post-response.js';
|
|
@@ -18,6 +19,9 @@ export * from './llm-choice-streaming.js';
|
|
|
18
19
|
export * from './token-usage.js';
|
|
19
20
|
export * from './templating-module-config.js';
|
|
20
21
|
export * from './template.js';
|
|
22
|
+
export * from './template-ref.js';
|
|
23
|
+
export * from './template-ref-by-id.js';
|
|
24
|
+
export * from './template-ref-by-scenario-name-version.js';
|
|
21
25
|
export * from './filtering-module-config.js';
|
|
22
26
|
export * from './input-filtering-config.js';
|
|
23
27
|
export * from './output-filtering-config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/index.ts"],"names":[],"mappings":"AAKA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,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yC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export * from './completion-post-request.js';
|
|
7
7
|
export * from './chat-messages.js';
|
|
8
|
+
export * from './templating-chat-message.js';
|
|
8
9
|
export * from './chat-message.js';
|
|
9
10
|
export * from './chat-delta.js';
|
|
10
11
|
export * from './completion-post-response.js';
|
|
@@ -23,6 +24,9 @@ export * from './llm-choice-streaming.js';
|
|
|
23
24
|
export * from './token-usage.js';
|
|
24
25
|
export * from './templating-module-config.js';
|
|
25
26
|
export * from './template.js';
|
|
27
|
+
export * from './template-ref.js';
|
|
28
|
+
export * from './template-ref-by-id.js';
|
|
29
|
+
export * from './template-ref-by-scenario-name-version.js';
|
|
26
30
|
export * from './filtering-module-config.js';
|
|
27
31
|
export * from './input-filtering-config.js';
|
|
28
32
|
export * from './output-filtering-config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/api/schema/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC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,cAAc,oBAAoB,CAAC;AACnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { LLMModuleResultSynchronous } from './llm-module-result-synchronous.js';
|
|
2
|
+
import type { LLMModuleResultStreaming } from './llm-module-result-streaming.js';
|
|
3
3
|
/**
|
|
4
4
|
* Output of LLM module. Follows the OpenAI spec.
|
|
5
5
|
*/
|
|
6
|
-
export type LlmModuleResult =
|
|
7
|
-
/**
|
|
8
|
-
* ID of the response.
|
|
9
|
-
* @example "chatcmpl-9rO0aLoPKY7RtqkWi1317bazHEVFr"
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* Object type.
|
|
14
|
-
* @example "chat.completion"
|
|
15
|
-
*/
|
|
16
|
-
object: string;
|
|
17
|
-
/**
|
|
18
|
-
* Unix timestamp.
|
|
19
|
-
* @example 1722510700
|
|
20
|
-
*/
|
|
21
|
-
created: number;
|
|
22
|
-
/**
|
|
23
|
-
* Model name.
|
|
24
|
-
* @example "gpt-4"
|
|
25
|
-
*/
|
|
26
|
-
model: string;
|
|
27
|
-
/**
|
|
28
|
-
* System fingerprint.
|
|
29
|
-
* @example "fp_44709d6fcb"
|
|
30
|
-
*/
|
|
31
|
-
system_fingerprint?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Choices.
|
|
34
|
-
*/
|
|
35
|
-
choices: LlmChoice[];
|
|
36
|
-
usage: TokenUsage;
|
|
37
|
-
} & Record<string, any>;
|
|
6
|
+
export type LlmModuleResult = LLMModuleResultSynchronous | LLMModuleResultStreaming;
|
|
38
7
|
//# sourceMappingURL=llm-module-result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-module-result.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"llm-module-result.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,0BAA0B,GAC1B,wBAAwB,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { GenericModuleResult } from './generic-module-result.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TemplatingChatMessage } from './templating-chat-message.js';
|
|
3
3
|
import type { LlmModuleResult } from './llm-module-result.js';
|
|
4
4
|
import type { LlmChoice } from './llm-choice.js';
|
|
5
|
+
import type { LLMChoiceStreaming } from './llm-choice-streaming.js';
|
|
5
6
|
/**
|
|
6
7
|
* Results of each module.
|
|
7
8
|
*/
|
|
8
9
|
export type ModuleResults = {
|
|
9
10
|
grounding?: GenericModuleResult;
|
|
10
|
-
templating?:
|
|
11
|
+
templating?: TemplatingChatMessage;
|
|
11
12
|
input_masking?: GenericModuleResult;
|
|
12
13
|
input_filtering?: GenericModuleResult;
|
|
13
14
|
llm?: LlmModuleResult;
|
|
14
15
|
output_filtering?: GenericModuleResult;
|
|
15
|
-
output_unmasking?: LlmChoice[];
|
|
16
|
+
output_unmasking?: (LlmChoice | LLMChoiceStreaming)[];
|
|
16
17
|
};
|
|
17
18
|
//# sourceMappingURL=module-results.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-results.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/module-results.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"module-results.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/module-results.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,GAAG,CAAC,EAAE,eAAe,CAAC;IACtB,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC,gBAAgB,CAAC,EAAE,CAAC,SAAS,GAAG,kBAAkB,CAAC,EAAE,CAAC;CACvD,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { ModuleConfigs } from './module-configs.js';
|
|
2
|
+
import type { GlobalStreamOptions } from './global-stream-options.js';
|
|
2
3
|
/**
|
|
3
4
|
* Representation of the 'OrchestrationConfig' schema.
|
|
4
5
|
*/
|
|
5
6
|
export type OrchestrationConfig = {
|
|
6
7
|
module_configurations: ModuleConfigs;
|
|
8
|
+
/**
|
|
9
|
+
* If true, the response will be streamed back to the client
|
|
10
|
+
*/
|
|
11
|
+
stream?: boolean;
|
|
12
|
+
stream_options?: GlobalStreamOptions;
|
|
7
13
|
} & Record<string, any>;
|
|
8
14
|
//# sourceMappingURL=orchestration-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/orchestration-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,qBAAqB,EAAE,aAAa,CAAC;CACtC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"orchestration-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/orchestration-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,qBAAqB,EAAE,aAAa,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FilterConfig } from './filter-config.js';
|
|
2
|
+
import type { FilteringStreamOptions } from './filtering-stream-options.js';
|
|
2
3
|
/**
|
|
3
4
|
* Representation of the 'OutputFilteringConfig' schema.
|
|
4
5
|
*/
|
|
@@ -8,5 +9,6 @@ export type OutputFilteringConfig = {
|
|
|
8
9
|
* Min Items: 1.
|
|
9
10
|
*/
|
|
10
11
|
filters: FilterConfig[];
|
|
12
|
+
stream_options?: FilteringStreamOptions;
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=output-filtering-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-filtering-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/output-filtering-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"output-filtering-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/output-filtering-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Representation of the 'TemplateRefByID' schema.
|
|
3
|
+
*/
|
|
4
|
+
export type TemplateRefByID = {
|
|
5
|
+
/**
|
|
6
|
+
* ID of the template in prompt registry
|
|
7
|
+
* @example "template_id"
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
} & Record<string, any>;
|
|
11
|
+
//# sourceMappingURL=template-ref-by-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-ref-by-id.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/template-ref-by-id.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-ref-by-id.js","sourceRoot":"","sources":["../../../../src/client/api/schema/template-ref-by-id.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Representation of the 'TemplateRefByScenarioNameVersion' schema.
|
|
3
|
+
*/
|
|
4
|
+
export type TemplateRefByScenarioNameVersion = {
|
|
5
|
+
/**
|
|
6
|
+
* Scenario name
|
|
7
|
+
* @example "some-scenario"
|
|
8
|
+
*/
|
|
9
|
+
scenario: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the template
|
|
12
|
+
* @example "some-template-name"
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Version of the template
|
|
17
|
+
* @example "some version, can be `latest`"
|
|
18
|
+
*/
|
|
19
|
+
version: string;
|
|
20
|
+
} & Record<string, any>;
|
|
21
|
+
//# sourceMappingURL=template-ref-by-scenario-name-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-ref-by-scenario-name-version.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/template-ref-by-scenario-name-version.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-ref-by-scenario-name-version.js","sourceRoot":"","sources":["../../../../src/client/api/schema/template-ref-by-scenario-name-version.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TemplateRefByID } from './template-ref-by-id.js';
|
|
2
|
+
import type { TemplateRefByScenarioNameVersion } from './template-ref-by-scenario-name-version.js';
|
|
3
|
+
/**
|
|
4
|
+
* Representation of the 'TemplateRef' schema.
|
|
5
|
+
*/
|
|
6
|
+
export type TemplateRef = {
|
|
7
|
+
/**
|
|
8
|
+
* Reference to a template in the prompt registry by ID or by scenario, name and version
|
|
9
|
+
*/
|
|
10
|
+
template_ref: TemplateRefByID | TemplateRefByScenarioNameVersion;
|
|
11
|
+
} & Record<string, any>;
|
|
12
|
+
//# sourceMappingURL=template-ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-ref.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/template-ref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AACnG;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,YAAY,EAAE,eAAe,GAAG,gCAAgC,CAAC;CAClE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-ref.js","sourceRoot":"","sources":["../../../../src/client/api/schema/template-ref.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TemplatingChatMessage } from './templating-chat-message.js';
|
|
2
2
|
/**
|
|
3
3
|
* Representation of the 'Template' schema.
|
|
4
4
|
* @example {
|
|
5
5
|
* "template": [
|
|
6
6
|
* {
|
|
7
7
|
* "role": "user",
|
|
8
|
-
* "content": "How can the features of AI in SAP BTP
|
|
8
|
+
* "content": "How can the features of AI in SAP BTP specifically {{?groundingOutput}}, be applied to {{?inputContext}}"
|
|
9
9
|
* }
|
|
10
10
|
* ],
|
|
11
11
|
* "defaults": {
|
|
@@ -17,7 +17,7 @@ export type Template = {
|
|
|
17
17
|
/**
|
|
18
18
|
* A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.
|
|
19
19
|
*/
|
|
20
|
-
template:
|
|
20
|
+
template: TemplatingChatMessage;
|
|
21
21
|
/**
|
|
22
22
|
* Optional default values for the template. If a parameter has no default it is required.
|
|
23
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templating-chat-message.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/templating-chat-message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templating-chat-message.js","sourceRoot":"","sources":["../../../../src/client/api/schema/templating-chat-message.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Template } from './template.js';
|
|
2
|
+
import type { TemplateRef } from './template-ref.js';
|
|
2
3
|
/**
|
|
3
4
|
* Representation of the 'TemplatingModuleConfig' schema.
|
|
4
5
|
*/
|
|
5
|
-
export type TemplatingModuleConfig = Template;
|
|
6
|
+
export type TemplatingModuleConfig = Template | TemplateRef;
|
|
6
7
|
//# sourceMappingURL=templating-module-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templating-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/templating-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"templating-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/templating-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-response.js","sourceRoot":"","sources":["../src/orchestration-response.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAKJ;IAJ5B;;OAEG;IACa,IAAI,CAAyB;IAC7C,YAA4B,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;QACnD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"orchestration-response.js","sourceRoot":"","sources":["../src/orchestration-response.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAKJ;IAJ5B;;OAEG;IACa,IAAI,CAAyB;IAC7C,YAA4B,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;QACnD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,KAAM,CAAC;IAC/C,CAAC;IACD;;;;OAIG;IACH,eAAe,CAAC,WAAW,GAAG,CAAC;QAC7B,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,EAAE,aAAa,CAAC;IAC7E,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,WAAW,GAAG,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC;QACpE,IACE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,EAAE;YAC/B,MAAM,EAAE,aAAa,KAAK,gBAAgB,EAC1C,CAAC;YACD,MAAM,IAAI,KAAK,CACb,mIAAmI,CACpI,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;IAClC,CAAC;IAEO,UAAU;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;IAChD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/orchestration",
|
|
3
|
-
"version": "1.3.1-
|
|
3
|
+
"version": "1.3.1-20241205013157.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@sap-cloud-sdk/http-client": "^3.24.0",
|
|
24
|
-
"@sap-ai-sdk/core": "^1.3.1-
|
|
25
|
-
"@sap-ai-sdk/ai-api": "^1.3.1-
|
|
24
|
+
"@sap-ai-sdk/core": "^1.3.1-20241205013157.0",
|
|
25
|
+
"@sap-ai-sdk/ai-api": "^1.3.1-20241205013157.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"compile": "tsc",
|