@sap-ai-sdk/orchestration 1.2.1-20241108013105.0 → 1.2.1-20241110013101.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.
Files changed (41) hide show
  1. package/dist/client/api/schema/chat-delta.d.ts +8 -0
  2. package/dist/client/api/schema/chat-delta.d.ts.map +1 -0
  3. package/dist/client/api/schema/chat-delta.js +7 -0
  4. package/dist/client/api/schema/chat-delta.js.map +1 -0
  5. package/dist/client/api/schema/completion-post-response-streaming.d.ts +14 -0
  6. package/dist/client/api/schema/completion-post-response-streaming.d.ts.map +1 -0
  7. package/dist/client/api/schema/completion-post-response-streaming.js +2 -0
  8. package/dist/client/api/schema/completion-post-response-streaming.js.map +1 -0
  9. package/dist/client/api/schema/filtering-module-config.d.ts +4 -4
  10. package/dist/client/api/schema/filtering-module-config.d.ts.map +1 -1
  11. package/dist/client/api/schema/filtering-stream-options.d.ts +11 -0
  12. package/dist/client/api/schema/filtering-stream-options.d.ts.map +1 -0
  13. package/dist/client/api/schema/filtering-stream-options.js +7 -0
  14. package/dist/client/api/schema/filtering-stream-options.js.map +1 -0
  15. package/dist/client/api/schema/global-stream-options.d.ts +13 -0
  16. package/dist/client/api/schema/global-stream-options.d.ts.map +1 -0
  17. package/dist/client/api/schema/global-stream-options.js +7 -0
  18. package/dist/client/api/schema/global-stream-options.js.map +1 -0
  19. package/dist/client/api/schema/index.d.ts +8 -0
  20. package/dist/client/api/schema/index.d.ts.map +1 -1
  21. package/dist/client/api/schema/index.js +8 -0
  22. package/dist/client/api/schema/index.js.map +1 -1
  23. package/dist/client/api/schema/llm-choice-streaming.d.ts +20 -0
  24. package/dist/client/api/schema/llm-choice-streaming.d.ts.map +1 -0
  25. package/dist/client/api/schema/llm-choice-streaming.js +2 -0
  26. package/dist/client/api/schema/llm-choice-streaming.js.map +1 -0
  27. package/dist/client/api/schema/llm-module-result-streaming.d.ts +33 -0
  28. package/dist/client/api/schema/llm-module-result-streaming.d.ts.map +1 -0
  29. package/dist/client/api/schema/llm-module-result-streaming.js +2 -0
  30. package/dist/client/api/schema/llm-module-result-streaming.js.map +1 -0
  31. package/dist/client/api/schema/llm-module-result-synchronous.d.ts +38 -0
  32. package/dist/client/api/schema/llm-module-result-synchronous.d.ts.map +1 -0
  33. package/dist/client/api/schema/llm-module-result-synchronous.js +2 -0
  34. package/dist/client/api/schema/llm-module-result-synchronous.js.map +1 -0
  35. package/dist/client/api/schema/template.d.ts +26 -0
  36. package/dist/client/api/schema/template.d.ts.map +1 -0
  37. package/dist/client/api/schema/template.js +2 -0
  38. package/dist/client/api/schema/template.js.map +1 -0
  39. package/dist/client/api/schema/templating-module-config.d.ts +2 -22
  40. package/dist/client/api/schema/templating-module-config.d.ts.map +1 -1
  41. package/package.json +3 -3
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Representation of the 'ChatDelta' schema.
3
+ */
4
+ export type ChatDelta = {
5
+ role?: string;
6
+ content: string;
7
+ } & Record<string, any>;
8
+ //# sourceMappingURL=chat-delta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-delta.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/chat-delta.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2024 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
+ export {};
7
+ //# sourceMappingURL=chat-delta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-delta.js","sourceRoot":"","sources":["../../../../src/client/api/schema/chat-delta.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,14 @@
1
+ import type { ModuleResults } from './module-results.js';
2
+ import type { LLMModuleResultStreaming } from './llm-module-result-streaming.js';
3
+ /**
4
+ * Representation of the 'CompletionPostResponseStreaming' schema.
5
+ */
6
+ export type CompletionPostResponseStreaming = {
7
+ /**
8
+ * ID of the request
9
+ */
10
+ request_id: string;
11
+ module_results?: ModuleResults;
12
+ orchestration_result?: LLMModuleResultStreaming;
13
+ } & Record<string, any>;
14
+ //# sourceMappingURL=completion-post-response-streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completion-post-response-streaming.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/completion-post-response-streaming.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=completion-post-response-streaming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completion-post-response-streaming.js","sourceRoot":"","sources":["../../../../src/client/api/schema/completion-post-response-streaming.ts"],"names":[],"mappings":""}
@@ -1,15 +1,15 @@
1
- import { InputFilteringConfig } from './input-filtering-config.js';
2
- import { OutputFilteringConfig } from './output-filtering-config.js';
1
+ import type { InputFilteringConfig } from './input-filtering-config.js';
2
+ import type { OutputFilteringConfig } from './output-filtering-config.js';
3
3
  /**
4
4
  * Representation of the 'FilteringModuleConfig' schema.
5
5
  */
6
6
  export type FilteringModuleConfig = {
7
7
  /**
8
- * List of provider type and filters.
8
+ * List of provider type and filters
9
9
  */
10
10
  input?: InputFilteringConfig;
11
11
  /**
12
- * List of provider type and filters.
12
+ * List of provider type and filters
13
13
  */
14
14
  output?: OutputFilteringConfig;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"filtering-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/filtering-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"filtering-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/filtering-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Stream options for output filtering. Will be ignored if stream is false.
3
+ */
4
+ export type FilteringStreamOptions = {
5
+ /**
6
+ * Number of characters that should be additionally sent to content filtering services from previous chunks as additional context.
7
+ * Maximum: 10000.
8
+ */
9
+ overlap?: number;
10
+ };
11
+ //# sourceMappingURL=filtering-stream-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filtering-stream-options.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/filtering-stream-options.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2024 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
+ export {};
7
+ //# sourceMappingURL=filtering-stream-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filtering-stream-options.js","sourceRoot":"","sources":["../../../../src/client/api/schema/filtering-stream-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Options for streaming. Will be ignored if stream is false.
3
+ */
4
+ export type GlobalStreamOptions = {
5
+ /**
6
+ * Number of characters per chunk that post-LLM modules operate on.
7
+ * Default: 100.
8
+ * Maximum: 10000.
9
+ * Minimum: 1.
10
+ */
11
+ chunk_size?: number;
12
+ };
13
+ //# sourceMappingURL=global-stream-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-stream-options.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/global-stream-options.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2024 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
+ export {};
7
+ //# sourceMappingURL=global-stream-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-stream-options.js","sourceRoot":"","sources":["../../../../src/client/api/schema/global-stream-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,19 +1,27 @@
1
1
  export * from './completion-post-request.js';
2
2
  export * from './chat-messages.js';
3
3
  export * from './chat-message.js';
4
+ export * from './chat-delta.js';
4
5
  export * from './completion-post-response.js';
6
+ export * from './completion-post-response-streaming.js';
5
7
  export * from './orchestration-config.js';
6
8
  export * from './module-configs.js';
7
9
  export * from './module-results.js';
10
+ export * from './global-stream-options.js';
8
11
  export * from './llm-module-config.js';
9
12
  export * from './generic-module-result.js';
10
13
  export * from './llm-module-result.js';
14
+ export * from './llm-module-result-synchronous.js';
15
+ export * from './llm-module-result-streaming.js';
11
16
  export * from './llm-choice.js';
17
+ export * from './llm-choice-streaming.js';
12
18
  export * from './token-usage.js';
13
19
  export * from './templating-module-config.js';
20
+ export * from './template.js';
14
21
  export * from './filtering-module-config.js';
15
22
  export * from './input-filtering-config.js';
16
23
  export * from './output-filtering-config.js';
24
+ export * from './filtering-stream-options.js';
17
25
  export * from './filter-config.js';
18
26
  export * from './azure-content-safety-filter-config.js';
19
27
  export * from './azure-content-safety.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,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,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,qBAAqB,CAAC"}
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,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,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -6,19 +6,27 @@
6
6
  export * from './completion-post-request.js';
7
7
  export * from './chat-messages.js';
8
8
  export * from './chat-message.js';
9
+ export * from './chat-delta.js';
9
10
  export * from './completion-post-response.js';
11
+ export * from './completion-post-response-streaming.js';
10
12
  export * from './orchestration-config.js';
11
13
  export * from './module-configs.js';
12
14
  export * from './module-results.js';
15
+ export * from './global-stream-options.js';
13
16
  export * from './llm-module-config.js';
14
17
  export * from './generic-module-result.js';
15
18
  export * from './llm-module-result.js';
19
+ export * from './llm-module-result-synchronous.js';
20
+ export * from './llm-module-result-streaming.js';
16
21
  export * from './llm-choice.js';
22
+ export * from './llm-choice-streaming.js';
17
23
  export * from './token-usage.js';
18
24
  export * from './templating-module-config.js';
25
+ export * from './template.js';
19
26
  export * from './filtering-module-config.js';
20
27
  export * from './input-filtering-config.js';
21
28
  export * from './output-filtering-config.js';
29
+ export * from './filtering-stream-options.js';
22
30
  export * from './filter-config.js';
23
31
  export * from './azure-content-safety-filter-config.js';
24
32
  export * from './azure-content-safety.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,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,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,qBAAqB,CAAC"}
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,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { ChatDelta } from './chat-delta.js';
2
+ /**
3
+ * Representation of the 'LLMChoiceStreaming' schema.
4
+ */
5
+ export type LLMChoiceStreaming = {
6
+ /**
7
+ * Index of the choice
8
+ */
9
+ index: number;
10
+ delta: ChatDelta;
11
+ /**
12
+ * Log probabilities
13
+ */
14
+ logprobs?: Record<string, number[]>;
15
+ /**
16
+ * Reason for stopping the model
17
+ */
18
+ finish_reason?: string;
19
+ } & Record<string, any>;
20
+ //# sourceMappingURL=llm-choice-streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-choice-streaming.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-choice-streaming.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACpC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=llm-choice-streaming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-choice-streaming.js","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-choice-streaming.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import type { LLMChoiceStreaming } from './llm-choice-streaming.js';
2
+ import type { TokenUsage } from './token-usage.js';
3
+ /**
4
+ * Output of LLM module. Follows the OpenAI spec.
5
+ */
6
+ export type LLMModuleResultStreaming = {
7
+ /**
8
+ * ID of the response
9
+ */
10
+ id: string;
11
+ /**
12
+ * Object type
13
+ */
14
+ object: string;
15
+ /**
16
+ * Unix timestamp
17
+ */
18
+ created: number;
19
+ /**
20
+ * Model name
21
+ */
22
+ model: string;
23
+ /**
24
+ * System fingerprint
25
+ */
26
+ system_fingerprint?: string;
27
+ /**
28
+ * Choices
29
+ */
30
+ choices: LLMChoiceStreaming[];
31
+ usage?: TokenUsage;
32
+ } & Record<string, any>;
33
+ //# sourceMappingURL=llm-module-result-streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-module-result-streaming.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result-streaming.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=llm-module-result-streaming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-module-result-streaming.js","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result-streaming.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ import type { LlmChoice } from './llm-choice.js';
2
+ import type { TokenUsage } from './token-usage.js';
3
+ /**
4
+ * Output of LLM module. Follows the OpenAI spec.
5
+ */
6
+ export type LLMModuleResultSynchronous = {
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>;
38
+ //# sourceMappingURL=llm-module-result-synchronous.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-module-result-synchronous.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result-synchronous.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,EAAE,UAAU,CAAC;CACnB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=llm-module-result-synchronous.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-module-result-synchronous.js","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result-synchronous.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { ChatMessages } from './chat-messages.js';
2
+ /**
3
+ * Representation of the 'Template' schema.
4
+ * @example {
5
+ * "template": [
6
+ * {
7
+ * "role": "user",
8
+ * "content": "How can the features of AI in SAP BTP specifially {​{?product}}, be applied to {​{?inputContext}}"
9
+ * }
10
+ * ],
11
+ * "defaults": {
12
+ * "inputContext": "The default text that will be used in the template if inputContext is not set"
13
+ * }
14
+ * }
15
+ */
16
+ export type Template = {
17
+ /**
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
+ */
20
+ template: ChatMessages;
21
+ /**
22
+ * Optional default values for the template. If a parameter has no default it is required.
23
+ */
24
+ defaults?: Record<string, any>;
25
+ } & Record<string, any>;
26
+ //# sourceMappingURL=template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/client/api/schema/template.ts"],"names":[],"mappings":""}
@@ -1,26 +1,6 @@
1
- import type { ChatMessages } from './chat-messages.js';
1
+ import type { Template } from './template.js';
2
2
  /**
3
3
  * Representation of the 'TemplatingModuleConfig' schema.
4
- * @example {
5
- * "template": [
6
- * {
7
- * "role": "user",
8
- * "content": "How can the features of AI in SAP BTP specifially {{?groundingOutput}}, be applied to {{?inputContext}}"
9
- * }
10
- * ],
11
- * "defaults": {
12
- * "inputContext": "The default text that will be used in the template if inputContext is not set"
13
- * }
14
- * }
15
4
  */
16
- export type TemplatingModuleConfig = {
17
- /**
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
- */
20
- template: ChatMessages;
21
- /**
22
- * Optional default values for the template. If a parameter has no default it is required.
23
- */
24
- defaults?: Record<string, any>;
25
- } & Record<string, any>;
5
+ export type TemplatingModuleConfig = Template;
26
6
  //# 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,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,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;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ai-sdk/orchestration",
3
- "version": "1.2.1-20241108013105.0",
3
+ "version": "1.2.1-20241110013101.0",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "@sap-cloud-sdk/http-client": "^3.22.2",
24
24
  "@sap-cloud-sdk/util": "^3.22.2",
25
- "@sap-ai-sdk/core": "^1.2.1-20241108013105.0",
26
- "@sap-ai-sdk/ai-api": "^1.2.1-20241108013105.0"
25
+ "@sap-ai-sdk/core": "^1.2.1-20241110013101.0",
26
+ "@sap-ai-sdk/ai-api": "^1.2.1-20241110013101.0"
27
27
  },
28
28
  "scripts": {
29
29
  "compile": "tsc",