@sap-ai-sdk/orchestration 1.15.1-20250630013254.0 → 1.15.1-20250701013320.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/api/schema/azure-content-safety-input-filter-config.d.ts +13 -0
- package/dist/client/api/schema/azure-content-safety-input-filter-config.d.ts.map +1 -0
- package/dist/client/api/schema/azure-content-safety-input-filter-config.js +2 -0
- package/dist/client/api/schema/azure-content-safety-input-filter-config.js.map +1 -0
- package/dist/client/api/schema/azure-content-safety-input.d.ts +15 -0
- package/dist/client/api/schema/azure-content-safety-input.d.ts.map +1 -0
- package/dist/client/api/schema/azure-content-safety-input.js +2 -0
- package/dist/client/api/schema/azure-content-safety-input.js.map +1 -0
- package/dist/client/api/schema/azure-content-safety-output-filter-config.d.ts +13 -0
- package/dist/client/api/schema/azure-content-safety-output-filter-config.d.ts.map +1 -0
- package/dist/client/api/schema/azure-content-safety-output-filter-config.js +2 -0
- package/dist/client/api/schema/azure-content-safety-output-filter-config.js.map +1 -0
- package/dist/client/api/schema/{azure-content-safety.d.ts → azure-content-safety-output.d.ts} +2 -2
- package/dist/client/api/schema/azure-content-safety-output.d.ts.map +1 -0
- package/dist/client/api/schema/azure-content-safety-output.js +2 -0
- package/dist/client/api/schema/azure-content-safety-output.js.map +1 -0
- package/dist/client/api/schema/chat-completion-token-logprob.d.ts +37 -0
- package/dist/client/api/schema/chat-completion-token-logprob.d.ts.map +1 -0
- package/dist/client/api/schema/chat-completion-token-logprob.js +7 -0
- package/dist/client/api/schema/chat-completion-token-logprob.js.map +1 -0
- package/dist/client/api/schema/choice-logprobs.d.ts +15 -0
- package/dist/client/api/schema/choice-logprobs.d.ts.map +1 -0
- package/dist/client/api/schema/choice-logprobs.js +2 -0
- package/dist/client/api/schema/choice-logprobs.js.map +1 -0
- package/dist/client/api/schema/completion-post-response-streaming.d.ts +2 -2
- package/dist/client/api/schema/completion-post-response-streaming.d.ts.map +1 -1
- package/dist/client/api/schema/dpi-custom-entity.d.ts +15 -0
- package/dist/client/api/schema/dpi-custom-entity.d.ts.map +1 -0
- package/dist/client/api/schema/dpi-custom-entity.js +2 -0
- package/dist/client/api/schema/dpi-custom-entity.js.map +1 -0
- package/dist/client/api/schema/dpi-entities.d.ts +1 -1
- package/dist/client/api/schema/dpi-entities.d.ts.map +1 -1
- package/dist/client/api/schema/dpi-entity-config.d.ts +3 -7
- package/dist/client/api/schema/dpi-entity-config.d.ts.map +1 -1
- package/dist/client/api/schema/dpi-method-constant.d.ts +12 -0
- package/dist/client/api/schema/dpi-method-constant.d.ts.map +1 -0
- package/dist/client/api/schema/dpi-method-constant.js +7 -0
- package/dist/client/api/schema/dpi-method-constant.js.map +1 -0
- package/dist/client/api/schema/dpi-method-fabricated-data.d.ts +7 -0
- package/dist/client/api/schema/dpi-method-fabricated-data.d.ts.map +1 -0
- package/dist/client/api/schema/dpi-method-fabricated-data.js +7 -0
- package/dist/client/api/schema/dpi-method-fabricated-data.js.map +1 -0
- package/dist/client/api/schema/dpi-standard-entity.d.ts +14 -0
- package/dist/client/api/schema/dpi-standard-entity.d.ts.map +1 -0
- package/dist/client/api/schema/dpi-standard-entity.js +2 -0
- package/dist/client/api/schema/dpi-standard-entity.js.map +1 -0
- package/dist/client/api/schema/embedding-result.d.ts +17 -0
- package/dist/client/api/schema/embedding-result.d.ts.map +1 -0
- package/dist/client/api/schema/embedding-result.js +2 -0
- package/dist/client/api/schema/embedding-result.js.map +1 -0
- package/dist/client/api/schema/embedding.d.ts +5 -0
- package/dist/client/api/schema/embedding.d.ts.map +1 -0
- package/dist/client/api/schema/embedding.js +7 -0
- package/dist/client/api/schema/embedding.js.map +1 -0
- package/dist/client/api/schema/embeddings-input-text.d.ts +9 -0
- package/dist/client/api/schema/embeddings-input-text.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-input-text.js +7 -0
- package/dist/client/api/schema/embeddings-input-text.js.map +1 -0
- package/dist/client/api/schema/embeddings-input.d.ts +9 -0
- package/dist/client/api/schema/embeddings-input.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-input.js +2 -0
- package/dist/client/api/schema/embeddings-input.js.map +1 -0
- package/dist/client/api/schema/embeddings-model-config.d.ts +8 -0
- package/dist/client/api/schema/embeddings-model-config.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-model-config.js +2 -0
- package/dist/client/api/schema/embeddings-model-config.js.map +1 -0
- package/dist/client/api/schema/embeddings-model-details.d.ts +13 -0
- package/dist/client/api/schema/embeddings-model-details.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-model-details.js +2 -0
- package/dist/client/api/schema/embeddings-model-details.js.map +1 -0
- package/dist/client/api/schema/embeddings-model-params.d.ts +17 -0
- package/dist/client/api/schema/embeddings-model-params.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-model-params.js +7 -0
- package/dist/client/api/schema/embeddings-model-params.js.map +1 -0
- package/dist/client/api/schema/embeddings-module-configs.d.ts +10 -0
- package/dist/client/api/schema/embeddings-module-configs.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-module-configs.js +2 -0
- package/dist/client/api/schema/embeddings-module-configs.js.map +1 -0
- package/dist/client/api/schema/embeddings-orchestration-config.d.ts +8 -0
- package/dist/client/api/schema/embeddings-orchestration-config.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-orchestration-config.js +2 -0
- package/dist/client/api/schema/embeddings-orchestration-config.js.map +1 -0
- package/dist/client/api/schema/embeddings-post-request.d.ts +10 -0
- package/dist/client/api/schema/embeddings-post-request.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-post-request.js +2 -0
- package/dist/client/api/schema/embeddings-post-request.js.map +1 -0
- package/dist/client/api/schema/embeddings-post-response.d.ts +11 -0
- package/dist/client/api/schema/embeddings-post-response.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-post-response.js +2 -0
- package/dist/client/api/schema/embeddings-post-response.js.map +1 -0
- package/dist/client/api/schema/embeddings-response.d.ts +21 -0
- package/dist/client/api/schema/embeddings-response.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-response.js +2 -0
- package/dist/client/api/schema/embeddings-response.js.map +1 -0
- package/dist/client/api/schema/embeddings-usage.d.ts +14 -0
- package/dist/client/api/schema/embeddings-usage.d.ts.map +1 -0
- package/dist/client/api/schema/embeddings-usage.js +7 -0
- package/dist/client/api/schema/embeddings-usage.js.map +1 -0
- package/dist/client/api/schema/error-response-streaming.d.ts +25 -0
- package/dist/client/api/schema/error-response-streaming.d.ts.map +1 -0
- package/dist/client/api/schema/error-response-streaming.js +2 -0
- package/dist/client/api/schema/error-response-streaming.js.map +1 -0
- package/dist/client/api/schema/error-response.d.ts +1 -1
- package/dist/client/api/schema/index.d.ts +28 -4
- package/dist/client/api/schema/index.d.ts.map +1 -1
- package/dist/client/api/schema/index.js +28 -4
- package/dist/client/api/schema/index.js.map +1 -1
- package/dist/client/api/schema/input-filter-config.d.ts +7 -0
- package/dist/client/api/schema/input-filter-config.d.ts.map +1 -0
- package/dist/client/api/schema/input-filter-config.js +2 -0
- package/dist/client/api/schema/input-filter-config.js.map +1 -0
- package/dist/client/api/schema/input-filtering-config.d.ts +3 -3
- package/dist/client/api/schema/input-filtering-config.d.ts.map +1 -1
- package/dist/client/api/schema/llm-choice-streaming.d.ts +2 -4
- package/dist/client/api/schema/llm-choice-streaming.d.ts.map +1 -1
- package/dist/client/api/schema/llm-choice.d.ts +2 -4
- package/dist/client/api/schema/llm-choice.d.ts.map +1 -1
- package/dist/client/api/schema/llm-module-config.d.ts +2 -1
- package/dist/client/api/schema/llm-module-config.d.ts.map +1 -1
- package/dist/client/api/schema/llm-module-result.d.ts +34 -3
- package/dist/client/api/schema/llm-module-result.d.ts.map +1 -1
- package/dist/client/api/schema/module-results-base.d.ts +15 -0
- package/dist/client/api/schema/module-results-base.d.ts.map +1 -0
- package/dist/client/api/schema/module-results-base.js +2 -0
- package/dist/client/api/schema/module-results-base.js.map +1 -0
- package/dist/client/api/schema/module-results-streaming.d.ts +11 -0
- package/dist/client/api/schema/module-results-streaming.d.ts.map +1 -0
- package/dist/client/api/schema/module-results-streaming.js +2 -0
- package/dist/client/api/schema/module-results-streaming.js.map +1 -0
- package/dist/client/api/schema/module-results.d.ts +5 -14
- package/dist/client/api/schema/module-results.d.ts.map +1 -1
- package/dist/client/api/schema/output-filter-config.d.ts +7 -0
- package/dist/client/api/schema/output-filter-config.d.ts.map +1 -0
- package/dist/client/api/schema/output-filter-config.js +2 -0
- package/dist/client/api/schema/output-filter-config.js.map +1 -0
- package/dist/client/api/schema/output-filtering-config.d.ts +3 -3
- package/dist/client/api/schema/output-filtering-config.d.ts.map +1 -1
- package/dist/client/api/schema/response-chat-message.d.ts +1 -1
- package/dist/client/api/schema/response-chat-message.d.ts.map +1 -1
- package/dist/client/api/schema/template.d.ts +0 -1
- package/dist/client/api/schema/template.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/orchestration-types.d.ts +9 -1
- package/dist/orchestration-types.d.ts.map +1 -1
- package/dist/orchestration-types.js.map +1 -1
- package/dist/util/filtering.d.ts +2 -2
- package/dist/util/filtering.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/client/api/schema/azure-content-safety-filter-config.d.ts +0 -13
- package/dist/client/api/schema/azure-content-safety-filter-config.d.ts.map +0 -1
- package/dist/client/api/schema/azure-content-safety-filter-config.js +0 -2
- package/dist/client/api/schema/azure-content-safety-filter-config.js.map +0 -1
- package/dist/client/api/schema/azure-content-safety.d.ts.map +0 -1
- package/dist/client/api/schema/azure-content-safety.js +0 -2
- package/dist/client/api/schema/azure-content-safety.js.map +0 -1
- package/dist/client/api/schema/filter-config.d.ts +0 -7
- package/dist/client/api/schema/filter-config.d.ts.map +0 -1
- package/dist/client/api/schema/filter-config.js +0 -2
- package/dist/client/api/schema/filter-config.js.map +0 -1
- package/dist/client/api/schema/llm-module-result-synchronous.d.ts +0 -38
- package/dist/client/api/schema/llm-module-result-synchronous.d.ts.map +0 -1
- package/dist/client/api/schema/llm-module-result-synchronous.js +0 -2
- package/dist/client/api/schema/llm-module-result-synchronous.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OutputFilterConfig } from './output-filter-config.js';
|
|
2
2
|
import type { FilteringStreamOptions } from './filtering-stream-options.js';
|
|
3
3
|
/**
|
|
4
4
|
* Representation of the 'OutputFilteringConfig' schema.
|
|
5
5
|
*/
|
|
6
6
|
export type OutputFilteringConfig = {
|
|
7
7
|
/**
|
|
8
|
-
* Configuration for content filtering services that should be used for the given filtering step (
|
|
8
|
+
* Configuration for content filtering services that should be used for the given filtering step (output filtering).
|
|
9
9
|
* Min Items: 1.
|
|
10
10
|
*/
|
|
11
|
-
filters:
|
|
11
|
+
filters: OutputFilterConfig[];
|
|
12
12
|
stream_options?: FilteringStreamOptions;
|
|
13
13
|
};
|
|
14
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,
|
|
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,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { MessageToolCalls } from './message-tool-calls.js';
|
|
|
3
3
|
* Representation of the 'ResponseChatMessage' schema.
|
|
4
4
|
*/
|
|
5
5
|
export type ResponseChatMessage = {
|
|
6
|
-
role
|
|
6
|
+
role: 'assistant';
|
|
7
7
|
content?: string;
|
|
8
8
|
refusal?: string;
|
|
9
9
|
tool_calls?: MessageToolCalls;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-chat-message.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/response-chat-message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,
|
|
1
|
+
{"version":3,"file":"response-chat-message.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/response-chat-message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,CAAC"}
|
|
@@ -28,7 +28,6 @@ export type Template = {
|
|
|
28
28
|
defaults?: Record<string, string>;
|
|
29
29
|
/**
|
|
30
30
|
* Response format that the model output should adhere to. This is the same as the OpenAI definition.
|
|
31
|
-
* Compatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.
|
|
32
31
|
*
|
|
33
32
|
*/
|
|
34
33
|
response_format?: ResponseFormatText | ResponseFormatJsonObject | ResponseFormatJsonSchema;
|
|
@@ -1 +1 @@
|
|
|
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,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC
|
|
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,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,QAAQ,EAAE,qBAAqB,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;;OAGG;IACH,eAAe,CAAC,EACZ,kBAAkB,GAClB,wBAAwB,GACxB,wBAAwB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC9B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './client/api/schema/index.js';
|
|
2
|
-
export type { OrchestrationModuleConfig, LlmModuleConfig, TemplatingModuleConfig, Template, Prompt, RequestOptions, StreamOptions, DocumentGroundingServiceConfig, DocumentGroundingServiceFilter, DpiMaskingConfig, LlmModelParams, LlamaGuardCategory, AzureContentFilter, AzureFilterThreshold, TranslationConfigParams } from './orchestration-types.js';
|
|
2
|
+
export type { OrchestrationModuleConfig, LlmModuleConfig, TemplatingModuleConfig, Template, Prompt, RequestOptions, StreamOptions, DocumentGroundingServiceConfig, DocumentGroundingServiceFilter, DpiMaskingConfig, LlmModelParams, LlamaGuardCategory, AzureContentFilter, AzureFilterThreshold, TranslationConfigParams, AzureContentSafety, AzureContentSafetyFilterConfig } from './orchestration-types.js';
|
|
3
3
|
export { OrchestrationStreamResponse } from './orchestration-stream-response.js';
|
|
4
4
|
export { OrchestrationStreamChunkResponse } from './orchestration-stream-chunk-response.js';
|
|
5
5
|
export { OrchestrationStream } from './orchestration-stream.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAE7C,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,sBAAsB,EACtB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,aAAa,EACb,8BAA8B,EAC9B,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAE7C,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,sBAAsB,EACtB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,aAAa,EACb,8BAA8B,EAC9B,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,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":"AAAA,cAAc,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAsB7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Xor } from '@sap-cloud-sdk/util';
|
|
2
2
|
import type { CustomRequestConfig } from '@sap-cloud-sdk/http-client';
|
|
3
3
|
import type { ChatModel } from './model-types.js';
|
|
4
|
-
import type { ChatMessages, DataRepositoryType, DocumentGroundingFilter, DpiConfig, DpiEntities, FilteringModuleConfig, FilteringStreamOptions, GlobalStreamOptions, GroundingModuleConfig, InputTranslationModuleConfig, LlamaGuard38B, MaskingModuleConfig, LlmModuleConfig as OriginalLlmModuleConfig, Template as OriginalTemplate, TemplateRef, TemplatingChatMessage, OutputTranslationModuleConfig } from './client/api/schema/index.js';
|
|
4
|
+
import type { ChatMessages, DataRepositoryType, DocumentGroundingFilter, DpiConfig, DpiEntities, FilteringModuleConfig, FilteringStreamOptions, GlobalStreamOptions, GroundingModuleConfig, InputTranslationModuleConfig, LlamaGuard38B, MaskingModuleConfig, LlmModuleConfig as OriginalLlmModuleConfig, Template as OriginalTemplate, TemplateRef, TemplatingChatMessage, OutputTranslationModuleConfig, AzureContentSafetyOutput, AzureContentSafetyOutputFilterConfig } from './client/api/schema/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Prompt configuration.
|
|
7
7
|
*/
|
|
@@ -276,4 +276,12 @@ export interface TranslationConfigParams {
|
|
|
276
276
|
*/
|
|
277
277
|
targetLanguage: string;
|
|
278
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* Filter configuration for Azure Content Safety.
|
|
281
|
+
*/
|
|
282
|
+
export type AzureContentSafety = AzureContentSafetyOutput;
|
|
283
|
+
/**
|
|
284
|
+
* Representation of the Azure Content Safety filter config schema.
|
|
285
|
+
*/
|
|
286
|
+
export type AzureContentSafetyFilterConfig = AzureContentSafetyOutputFilterConfig;
|
|
279
287
|
//# sourceMappingURL=orchestration-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-types.d.ts","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,4BAA4B,EAC5B,aAAa,EACb,mBAAmB,EACnB,eAAe,IAAI,uBAAuB,EAC1C,QAAQ,IAAI,gBAAgB,EAC5B,WAAW,EACX,qBAAqB,EACrB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"orchestration-types.d.ts","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,4BAA4B,EAC5B,aAAa,EACb,mBAAmB,EACnB,eAAe,IAAI,uBAAuB,EAC1C,QAAQ,IAAI,gBAAgB,EAC5B,WAAW,EACX,qBAAqB,EACrB,6BAA6B,EAC7B,wBAAwB,EACxB,oCAAoC,EACrC,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;IAE/B;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,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,EAAE,oBAAoB,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,8BAA8B,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,aAAa,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GACxC,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-types.js","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestration-types.js","sourceRoot":"","sources":["../src/orchestration-types.ts"],"names":[],"mappings":"AAyRA;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,UAAU,EAAE,CAAC;IACb,cAAc,EAAE,CAAC;IACjB,qBAAqB,EAAE,CAAC;IACxB,SAAS,EAAE,CAAC;CACJ,CAAC"}
|
package/dist/util/filtering.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AzureContentFilter, LlamaGuardCategory } from '../orchestration-types.js';
|
|
1
|
+
import type { InputFilteringConfig, LlamaGuard38BFilterConfig, OutputFilteringConfig } from '../client/api/schema/index.js';
|
|
2
|
+
import type { AzureContentFilter, AzureContentSafety, AzureContentSafetyFilterConfig, LlamaGuardCategory } from '../orchestration-types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Convenience function to build Azure content filter.
|
|
5
5
|
* @param filter - Filtering configuration for Azure filter. If skipped, the default Azure content filter configuration is used.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../src/util/filtering.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../src/util/filtering.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAE9B,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,CAAC,EAAE,kBAAkB,GAC1B,oBAAoB,GAAG,qBAAqB,CAY9C;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,CAAC,EAAE,kBAAkB,GAC1B,8BAA8B,CAiBhC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,UAAU,EAAE,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,CAAC,GAC3D,yBAAyB,CAO3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/orchestration",
|
|
3
|
-
"version": "1.15.1-
|
|
3
|
+
"version": "1.15.1-20250701013320.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@sap-cloud-sdk/util": "^4.0.2",
|
|
24
24
|
"yaml": "^2.8.0",
|
|
25
|
-
"@sap-ai-sdk/core": "^1.15.1-
|
|
26
|
-
"@sap-ai-sdk/ai-api": "^1.15.1-
|
|
27
|
-
"@sap-ai-sdk/prompt-registry": "^1.15.1-
|
|
25
|
+
"@sap-ai-sdk/core": "^1.15.1-20250701013320.0",
|
|
26
|
+
"@sap-ai-sdk/ai-api": "^1.15.1-20250701013320.0",
|
|
27
|
+
"@sap-ai-sdk/prompt-registry": "^1.15.1-20250701013320.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@sap-cloud-sdk/http-client": "^4.0.2",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AzureContentSafety } from './azure-content-safety.js';
|
|
2
|
-
/**
|
|
3
|
-
* Representation of the 'AzureContentSafetyFilterConfig' schema.
|
|
4
|
-
*/
|
|
5
|
-
export type AzureContentSafetyFilterConfig = {
|
|
6
|
-
/**
|
|
7
|
-
* Name of the filter provider type
|
|
8
|
-
* @example "azure_content_safety"
|
|
9
|
-
*/
|
|
10
|
-
type: 'azure_content_safety';
|
|
11
|
-
config?: AzureContentSafety;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=azure-content-safety-filter-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-content-safety-filter-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/azure-content-safety-filter-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAC7B,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-content-safety-filter-config.js","sourceRoot":"","sources":["../../../../src/client/api/schema/azure-content-safety-filter-config.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-content-safety.js","sourceRoot":"","sources":["../../../../src/client/api/schema/azure-content-safety.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AzureContentSafetyFilterConfig } from './azure-content-safety-filter-config.js';
|
|
2
|
-
import type { LlamaGuard38BFilterConfig } from './llama-guard-38-b-filter-config.js';
|
|
3
|
-
/**
|
|
4
|
-
* Representation of the 'FilterConfig' schema.
|
|
5
|
-
*/
|
|
6
|
-
export type FilterConfig = AzureContentSafetyFilterConfig | LlamaGuard38BFilterConfig;
|
|
7
|
-
//# sourceMappingURL=filter-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-config.d.ts","sourceRoot":"","sources":["../../../../src/client/api/schema/filter-config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,8BAA8B,GAC9B,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-config.js","sourceRoot":"","sources":["../../../../src/client/api/schema/filter-config.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"llm-module-result-synchronous.js","sourceRoot":"","sources":["../../../../src/client/api/schema/llm-module-result-synchronous.ts"],"names":[],"mappings":""}
|