@sap-ai-sdk/prompt-registry 1.9.1-20250318013131.0 → 1.9.1-20250319013141.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,3 @@
1
- > [!warning]
2
- > This package is still in **beta** and is subject to breaking changes. Use it with caution.
3
-
4
1
  # @sap-ai-sdk/prompt-registry
5
2
 
6
3
  SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
@@ -14,6 +11,7 @@ This package incorporates generative AI prompt registry capabilities into your A
14
11
  - [Usage](#usage)
15
12
  - [List Prompt Templates](#list-prompt-templates)
16
13
  - [Custom Destination](#custom-destination)
14
+ - [Error Handling](#error-handling)
17
15
  - [Local Testing](#local-testing)
18
16
  - [Support, Feedback, Contribution](#support-feedback-contribution)
19
17
  - [License](#license)
@@ -65,6 +63,10 @@ const response: PromptTemplateListResponse =
65
63
  });
66
64
  ```
67
65
 
66
+ ## Error Handling
67
+
68
+ For error handling instructions, refer to this [section](https://github.com/SAP/ai-sdk-js/blob/main/README.md#error-handling).
69
+
68
70
  ## Local Testing
69
71
 
70
72
  For local testing instructions, refer to this [section](https://github.com/SAP/ai-sdk-js/blob/main/README.md#local-testing).
@@ -9,6 +9,11 @@ import type { ChatCompletionTool } from './chat-completion-tool.js';
9
9
  export type PromptTemplateSpec = {
10
10
  template: Template[];
11
11
  defaults?: Record<string, any>;
12
+ /**
13
+ * DEPRECATED. Use additional properties instead.
14
+ *
15
+ * @deprecated
16
+ */
12
17
  additionalFields?: Record<string, any>;
13
18
  /**
14
19
  * Response format that the model output should adhere to. This is the same as the OpenAI definition.
@@ -21,5 +26,5 @@ export type PromptTemplateSpec = {
21
26
  *
22
27
  */
23
28
  tools?: ChatCompletionTool[];
24
- } & Record<string, any>;
29
+ } & Record<string, Record<string, any>>;
25
30
  //# sourceMappingURL=prompt-template-spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-template-spec.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-spec.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,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;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EACZ,kBAAkB,GAClB,wBAAwB,GACxB,wBAAwB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC9B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"prompt-template-spec.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-spec.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,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;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EACZ,kBAAkB,GAClB,wBAAwB,GACxB,wBAAwB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC9B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ai-sdk/prompt-registry",
3
- "version": "1.9.1-20250318013131.0",
3
+ "version": "1.9.1-20250319013141.0",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "internal.d.ts"
21
21
  ],
22
22
  "dependencies": {
23
- "@sap-ai-sdk/core": "^1.9.1-20250318013131.0"
23
+ "@sap-ai-sdk/core": "^1.9.1-20250319013141.0"
24
24
  },
25
25
  "scripts": {
26
26
  "compile": "tsc",