notdiamond 2.0.0-rc5 → 2.1.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 (144) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/LICENSE +1 -1
  3. package/README.md +276 -148
  4. package/client.d.mts +16 -19
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +16 -19
  7. package/client.d.ts.map +1 -1
  8. package/client.js +11 -14
  9. package/client.js.map +1 -1
  10. package/client.mjs +11 -14
  11. package/client.mjs.map +1 -1
  12. package/internal/tslib.js +17 -17
  13. package/package.json +3 -3
  14. package/resources/{pzn.d.mts → custom-router.d.mts} +16 -96
  15. package/resources/custom-router.d.mts.map +1 -0
  16. package/resources/{pzn.d.ts → custom-router.d.ts} +16 -96
  17. package/resources/custom-router.d.ts.map +1 -0
  18. package/resources/{pzn.js → custom-router.js} +13 -50
  19. package/resources/custom-router.js.map +1 -0
  20. package/resources/{pzn.mjs → custom-router.mjs} +11 -48
  21. package/resources/custom-router.mjs.map +1 -0
  22. package/resources/index.d.mts +4 -5
  23. package/resources/index.d.mts.map +1 -1
  24. package/resources/index.d.ts +4 -5
  25. package/resources/index.d.ts.map +1 -1
  26. package/resources/index.js +5 -7
  27. package/resources/index.js.map +1 -1
  28. package/resources/index.mjs +2 -3
  29. package/resources/index.mjs.map +1 -1
  30. package/resources/model-router.d.mts +6 -123
  31. package/resources/model-router.d.mts.map +1 -1
  32. package/resources/model-router.d.ts +6 -123
  33. package/resources/model-router.d.ts.map +1 -1
  34. package/resources/model-router.js +3 -32
  35. package/resources/model-router.js.map +1 -1
  36. package/resources/model-router.mjs +3 -32
  37. package/resources/model-router.mjs.map +1 -1
  38. package/resources/preferences.d.mts +4 -23
  39. package/resources/preferences.d.mts.map +1 -1
  40. package/resources/preferences.d.ts +4 -23
  41. package/resources/preferences.d.ts.map +1 -1
  42. package/resources/preferences.js +3 -25
  43. package/resources/preferences.js.map +1 -1
  44. package/resources/preferences.mjs +3 -25
  45. package/resources/preferences.mjs.map +1 -1
  46. package/resources/prompt-adaptation.d.mts +687 -0
  47. package/resources/prompt-adaptation.d.mts.map +1 -0
  48. package/resources/prompt-adaptation.d.ts +687 -0
  49. package/resources/prompt-adaptation.d.ts.map +1 -0
  50. package/resources/prompt-adaptation.js +258 -0
  51. package/resources/prompt-adaptation.js.map +1 -0
  52. package/resources/prompt-adaptation.mjs +254 -0
  53. package/resources/prompt-adaptation.mjs.map +1 -0
  54. package/src/client.ts +37 -44
  55. package/src/resources/{pzn.ts → custom-router.ts} +17 -122
  56. package/src/resources/index.ts +14 -16
  57. package/src/resources/model-router.ts +5 -139
  58. package/src/resources/preferences.ts +3 -34
  59. package/src/resources/prompt-adaptation.ts +780 -0
  60. package/src/version.ts +1 -1
  61. package/version.d.mts +1 -1
  62. package/version.d.mts.map +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.d.ts.map +1 -1
  65. package/version.js +1 -1
  66. package/version.js.map +1 -1
  67. package/version.mjs +1 -1
  68. package/version.mjs.map +1 -1
  69. package/resources/prompt/adapt.d.mts +0 -352
  70. package/resources/prompt/adapt.d.mts.map +0 -1
  71. package/resources/prompt/adapt.d.ts +0 -352
  72. package/resources/prompt/adapt.d.ts.map +0 -1
  73. package/resources/prompt/adapt.js +0 -154
  74. package/resources/prompt/adapt.js.map +0 -1
  75. package/resources/prompt/adapt.mjs +0 -150
  76. package/resources/prompt/adapt.mjs.map +0 -1
  77. package/resources/prompt/index.d.mts +0 -3
  78. package/resources/prompt/index.d.mts.map +0 -1
  79. package/resources/prompt/index.d.ts +0 -3
  80. package/resources/prompt/index.d.ts.map +0 -1
  81. package/resources/prompt/index.js +0 -9
  82. package/resources/prompt/index.js.map +0 -1
  83. package/resources/prompt/index.mjs +0 -4
  84. package/resources/prompt/index.mjs.map +0 -1
  85. package/resources/prompt/prompt.d.mts +0 -338
  86. package/resources/prompt/prompt.d.mts.map +0 -1
  87. package/resources/prompt/prompt.d.ts +0 -338
  88. package/resources/prompt/prompt.d.ts.map +0 -1
  89. package/resources/prompt/prompt.js +0 -128
  90. package/resources/prompt/prompt.js.map +0 -1
  91. package/resources/prompt/prompt.mjs +0 -123
  92. package/resources/prompt/prompt.mjs.map +0 -1
  93. package/resources/prompt.d.mts +0 -2
  94. package/resources/prompt.d.mts.map +0 -1
  95. package/resources/prompt.d.ts +0 -2
  96. package/resources/prompt.d.ts.map +0 -1
  97. package/resources/prompt.js +0 -6
  98. package/resources/prompt.js.map +0 -1
  99. package/resources/prompt.mjs +0 -3
  100. package/resources/prompt.mjs.map +0 -1
  101. package/resources/pzn.d.mts.map +0 -1
  102. package/resources/pzn.d.ts.map +0 -1
  103. package/resources/pzn.js.map +0 -1
  104. package/resources/pzn.mjs.map +0 -1
  105. package/resources/report/index.d.mts +0 -3
  106. package/resources/report/index.d.mts.map +0 -1
  107. package/resources/report/index.d.ts +0 -3
  108. package/resources/report/index.d.ts.map +0 -1
  109. package/resources/report/index.js +0 -9
  110. package/resources/report/index.js.map +0 -1
  111. package/resources/report/index.mjs +0 -4
  112. package/resources/report/index.mjs.map +0 -1
  113. package/resources/report/metrics.d.mts +0 -87
  114. package/resources/report/metrics.d.mts.map +0 -1
  115. package/resources/report/metrics.d.ts +0 -87
  116. package/resources/report/metrics.d.ts.map +0 -1
  117. package/resources/report/metrics.js +0 -57
  118. package/resources/report/metrics.js.map +0 -1
  119. package/resources/report/metrics.mjs +0 -53
  120. package/resources/report/metrics.mjs.map +0 -1
  121. package/resources/report/report.d.mts +0 -10
  122. package/resources/report/report.d.mts.map +0 -1
  123. package/resources/report/report.d.ts +0 -10
  124. package/resources/report/report.d.ts.map +0 -1
  125. package/resources/report/report.js +0 -17
  126. package/resources/report/report.js.map +0 -1
  127. package/resources/report/report.mjs +0 -12
  128. package/resources/report/report.mjs.map +0 -1
  129. package/resources/report.d.mts +0 -2
  130. package/resources/report.d.mts.map +0 -1
  131. package/resources/report.d.ts +0 -2
  132. package/resources/report.d.ts.map +0 -1
  133. package/resources/report.js +0 -6
  134. package/resources/report.js.map +0 -1
  135. package/resources/report.mjs +0 -3
  136. package/resources/report.mjs.map +0 -1
  137. package/src/resources/prompt/adapt.ts +0 -402
  138. package/src/resources/prompt/index.ts +0 -16
  139. package/src/resources/prompt/prompt.ts +0 -398
  140. package/src/resources/prompt.ts +0 -3
  141. package/src/resources/report/index.ts +0 -4
  142. package/src/resources/report/metrics.ts +0 -99
  143. package/src/resources/report/report.ts +0 -19
  144. package/src/resources/report.ts +0 -3
@@ -9,20 +9,17 @@ export declare class Preferences extends APIResource {
9
9
  * learning your preferences over time. Once created, you can:
10
10
  *
11
11
  * 1. Use it in model_select() calls to get personalized routing decisions
12
- * 2. Submit feedback via the feedback endpoint to improve routing quality
13
- * 3. Train a custom router specific to your use case
12
+ * 2. Train a custom router specific to your use case
14
13
  *
15
14
  * **Workflow:**
16
15
  *
17
16
  * 1. Create a preference ID (this endpoint)
18
17
  * 2. Use the preference_id in POST /v2/modelRouter/modelSelect requests
19
- * 3. Submit feedback on routing decisions via POST /v2/report/metrics/feedback
20
- * 4. Optionally train a custom router via POST /v2/pzn/trainCustomRouter
18
+ * 3. Optionally train a custom router via POST /v2/pzn/trainCustomRouter
21
19
  *
22
20
  * **Benefits:**
23
21
  *
24
- * - Personalized routing that learns from your feedback
25
- * - Improved accuracy for your specific use case
22
+ * - Personalized routing for your specific use case
26
23
  * - Ability to train custom routers on your evaluation data
27
24
  *
28
25
  * **Note:** If you don't provide a preference_id in model_select() calls, the
@@ -34,18 +31,6 @@ export declare class Preferences extends APIResource {
34
31
  * ```
35
32
  */
36
33
  create(body: PreferenceCreateParams, options?: RequestOptions): APIPromise<PreferenceCreateResponse>;
37
- /**
38
- * Get User Preference
39
- *
40
- * @example
41
- * ```ts
42
- * const preference = await client.preferences.retrieve(
43
- * 'user_id',
44
- * { 'x-token': 'x-token' },
45
- * );
46
- * ```
47
- */
48
- retrieve(userID: string, params: PreferenceRetrieveParams, options?: RequestOptions): APIPromise<unknown>;
49
34
  /**
50
35
  * Update User Preference
51
36
  *
@@ -89,7 +74,6 @@ export interface PreferenceCreateResponse {
89
74
  */
90
75
  preference_id: string;
91
76
  }
92
- export type PreferenceRetrieveResponse = unknown;
93
77
  export type PreferenceUpdateResponse = unknown;
94
78
  export type PreferenceDeleteResponse = unknown;
95
79
  export interface PreferenceCreateParams {
@@ -100,14 +84,11 @@ export interface PreferenceCreateParams {
100
84
  */
101
85
  name?: string | null;
102
86
  }
103
- export interface PreferenceRetrieveParams {
104
- 'x-token': string;
105
- }
106
87
  export interface PreferenceUpdateParams {
107
88
  preference_id: string;
108
89
  name?: string | null;
109
90
  }
110
91
  export declare namespace Preferences {
111
- export { type PreferenceCreateResponse as PreferenceCreateResponse, type PreferenceRetrieveResponse as PreferenceRetrieveResponse, type PreferenceUpdateResponse as PreferenceUpdateResponse, type PreferenceDeleteResponse as PreferenceDeleteResponse, type PreferenceCreateParams as PreferenceCreateParams, type PreferenceRetrieveParams as PreferenceRetrieveParams, type PreferenceUpdateParams as PreferenceUpdateParams, };
92
+ export { type PreferenceCreateResponse as PreferenceCreateResponse, type PreferenceUpdateResponse as PreferenceUpdateResponse, type PreferenceDeleteResponse as PreferenceDeleteResponse, type PreferenceCreateParams as PreferenceCreateParams, type PreferenceUpdateParams as PreferenceUpdateParams, };
112
93
  }
113
94
  //# sourceMappingURL=preferences.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../src/resources/preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,QAAQ,CA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[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInF;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAG5E;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IAEtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Preferences = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
- const headers_1 = require("../internal/headers.js");
7
6
  const path_1 = require("../internal/utils/path.js");
8
7
  class Preferences extends resource_1.APIResource {
9
8
  /**
@@ -13,20 +12,17 @@ class Preferences extends resource_1.APIResource {
13
12
  * learning your preferences over time. Once created, you can:
14
13
  *
15
14
  * 1. Use it in model_select() calls to get personalized routing decisions
16
- * 2. Submit feedback via the feedback endpoint to improve routing quality
17
- * 3. Train a custom router specific to your use case
15
+ * 2. Train a custom router specific to your use case
18
16
  *
19
17
  * **Workflow:**
20
18
  *
21
19
  * 1. Create a preference ID (this endpoint)
22
20
  * 2. Use the preference_id in POST /v2/modelRouter/modelSelect requests
23
- * 3. Submit feedback on routing decisions via POST /v2/report/metrics/feedback
24
- * 4. Optionally train a custom router via POST /v2/pzn/trainCustomRouter
21
+ * 3. Optionally train a custom router via POST /v2/pzn/trainCustomRouter
25
22
  *
26
23
  * **Benefits:**
27
24
  *
28
- * - Personalized routing that learns from your feedback
29
- * - Improved accuracy for your specific use case
25
+ * - Personalized routing for your specific use case
30
26
  * - Ability to train custom routers on your evaluation data
31
27
  *
32
28
  * **Note:** If you don't provide a preference_id in model_select() calls, the
@@ -40,24 +36,6 @@ class Preferences extends resource_1.APIResource {
40
36
  create(body, options) {
41
37
  return this._client.post('/v2/preferences/userPreferenceCreate', { body, ...options });
42
38
  }
43
- /**
44
- * Get User Preference
45
- *
46
- * @example
47
- * ```ts
48
- * const preference = await client.preferences.retrieve(
49
- * 'user_id',
50
- * { 'x-token': 'x-token' },
51
- * );
52
- * ```
53
- */
54
- retrieve(userID, params, options) {
55
- const { 'x-token': xToken } = params;
56
- return this._client.get((0, path_1.path) `/v2/preferences/${userID}`, {
57
- ...options,
58
- headers: (0, headers_1.buildHeaders)([{ 'x-token': xToken }, options?.headers]),
59
- });
60
- }
61
39
  /**
62
40
  * Update User Preference
63
41
  *
@@ -1 +1 @@
1
- {"version":3,"file":"preferences.js","sourceRoot":"","sources":["../src/resources/preferences.ts"],"names":[],"m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C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wCAAwC,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;CACF;AA5DD,kCA4DC"}
@@ -1,6 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
- import { buildHeaders } from "../internal/headers.mjs";
4
3
  import { path } from "../internal/utils/path.mjs";
5
4
  export class Preferences extends APIResource {
6
5
  /**
@@ -10,20 +9,17 @@ export class Preferences extends APIResource {
10
9
  * learning your preferences over time. Once created, you can:
11
10
  *
12
11
  * 1. Use it in model_select() calls to get personalized routing decisions
13
- * 2. Submit feedback via the feedback endpoint to improve routing quality
14
- * 3. Train a custom router specific to your use case
12
+ * 2. Train a custom router specific to your use case
15
13
  *
16
14
  * **Workflow:**
17
15
  *
18
16
  * 1. Create a preference ID (this endpoint)
19
17
  * 2. Use the preference_id in POST /v2/modelRouter/modelSelect requests
20
- * 3. Submit feedback on routing decisions via POST /v2/report/metrics/feedback
21
- * 4. Optionally train a custom router via POST /v2/pzn/trainCustomRouter
18
+ * 3. Optionally train a custom router via POST /v2/pzn/trainCustomRouter
22
19
  *
23
20
  * **Benefits:**
24
21
  *
25
- * - Personalized routing that learns from your feedback
26
- * - Improved accuracy for your specific use case
22
+ * - Personalized routing for your specific use case
27
23
  * - Ability to train custom routers on your evaluation data
28
24
  *
29
25
  * **Note:** If you don't provide a preference_id in model_select() calls, the
@@ -37,24 +33,6 @@ export class Preferences extends APIResource {
37
33
  create(body, options) {
38
34
  return this._client.post('/v2/preferences/userPreferenceCreate', { body, ...options });
39
35
  }
40
- /**
41
- * Get User Preference
42
- *
43
- * @example
44
- * ```ts
45
- * const preference = await client.preferences.retrieve(
46
- * 'user_id',
47
- * { 'x-token': 'x-token' },
48
- * );
49
- * ```
50
- */
51
- retrieve(userID, params, options) {
52
- const { 'x-token': xToken } = params;
53
- return this._client.get(path `/v2/preferences/${userID}`, {
54
- ...options,
55
- headers: buildHeaders([{ 'x-token': xToken }, options?.headers]),
56
- });
57
- }
58
36
  /**
59
37
  * Update User Preference
60
38
  *
@@ -1 +1 @@
1
- {"version":3,"file":"preferences.mjs","sourceRoot":"","sources":["../src/resources/preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAc,EAAE,MAAgC,EAAE,OAAwB;QACjF,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,MAAM,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAA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