@sap-ai-sdk/orchestration 1.2.1-20241107013054.0 → 1.2.1-20241109013048.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 (88) hide show
  1. package/dist/client/api/schema/azure-content-safety-filter-config.d.ts +1 -1
  2. package/dist/client/api/schema/azure-content-safety.d.ts +3 -3
  3. package/dist/client/api/schema/azure-content-safety.d.ts.map +1 -1
  4. package/dist/client/api/schema/azure-threshold.d.ts +1 -1
  5. package/dist/client/api/schema/chat-delta.d.ts +8 -0
  6. package/dist/client/api/schema/chat-delta.d.ts.map +1 -0
  7. package/dist/client/api/schema/{grounding-filter.js → chat-delta.js} +1 -1
  8. package/dist/client/api/schema/chat-delta.js.map +1 -0
  9. package/dist/client/api/schema/chat-message.d.ts +0 -3
  10. package/dist/client/api/schema/chat-message.d.ts.map +1 -1
  11. package/dist/client/api/schema/completion-post-request.d.ts +1 -2
  12. package/dist/client/api/schema/completion-post-request.d.ts.map +1 -1
  13. package/dist/client/api/schema/completion-post-response-streaming.d.ts +14 -0
  14. package/dist/client/api/schema/completion-post-response-streaming.d.ts.map +1 -0
  15. package/dist/client/api/schema/completion-post-response-streaming.js +2 -0
  16. package/dist/client/api/schema/completion-post-response-streaming.js.map +1 -0
  17. package/dist/client/api/schema/completion-post-response.d.ts +1 -1
  18. package/dist/client/api/schema/dpi-config.d.ts +2 -2
  19. package/dist/client/api/schema/dpi-entities.d.ts +1 -1
  20. package/dist/client/api/schema/dpi-entity-config.d.ts +1 -1
  21. package/dist/client/api/schema/error-response.d.ts +1 -1
  22. package/dist/client/api/schema/filtering-module-config.d.ts +8 -7
  23. package/dist/client/api/schema/filtering-module-config.d.ts.map +1 -1
  24. package/dist/client/api/schema/filtering-stream-options.d.ts +11 -0
  25. package/dist/client/api/schema/filtering-stream-options.d.ts.map +1 -0
  26. package/dist/client/api/schema/filtering-stream-options.js +7 -0
  27. package/dist/client/api/schema/filtering-stream-options.js.map +1 -0
  28. package/dist/client/api/schema/generic-module-result.d.ts +3 -3
  29. package/dist/client/api/schema/global-stream-options.d.ts +13 -0
  30. package/dist/client/api/schema/global-stream-options.d.ts.map +1 -0
  31. package/dist/client/api/schema/global-stream-options.js +7 -0
  32. package/dist/client/api/schema/global-stream-options.js.map +1 -0
  33. package/dist/client/api/schema/index.d.ts +10 -3
  34. package/dist/client/api/schema/index.d.ts.map +1 -1
  35. package/dist/client/api/schema/index.js +10 -3
  36. package/dist/client/api/schema/index.js.map +1 -1
  37. package/dist/client/api/schema/{filtering-config.d.ts → input-filtering-config.d.ts} +4 -4
  38. package/dist/client/api/schema/input-filtering-config.d.ts.map +1 -0
  39. package/dist/client/api/schema/input-filtering-config.js +2 -0
  40. package/dist/client/api/schema/input-filtering-config.js.map +1 -0
  41. package/dist/client/api/schema/llm-choice-streaming.d.ts +20 -0
  42. package/dist/client/api/schema/llm-choice-streaming.d.ts.map +1 -0
  43. package/dist/client/api/schema/llm-choice-streaming.js +2 -0
  44. package/dist/client/api/schema/llm-choice-streaming.js.map +1 -0
  45. package/dist/client/api/schema/llm-choice.d.ts +3 -3
  46. package/dist/client/api/schema/llm-module-config.d.ts +2 -2
  47. package/dist/client/api/schema/llm-module-result-streaming.d.ts +33 -0
  48. package/dist/client/api/schema/llm-module-result-streaming.d.ts.map +1 -0
  49. package/dist/client/api/schema/llm-module-result-streaming.js +2 -0
  50. package/dist/client/api/schema/llm-module-result-streaming.js.map +1 -0
  51. package/dist/client/api/schema/llm-module-result-synchronous.d.ts +38 -0
  52. package/dist/client/api/schema/llm-module-result-synchronous.d.ts.map +1 -0
  53. package/dist/client/api/schema/llm-module-result-synchronous.js +2 -0
  54. package/dist/client/api/schema/llm-module-result-synchronous.js.map +1 -0
  55. package/dist/client/api/schema/masking-module-config.d.ts +2 -2
  56. package/dist/client/api/schema/masking-module-config.d.ts.map +1 -1
  57. package/dist/client/api/schema/module-configs.d.ts +0 -2
  58. package/dist/client/api/schema/module-configs.d.ts.map +1 -1
  59. package/dist/client/api/schema/module-results.d.ts +2 -3
  60. package/dist/client/api/schema/module-results.d.ts.map +1 -1
  61. package/dist/client/api/schema/output-filtering-config.d.ts +12 -0
  62. package/dist/client/api/schema/output-filtering-config.d.ts.map +1 -0
  63. package/dist/client/api/schema/output-filtering-config.js +2 -0
  64. package/dist/client/api/schema/output-filtering-config.js.map +1 -0
  65. package/dist/client/api/schema/template.d.ts +26 -0
  66. package/dist/client/api/schema/template.d.ts.map +1 -0
  67. package/dist/client/api/schema/template.js +2 -0
  68. package/dist/client/api/schema/template.js.map +1 -0
  69. package/dist/client/api/schema/templating-module-config.d.ts +2 -22
  70. package/dist/client/api/schema/templating-module-config.d.ts.map +1 -1
  71. package/dist/client/api/schema/token-usage.d.ts +4 -4
  72. package/dist/index.d.ts +1 -1
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js.map +1 -1
  75. package/dist/orchestration-filter-utility.d.ts +2 -2
  76. package/dist/orchestration-filter-utility.d.ts.map +1 -1
  77. package/dist/orchestration-filter-utility.js.map +1 -1
  78. package/package.json +3 -3
  79. package/dist/client/api/schema/filtering-config.d.ts.map +0 -1
  80. package/dist/client/api/schema/filtering-config.js +0 -2
  81. package/dist/client/api/schema/filtering-config.js.map +0 -1
  82. package/dist/client/api/schema/grounding-filter.d.ts +0 -36
  83. package/dist/client/api/schema/grounding-filter.d.ts.map +0 -1
  84. package/dist/client/api/schema/grounding-filter.js.map +0 -1
  85. package/dist/client/api/schema/grounding-module-config.d.ts +0 -26
  86. package/dist/client/api/schema/grounding-module-config.d.ts.map +0 -1
  87. package/dist/client/api/schema/grounding-module-config.js +0 -2
  88. package/dist/client/api/schema/grounding-module-config.js.map +0 -1
@@ -4,7 +4,7 @@ import type { AzureContentSafety } from './azure-content-safety.js';
4
4
  */
5
5
  export type AzureContentSafetyFilterConfig = {
6
6
  /**
7
- * String represents name of the filter provider.
7
+ * String represents name of the filter provider
8
8
  * @example "azure_content_safety"
9
9
  */
10
10
  type: 'azure_content_safety';
@@ -1,11 +1,11 @@
1
1
  import type { AzureThreshold } from './azure-threshold.js';
2
2
  /**
3
- * Filter configuration for Azure Content Safety.
3
+ * Filter configuration for Azure Content Safety
4
4
  */
5
- export interface AzureContentSafety {
5
+ export type AzureContentSafety = {
6
6
  Hate?: AzureThreshold;
7
7
  SelfHarm?: AzureThreshold;
8
8
  Sexual?: AzureThreshold;
9
9
  Violence?: AzureThreshold;
10
- }
10
+ };
11
11
  //# sourceMappingURL=azure-content-safety.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"azure-content-safety.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/azure-content-safety.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B"}
1
+ {"version":3,"file":"azure-content-safety.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/azure-content-safety.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Representation of the 'AzureThreshold' schema.
2
+ * Threshold for the filter. Setting it to `0` blocks content with low severity, whereas `6` is the most permissive and blocks only the highest severity
3
3
  */
4
4
  export type AzureThreshold = 0 | 2 | 4 | 6;
5
5
  //# sourceMappingURL=azure-threshold.d.ts.map
@@ -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"}
@@ -4,4 +4,4 @@
4
4
  * This is a generated file powered by the SAP Cloud SDK for JavaScript.
5
5
  */
6
6
  export {};
7
- //# sourceMappingURL=grounding-filter.js.map
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"}
@@ -6,9 +6,6 @@ export type ChatMessage = {
6
6
  * @example "user"
7
7
  */
8
8
  role: string;
9
- /**
10
- * @example "What is SAP S/4HANA?"
11
- */
12
9
  content: string;
13
10
  } & Record<string, any>;
14
11
  //# sourceMappingURL=chat-message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-message.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/chat-message.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"chat-message.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/chat-message.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -7,13 +7,12 @@ export type CompletionPostRequest = {
7
7
  orchestration_config: OrchestrationConfig;
8
8
  /**
9
9
  * @example {
10
- * "groundingInput": "What is SAP Joule?",
11
10
  * "inputContext": "optimizing supply chain management"
12
11
  * }
13
12
  */
14
13
  input_params?: Record<string, string>;
15
14
  /**
16
- * 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.
15
+ * 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
17
16
  */
18
17
  messages_history?: ChatMessages;
19
18
  } & Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"completion-post-request.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/completion-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,mBAAmB,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC;CACjC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"completion-post-request.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/completion-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,mBAAmB,CAAC;IAC1C;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC;CACjC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -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":""}
@@ -5,7 +5,7 @@ import type { LlmModuleResult } from './llm-module-result.js';
5
5
  */
6
6
  export type CompletionPostResponse = {
7
7
  /**
8
- * ID of the request.
8
+ * ID of the request
9
9
  * @example "d4a67ea1-2bf9-4df7-8105-d48203ccff76"
10
10
  */
11
11
  request_id: string;
@@ -4,11 +4,11 @@ import type { DpiEntityConfig } from './dpi-entity-config.js';
4
4
  */
5
5
  export type DpiConfig = {
6
6
  /**
7
- * Type of masking service provider.
7
+ * Type of masking service provider
8
8
  */
9
9
  type: 'sap_data_privacy_integration';
10
10
  /**
11
- * Type of masking method to be used.
11
+ * Type of masking method to be used
12
12
  */
13
13
  method: 'anonymization' | 'pseudonymization';
14
14
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Default entities supported by data privacy and integration service.
2
+ * Default entities supported by data privacy and integration service
3
3
  */
4
4
  export type DpiEntities = 'profile-person' | 'profile-org' | 'profile-university' | 'profile-location' | 'profile-email' | 'profile-phone' | 'profile-address' | 'profile-sapids-internal' | 'profile-sapids-public' | 'profile-url' | 'profile-username-password' | 'profile-nationalid' | 'profile-iban' | 'profile-ssn' | 'profile-credit-card-number' | 'profile-passport' | 'profile-driverlicense' | 'profile-nationality' | 'profile-religious-group' | 'profile-political-group' | 'profile-pronouns-gender' | 'profile-gender' | 'profile-sexual-orientation' | 'profile-trade-union' | 'profile-sensitive-data';
5
5
  //# sourceMappingURL=dpi-entities.d.ts.map
@@ -4,7 +4,7 @@ import type { DpiEntities } from './dpi-entities.js';
4
4
  */
5
5
  export type DpiEntityConfig = {
6
6
  /**
7
- * Type of entity to be masked.
7
+ * Type of entity to be masked
8
8
  */
9
9
  type: DpiEntities;
10
10
  } & Record<string, any>;
@@ -16,7 +16,7 @@ export type ErrorResponse = {
16
16
  */
17
17
  message: string;
18
18
  /**
19
- * Where the error occurred.
19
+ * Where the error occurred
20
20
  * @example "LLM Module"
21
21
  */
22
22
  location: string;
@@ -1,15 +1,16 @@
1
- import type { FilteringConfig } from './filtering-config.js';
1
+ import type { InputFilteringConfig } from './input-filtering-config.js';
2
+ import type { OutputFilteringConfig } from './output-filtering-config.js';
2
3
  /**
3
4
  * Representation of the 'FilteringModuleConfig' schema.
4
5
  */
5
- export interface FilteringModuleConfig {
6
+ export type FilteringModuleConfig = {
6
7
  /**
7
- * List of provider type and filters.
8
+ * List of provider type and filters
8
9
  */
9
- input?: FilteringConfig;
10
+ input?: InputFilteringConfig;
10
11
  /**
11
- * List of provider type and filters.
12
+ * List of provider type and filters
12
13
  */
13
- output?: FilteringConfig;
14
- }
14
+ output?: OutputFilteringConfig;
15
+ };
15
16
  //# sourceMappingURL=filtering-module-config.d.ts.map
@@ -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,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
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"}
@@ -1,14 +1,14 @@
1
1
  /**
2
- * Generic module result.
2
+ * Generic module result
3
3
  */
4
4
  export type GenericModuleResult = {
5
5
  /**
6
- * Some message created from the module.
6
+ * Some message created from the module
7
7
  * @example "Input to LLM is masked successfully."
8
8
  */
9
9
  message: string;
10
10
  /**
11
- * Additional data object from the module.
11
+ * Additional data object from the module
12
12
  */
13
13
  data?: Record<string, any>;
14
14
  } & Record<string, any>;
@@ -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,18 +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
- export * from './filtering-config.js';
22
+ export * from './input-filtering-config.js';
23
+ export * from './output-filtering-config.js';
24
+ export * from './filtering-stream-options.js';
16
25
  export * from './filter-config.js';
17
26
  export * from './azure-content-safety-filter-config.js';
18
27
  export * from './azure-content-safety.js';
@@ -22,7 +31,5 @@ export * from './masking-provider-config.js';
22
31
  export * from './dpi-config.js';
23
32
  export * from './dpi-entity-config.js';
24
33
  export * from './dpi-entities.js';
25
- export * from './grounding-module-config.js';
26
- export * from './grounding-filter.js';
27
34
  export * from './error-response.js';
28
35
  //# sourceMappingURL=index.d.ts.map
@@ -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,uBAAuB,CAAC;AACtC,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,uBAAuB,CAAC;AACtC,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,18 +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
- export * from './filtering-config.js';
27
+ export * from './input-filtering-config.js';
28
+ export * from './output-filtering-config.js';
29
+ export * from './filtering-stream-options.js';
21
30
  export * from './filter-config.js';
22
31
  export * from './azure-content-safety-filter-config.js';
23
32
  export * from './azure-content-safety.js';
@@ -27,7 +36,5 @@ export * from './masking-provider-config.js';
27
36
  export * from './dpi-config.js';
28
37
  export * from './dpi-entity-config.js';
29
38
  export * from './dpi-entities.js';
30
- export * from './grounding-module-config.js';
31
- export * from './grounding-filter.js';
32
39
  export * from './error-response.js';
33
40
  //# sourceMappingURL=index.js.map
@@ -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,uBAAuB,CAAC;AACtC,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,uBAAuB,CAAC;AACtC,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"}
@@ -1,12 +1,12 @@
1
1
  import type { FilterConfig } from './filter-config.js';
2
2
  /**
3
- * Representation of the 'FilteringConfig' schema.
3
+ * Representation of the 'InputFilteringConfig' schema.
4
4
  */
5
- export type FilteringConfig = {
5
+ export type InputFilteringConfig = {
6
6
  /**
7
7
  * Configuration for content filtering services that should be used for the given filtering step (input filtering or output filtering).
8
8
  * Min Items: 1.
9
9
  */
10
10
  filters: FilterConfig[];
11
- } & Record<string, any>;
12
- //# sourceMappingURL=filtering-config.d.ts.map
11
+ };
12
+ //# sourceMappingURL=input-filtering-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-filtering-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/input-filtering-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=input-filtering-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-filtering-config.js","sourceRoot":"","sources":["../../../../src/client/api/schema/input-filtering-config.ts"],"names":[],"mappings":""}
@@ -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":""}
@@ -4,16 +4,16 @@ import type { ChatMessage } from './chat-message.js';
4
4
  */
5
5
  export type LlmChoice = {
6
6
  /**
7
- * Index of the choice.
7
+ * Index of the choice
8
8
  */
9
9
  index: number;
10
10
  message: ChatMessage;
11
11
  /**
12
- * Log probabilities.
12
+ * Log probabilities
13
13
  */
14
14
  logprobs?: Record<string, number[]>;
15
15
  /**
16
- * Reason the model stopped generating tokens. 'stop' if the model hit a natural stop point or a provided stop sequence, 'length' if the maximum token number was reached, 'content_filter' if content was omitted due to a filter enforced by the LLM model provider or the content filtering module.
16
+ * Reason the model stopped generating tokens. 'stop' if the model hit a natural stop point or a provided stop sequence, 'length' if the maximum token number was reached, 'content_filter' if content was omitted due to a filter enforced by the LLM model provider or the content filtering module
17
17
  * @example "stop"
18
18
  */
19
19
  finish_reason: string;
@@ -3,12 +3,12 @@
3
3
  */
4
4
  export type LlmModuleConfig = {
5
5
  /**
6
- * Model name as in LLM Access configuration.
6
+ * Model name as in LLM Access configuration
7
7
  * @example "gpt-4"
8
8
  */
9
9
  model_name: string;
10
10
  /**
11
- * Model parameters.
11
+ * Model parameters
12
12
  * @example {
13
13
  * "max_tokens": 300,
14
14
  * "temperature": 0.1,
@@ -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":""}
@@ -2,11 +2,11 @@ import type { MaskingProviderConfig } from './masking-provider-config.js';
2
2
  /**
3
3
  * Representation of the 'MaskingModuleConfig' schema.
4
4
  */
5
- export interface MaskingModuleConfig {
5
+ export type MaskingModuleConfig = {
6
6
  /**
7
7
  * List of masking service providers
8
8
  * Min Items: 1.
9
9
  */
10
10
  masking_providers: MaskingProviderConfig[];
11
- }
11
+ };
12
12
  //# sourceMappingURL=masking-module-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"masking-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/masking-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;CAC5C"}
1
+ {"version":3,"file":"masking-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/masking-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,iBAAiB,EAAE,qBAAqB,EAAE,CAAC;CAC5C,CAAC"}
@@ -2,7 +2,6 @@ import type { LlmModuleConfig } from './llm-module-config.js';
2
2
  import type { TemplatingModuleConfig } from './templating-module-config.js';
3
3
  import type { FilteringModuleConfig } from './filtering-module-config.js';
4
4
  import type { MaskingModuleConfig } from './masking-module-config.js';
5
- import type { GroundingModuleConfig } from './grounding-module-config.js';
6
5
  /**
7
6
  * Representation of the 'ModuleConfigs' schema.
8
7
  */
@@ -11,6 +10,5 @@ export type ModuleConfigs = {
11
10
  templating_module_config: TemplatingModuleConfig;
12
11
  filtering_module_config?: FilteringModuleConfig;
13
12
  masking_module_config?: MaskingModuleConfig;
14
- grounding_module_config?: GroundingModuleConfig;
15
13
  } & Record<string, any>;
16
14
  //# sourceMappingURL=module-configs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-configs.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/module-configs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iBAAiB,EAAE,eAAe,CAAC;IACnC,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,uBAAuB,CAAC,EAAE,qBAAqB,CAAC;IAChD,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;IAC5C,uBAAuB,CAAC,EAAE,qBAAqB,CAAC;CACjD,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"module-configs.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/module-configs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iBAAiB,EAAE,eAAe,CAAC;IACnC,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,uBAAuB,CAAC,EAAE,qBAAqB,CAAC;IAChD,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;CAC7C,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -5,13 +5,12 @@ import type { LlmChoice } from './llm-choice.js';
5
5
  /**
6
6
  * Results of each module.
7
7
  */
8
- export interface ModuleResults {
9
- grounding?: GenericModuleResult;
8
+ export type ModuleResults = {
10
9
  templating?: ChatMessages;
11
10
  input_masking?: GenericModuleResult;
12
11
  input_filtering?: GenericModuleResult;
13
12
  llm?: LlmModuleResult;
14
13
  output_filtering?: GenericModuleResult;
15
14
  output_unmasking?: LlmChoice[];
16
- }
15
+ };
17
16
  //# 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,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,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,SAAS,EAAE,CAAC;CAChC"}
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,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,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,SAAS,EAAE,CAAC;CAChC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { FilterConfig } from './filter-config.js';
2
+ /**
3
+ * Representation of the 'OutputFilteringConfig' schema.
4
+ */
5
+ export type OutputFilteringConfig = {
6
+ /**
7
+ * Configuration for content filtering services that should be used for the given filtering step (input filtering or output filtering).
8
+ * Min Items: 1.
9
+ */
10
+ filters: FilterConfig[];
11
+ };
12
+ //# sourceMappingURL=output-filtering-config.d.ts.map
@@ -0,0 +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;CACzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=output-filtering-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output-filtering-config.js","sourceRoot":"","sources":["../../../../src/client/api/schema/output-filtering-config.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"}
@@ -1,19 +1,19 @@
1
1
  /**
2
- * Usage of tokens in the response.
2
+ * Usage of tokens in the response
3
3
  */
4
4
  export type TokenUsage = {
5
5
  /**
6
- * Number of tokens used in the input.
6
+ * Number of tokens used in the input
7
7
  * @example 20
8
8
  */
9
9
  completion_tokens: number;
10
10
  /**
11
- * Number of tokens used in the output.
11
+ * Number of tokens used in the output
12
12
  * @example 30
13
13
  */
14
14
  prompt_tokens: number;
15
15
  /**
16
- * Total number of tokens used.
16
+ * Total number of tokens used
17
17
  * @example 50
18
18
  */
19
19
  total_tokens: number;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { CompletionPostResponse, ChatMessages, TokenUsage, TemplatingModuleConfig, OrchestrationConfig, ModuleResults, ModuleConfigs, MaskingModuleConfig, MaskingProviderConfig, LlmModuleResult, LlmChoice, GenericModuleResult, FilteringModuleConfig, FilteringConfig, FilterConfig, ErrorResponse, DpiEntities, DpiEntityConfig, DpiConfig, CompletionPostRequest, ChatMessage, AzureThreshold, AzureContentSafety, AzureContentSafetyFilterConfig } from './client/api/schema/index.js';
1
+ export type { CompletionPostResponse, ChatMessages, TokenUsage, TemplatingModuleConfig, OrchestrationConfig, ModuleResults, ModuleConfigs, MaskingModuleConfig, MaskingProviderConfig, LlmModuleResult, LlmChoice, GenericModuleResult, FilteringModuleConfig, InputFilteringConfig, OutputFilteringConfig, FilterConfig, ErrorResponse, DpiEntities, DpiEntityConfig, DpiConfig, CompletionPostRequest, ChatMessage, AzureThreshold, AzureContentSafety, AzureContentSafetyFilterConfig } from './client/api/schema/index.js';
2
2
  export type { OrchestrationModuleConfig, LlmModuleConfig, Prompt } from './orchestration-types.js';
3
3
  export { OrchestrationClient } from './orchestration-client.js';
4
4
  export { buildAzureContentFilter } from './orchestration-filter-utility.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,sBAAsB,EACtB,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,SAAS,EACT,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,8BAA8B,CAAC;AAEtC,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,MAAM,EACP,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,sBAAsB,EACtB,YAAY,EACZ,UAAU,EACV,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,SAAS,EACT,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,8BAA8B,CAAC;AAEtC,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,MAAM,EACP,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { AzureContentSafety, FilteringConfig } from './client/api/schema/index.js';
1
+ import type { AzureContentSafety, InputFilteringConfig, OutputFilteringConfig } from './client/api/schema/index.js';
2
2
  /**
3
3
  * Convenience function to create Azure content filters.
4
4
  * @param filter - Filtering configuration for Azure filter. If skipped, the default Azure content filter configuration is used.
5
5
  * @returns An object with the Azure filtering configuration.
6
6
  */
7
- export declare function buildAzureContentFilter(filter?: AzureContentSafety): FilteringConfig;
7
+ export declare function buildAzureContentFilter(filter?: AzureContentSafety): InputFilteringConfig | OutputFilteringConfig;
8
8
  //# sourceMappingURL=orchestration-filter-utility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orchestration-filter-utility.d.ts","sourceRoot":"","sources":["../src/orchestration-filter-utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EAChB,MAAM,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,eAAe,CAYjB"}
1
+ {"version":3,"file":"orchestration-filter-utility.d.ts","sourceRoot":"","sources":["../src/orchestration-filter-utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,oBAAoB,GAAG,qBAAqB,CAY9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"orchestration-filter-utility.js","sourceRoot":"","sources":["../src/orchestration-filter-utility.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAA2B;IAE3B,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,GAAG,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;aAClC;SACF;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"orchestration-filter-utility.js","sourceRoot":"","sources":["../src/orchestration-filter-utility.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAA2B;IAE3B,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,GAAG,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;aAClC;SACF;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ai-sdk/orchestration",
3
- "version": "1.2.1-20241107013054.0",
3
+ "version": "1.2.1-20241109013048.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-20241107013054.0",
26
- "@sap-ai-sdk/ai-api": "^1.2.1-20241107013054.0"
25
+ "@sap-ai-sdk/core": "^1.2.1-20241109013048.0",
26
+ "@sap-ai-sdk/ai-api": "^1.2.1-20241109013048.0"
27
27
  },
28
28
  "scripts": {
29
29
  "compile": "tsc",
@@ -1 +0,0 @@
1
- {"version":3,"file":"filtering-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/filtering-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=filtering-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filtering-config.js","sourceRoot":"","sources":["../../../../src/client/api/schema/filtering-config.ts"],"names":[],"mappings":""}
@@ -1,36 +0,0 @@
1
- /**
2
- * Representation of the 'GroundingFilter' schema.
3
- */
4
- export type GroundingFilter = {
5
- /**
6
- * @example "string"
7
- */
8
- id?: string;
9
- /**
10
- * @example {}
11
- */
12
- search_configuration?: Record<string, any>;
13
- /**
14
- * @example [
15
- * "*"
16
- * ]
17
- */
18
- data_repositories?: string[];
19
- /**
20
- * @example "help.sap.com"
21
- */
22
- data_repository_type?: 'vector' | 'help.sap.com';
23
- /**
24
- * @example []
25
- */
26
- data_repository_metadata?: Record<string, any>[];
27
- /**
28
- * @example []
29
- */
30
- document_metadata?: Record<string, any>[];
31
- /**
32
- * @example []
33
- */
34
- chunk_metadata?: Record<string, any>[];
35
- } & Record<string, any>;
36
- //# sourceMappingURL=grounding-filter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grounding-filter.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/grounding-filter.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;OAEG;IACH,oBAAoB,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;IACjD;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IACjD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;CACxC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"grounding-filter.js","sourceRoot":"","sources":["../../../../src/client/api/schema/grounding-filter.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,26 +0,0 @@
1
- import type { GroundingFilter } from './grounding-filter.js';
2
- /**
3
- * Representation of the 'GroundingModuleConfig' schema.
4
- */
5
- export type GroundingModuleConfig = {
6
- /**
7
- * @example "document_grounding_service"
8
- */
9
- grounding_service: 'document_grounding_service';
10
- grounding_service_configuration?: {
11
- /**
12
- * Document grounding service filters to be used.
13
- */
14
- filters?: GroundingFilter[];
15
- /**
16
- * Contains the input parameters used for grounding input questions.
17
- */
18
- grounding_input_parameters: string[];
19
- /**
20
- * Parameter name used for grounding output.
21
- * @example "groundingOutput"
22
- */
23
- grounding_output_parameter: string;
24
- } & Record<string, any>;
25
- } & Record<string, any>;
26
- //# sourceMappingURL=grounding-module-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grounding-module-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/grounding-module-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,iBAAiB,EAAE,4BAA4B,CAAC;IAChD,+BAA+B,CAAC,EAAE;QAChC;;WAEG;QACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;QAC5B;;WAEG;QACH,0BAA0B,EAAE,MAAM,EAAE,CAAC;QACrC;;;WAGG;QACH,0BAA0B,EAAE,MAAM,CAAC;KACpC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=grounding-module-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grounding-module-config.js","sourceRoot":"","sources":["../../../../src/client/api/schema/grounding-module-config.ts"],"names":[],"mappings":""}