promptlayer 1.0.2 → 1.0.3
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/types.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -31,7 +31,7 @@ interface GetPromptTemplateParams {
|
|
|
31
31
|
version?: number;
|
|
32
32
|
label?: string;
|
|
33
33
|
provider?: string;
|
|
34
|
-
input_variables?: Record<string,
|
|
34
|
+
input_variables?: Record<string, unknown>;
|
|
35
35
|
metadata_filters?: Record<string, string>;
|
|
36
36
|
}
|
|
37
37
|
declare const templateFormat: readonly ["f-string", "jinja2"];
|
|
@@ -181,7 +181,7 @@ interface RunRequest {
|
|
|
181
181
|
stream?: boolean;
|
|
182
182
|
promptVersion?: number;
|
|
183
183
|
promptReleaseLabel?: string;
|
|
184
|
-
inputVariables?: Record<string,
|
|
184
|
+
inputVariables?: Record<string, unknown>;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
declare class TemplateManager {
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface GetPromptTemplateParams {
|
|
|
31
31
|
version?: number;
|
|
32
32
|
label?: string;
|
|
33
33
|
provider?: string;
|
|
34
|
-
input_variables?: Record<string,
|
|
34
|
+
input_variables?: Record<string, unknown>;
|
|
35
35
|
metadata_filters?: Record<string, string>;
|
|
36
36
|
}
|
|
37
37
|
declare const templateFormat: readonly ["f-string", "jinja2"];
|
|
@@ -181,7 +181,7 @@ interface RunRequest {
|
|
|
181
181
|
stream?: boolean;
|
|
182
182
|
promptVersion?: number;
|
|
183
183
|
promptReleaseLabel?: string;
|
|
184
|
-
inputVariables?: Record<string,
|
|
184
|
+
inputVariables?: Record<string, unknown>;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
declare class TemplateManager {
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface TrackRequest {
|
|
|
30
30
|
metadata?: Record<string, string>;
|
|
31
31
|
tags?: string[];
|
|
32
32
|
request_response?: Record<string, unknown>;
|
|
33
|
-
prompt_input_variables?: Record<string,
|
|
33
|
+
prompt_input_variables?: Record<string, unknown> | string[];
|
|
34
34
|
return_data?: boolean;
|
|
35
35
|
group_id?: number;
|
|
36
36
|
[k: string]: unknown;
|
|
@@ -68,7 +68,7 @@ export interface GetPromptTemplateParams {
|
|
|
68
68
|
version?: number;
|
|
69
69
|
label?: string;
|
|
70
70
|
provider?: string;
|
|
71
|
-
input_variables?: Record<string,
|
|
71
|
+
input_variables?: Record<string, unknown>;
|
|
72
72
|
metadata_filters?: Record<string, string>;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -256,5 +256,5 @@ export interface RunRequest {
|
|
|
256
256
|
stream?: boolean;
|
|
257
257
|
promptVersion?: number;
|
|
258
258
|
promptReleaseLabel?: string;
|
|
259
|
-
inputVariables?: Record<string,
|
|
259
|
+
inputVariables?: Record<string, unknown>;
|
|
260
260
|
}
|