@orq-ai/node 3.1.2 → 3.1.4
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 +27 -42
- package/docs/sdks/deployments/README.md +86 -9
- package/docs/sdks/files/README.md +10 -182
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompts/README.md +135 -128
- package/docs/sdks/{remoteconfig → remoteconfigs}/README.md +8 -8
- package/funcs/deploymentsInvoke.d.ts +1 -7
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +10 -11
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/{deploymentsAll.d.ts → deploymentsList.d.ts} +2 -2
- package/funcs/deploymentsList.d.ts.map +1 -0
- package/funcs/{deploymentsAll.js → deploymentsList.js} +5 -4
- package/funcs/deploymentsList.js.map +1 -0
- package/funcs/deploymentsStream.d.ts +16 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +125 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/{filesUpload.d.ts → filesCreate.d.ts} +3 -3
- package/funcs/{filesUpload.d.ts.map → filesCreate.d.ts.map} +1 -1
- package/funcs/{filesUpload.js → filesCreate.js} +4 -4
- package/funcs/{filesUpload.js.map → filesCreate.js.map} +1 -1
- package/funcs/filesGet.d.ts +4 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +4 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts +3 -0
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +5 -3
- package/funcs/filesList.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.js +2 -2
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +16 -0
- package/funcs/promptsGetVersion.d.ts.map +1 -0
- package/funcs/{promptsCreateVersion.js → promptsGetVersion.js} +23 -13
- package/funcs/promptsGetVersion.js.map +1 -0
- package/funcs/promptsList.d.ts +15 -0
- package/funcs/promptsList.d.ts.map +1 -0
- package/funcs/{promptsGetAll.js → promptsList.js} +17 -11
- package/funcs/promptsList.js.map +1 -0
- package/funcs/promptsListVersions.d.ts +15 -0
- package/funcs/promptsListVersions.d.ts.map +1 -0
- package/funcs/{promptsDuplicate.js → promptsListVersions.js} +19 -11
- package/funcs/promptsListVersions.js.map +1 -0
- package/funcs/{promptSnippetsFindOne.d.ts → promptsRetrieve.d.ts} +6 -3
- package/funcs/promptsRetrieve.d.ts.map +1 -0
- package/funcs/{promptsGetOne.js → promptsRetrieve.js} +10 -8
- package/funcs/promptsRetrieve.js.map +1 -0
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/{remoteconfigGetConfig.d.ts → remoteconfigsRetrieve.d.ts} +3 -3
- package/funcs/{remoteconfigGetConfig.d.ts.map → remoteconfigsRetrieve.d.ts.map} +1 -1
- package/funcs/{remoteconfigGetConfig.js → remoteconfigsRetrieve.js} +4 -4
- package/funcs/{remoteconfigGetConfig.js.map → remoteconfigsRetrieve.js.map} +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +10 -2
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts +13 -0
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +17 -0
- package/lib/env.js.map +1 -1
- package/lib/sdks.js +1 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/deployments.d.ts +0 -5
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +0 -2
- package/models/components/deployments.js.map +1 -1
- package/models/errors/getpromptversion.d.ts +36 -0
- package/models/errors/getpromptversion.d.ts.map +1 -0
- package/models/{operations/duplicateprompt.js → errors/getpromptversion.js} +33 -23
- package/models/errors/getpromptversion.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +406 -85
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +241 -78
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deleteprompt.d.ts +1 -1
- package/models/operations/deploymentgetconfig.d.ts +39 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +29 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +23 -683
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +23 -614
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +54 -8
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +44 -13
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1622 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +1571 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.d.ts +14 -11
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +18 -18
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +565 -9945
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +556 -8804
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +1203 -1
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1011 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1228 -0
- package/models/operations/getpromptversion.d.ts.map +1 -0
- package/models/operations/getpromptversion.js +1080 -0
- package/models/operations/getpromptversion.js.map +1 -0
- package/models/operations/index.d.ts +3 -6
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -6
- package/models/operations/index.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1286 -0
- package/models/operations/listpromptversions.d.ts.map +1 -0
- package/models/operations/listpromptversions.js +1142 -0
- package/models/operations/listpromptversions.js.map +1 -0
- package/models/operations/updateprompt.d.ts +1123 -5981
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1145 -5755
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/deployments.d.ts +10 -6
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +14 -6
- package/sdk/deployments.js.map +1 -1
- package/sdk/files.d.ts +9 -14
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +11 -22
- package/sdk/files.js.map +1 -1
- package/sdk/prompts.d.ts +26 -14
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +37 -25
- package/sdk/prompts.js.map +1 -1
- package/sdk/remoteconfigs.d.ts +9 -0
- package/sdk/remoteconfigs.d.ts.map +1 -0
- package/sdk/remoteconfigs.js +19 -0
- package/sdk/remoteconfigs.js.map +1 -0
- package/sdk/sdk.d.ts +3 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -7
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +21 -16
- package/src/funcs/{deploymentsAll.ts → deploymentsList.ts} +3 -2
- package/src/funcs/{promptsCreateVersion.ts → deploymentsStream.ts} +37 -18
- package/src/funcs/{filesUpload.ts → filesCreate.ts} +2 -2
- package/src/funcs/filesGet.ts +4 -1
- package/src/funcs/filesList.ts +5 -3
- package/src/funcs/promptsCreate.ts +2 -2
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/{promptSnippetsFindOne.ts → promptsGetVersion.ts} +30 -14
- package/src/funcs/{promptsGetAll.ts → promptsList.ts} +18 -13
- package/src/funcs/{promptsDuplicate.ts → promptsListVersions.ts} +22 -13
- package/src/funcs/{promptsGetOne.ts → promptsRetrieve.ts} +10 -8
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/funcs/{remoteconfigGetConfig.ts → remoteconfigsRetrieve.ts} +2 -2
- package/src/lib/config.ts +12 -2
- package/src/lib/env.ts +32 -0
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/deployments.ts +0 -7
- package/src/models/errors/getpromptversion.ts +71 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +380 -124
- package/src/models/operations/deleteprompt.ts +1 -1
- package/src/models/operations/deploymentgetconfig.ts +44 -0
- package/src/models/operations/deploymentinvoke.ts +182 -1423
- package/src/models/operations/deployments.ts +68 -18
- package/src/models/operations/deploymentstream.ts +3062 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +32 -29
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +1316 -17840
- package/src/models/operations/getoneprompt.ts +1914 -1
- package/src/models/operations/getpromptversion.ts +2012 -0
- package/src/models/operations/index.ts +3 -6
- package/src/models/operations/listpromptversions.ts +2146 -0
- package/src/models/operations/updateprompt.ts +2001 -12508
- package/src/sdk/deployments.ts +25 -11
- package/src/sdk/files.ts +11 -38
- package/src/sdk/prompts.ts +51 -39
- package/src/sdk/{remoteconfig.ts → remoteconfigs.ts} +5 -5
- package/src/sdk/sdk.ts +4 -10
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/deploymentsAll.d.ts.map +0 -1
- package/funcs/deploymentsAll.js.map +0 -1
- package/funcs/filesBulkUpload.d.ts +0 -15
- package/funcs/filesBulkUpload.d.ts.map +0 -1
- package/funcs/filesBulkUpload.js +0 -109
- package/funcs/filesBulkUpload.js.map +0 -1
- package/funcs/filesUpdate.d.ts +0 -12
- package/funcs/filesUpdate.d.ts.map +0 -1
- package/funcs/filesUpdate.js +0 -110
- package/funcs/filesUpdate.js.map +0 -1
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js +0 -109
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts +0 -12
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js +0 -109
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreateVersion.d.ts +0 -12
- package/funcs/promptsCreateVersion.d.ts.map +0 -1
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts +0 -12
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts +0 -12
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts +0 -12
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js.map +0 -1
- package/models/operations/bulkfileupload.d.ts +0 -173
- package/models/operations/bulkfileupload.d.ts.map +0 -1
- package/models/operations/bulkfileupload.js +0 -210
- package/models/operations/bulkfileupload.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2003
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1852
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/fileupdate.d.ts +0 -143
- package/models/operations/fileupdate.d.ts.map +0 -1
- package/models/operations/fileupdate.js +0 -193
- package/models/operations/fileupdate.js.map +0 -1
- package/models/operations/findonepromptsnippet.d.ts +0 -6278
- package/models/operations/findonepromptsnippet.d.ts.map +0 -1
- package/models/operations/findonepromptsnippet.js +0 -5891
- package/models/operations/findonepromptsnippet.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -19
- package/sdk/prompt.js.map +0 -1
- package/sdk/remoteconfig.d.ts +0 -9
- package/sdk/remoteconfig.d.ts.map +0 -1
- package/sdk/remoteconfig.js +0 -19
- package/sdk/remoteconfig.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/funcs/filesBulkUpload.ts +0 -129
- package/src/funcs/filesUpdate.ts +0 -130
- package/src/funcs/promptTemplatesGetAll.ts +0 -132
- package/src/models/operations/bulkfileupload.ts +0 -315
- package/src/models/operations/createpromptversion.ts +0 -3703
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/fileupdate.ts +0 -298
- package/src/models/operations/findonepromptsnippet.ts +0 -13629
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -1,2003 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* The type of the model
|
|
7
|
-
*/
|
|
8
|
-
export declare const CreatePromptVersionModelType: {
|
|
9
|
-
readonly Chat: "chat";
|
|
10
|
-
readonly Completion: "completion";
|
|
11
|
-
readonly Embedding: "embedding";
|
|
12
|
-
readonly Vision: "vision";
|
|
13
|
-
readonly Image: "image";
|
|
14
|
-
readonly Tts: "tts";
|
|
15
|
-
readonly Stt: "stt";
|
|
16
|
-
readonly Rerank: "rerank";
|
|
17
|
-
readonly Moderations: "moderations";
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* The type of the model
|
|
21
|
-
*/
|
|
22
|
-
export type CreatePromptVersionModelType = ClosedEnum<typeof CreatePromptVersionModelType>;
|
|
23
|
-
/**
|
|
24
|
-
* Only supported on `image` models.
|
|
25
|
-
*/
|
|
26
|
-
export declare const CreatePromptVersionFormat: {
|
|
27
|
-
readonly Url: "url";
|
|
28
|
-
readonly B64Json: "b64_json";
|
|
29
|
-
readonly Text: "text";
|
|
30
|
-
readonly JsonObject: "json_object";
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Only supported on `image` models.
|
|
34
|
-
*/
|
|
35
|
-
export type CreatePromptVersionFormat = ClosedEnum<typeof CreatePromptVersionFormat>;
|
|
36
|
-
/**
|
|
37
|
-
* Only supported on `image` models.
|
|
38
|
-
*/
|
|
39
|
-
export declare const CreatePromptVersionQuality: {
|
|
40
|
-
readonly Standard: "standard";
|
|
41
|
-
readonly Hd: "hd";
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Only supported on `image` models.
|
|
45
|
-
*/
|
|
46
|
-
export type CreatePromptVersionQuality = ClosedEnum<typeof CreatePromptVersionQuality>;
|
|
47
|
-
export declare const CreatePromptVersionResponseFormatPromptsType: {
|
|
48
|
-
readonly JsonObject: "json_object";
|
|
49
|
-
};
|
|
50
|
-
export type CreatePromptVersionResponseFormatPromptsType = ClosedEnum<typeof CreatePromptVersionResponseFormatPromptsType>;
|
|
51
|
-
export type CreatePromptVersionResponseFormat2 = {
|
|
52
|
-
type: CreatePromptVersionResponseFormatPromptsType;
|
|
53
|
-
};
|
|
54
|
-
export declare const CreatePromptVersionResponseFormatType: {
|
|
55
|
-
readonly JsonSchema: "json_schema";
|
|
56
|
-
};
|
|
57
|
-
export type CreatePromptVersionResponseFormatType = ClosedEnum<typeof CreatePromptVersionResponseFormatType>;
|
|
58
|
-
export type ResponseFormatJsonSchema = {
|
|
59
|
-
name: string;
|
|
60
|
-
strict: boolean;
|
|
61
|
-
schema: {
|
|
62
|
-
[k: string]: any;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export type CreatePromptVersionResponseFormat1 = {
|
|
66
|
-
type: CreatePromptVersionResponseFormatType;
|
|
67
|
-
jsonSchema: ResponseFormatJsonSchema;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* An object specifying the format that the model must output.
|
|
71
|
-
*
|
|
72
|
-
* @remarks
|
|
73
|
-
*
|
|
74
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
75
|
-
*
|
|
76
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
77
|
-
*
|
|
78
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
79
|
-
*/
|
|
80
|
-
export type CreatePromptVersionResponseFormat = CreatePromptVersionResponseFormat2 | CreatePromptVersionResponseFormat1;
|
|
81
|
-
/**
|
|
82
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
83
|
-
*/
|
|
84
|
-
export declare const CreatePromptVersionPhotoRealVersion: {
|
|
85
|
-
readonly V1: "v1";
|
|
86
|
-
readonly V2: "v2";
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
90
|
-
*/
|
|
91
|
-
export type CreatePromptVersionPhotoRealVersion = ClosedEnum<typeof CreatePromptVersionPhotoRealVersion>;
|
|
92
|
-
/**
|
|
93
|
-
* The format to return the embeddings
|
|
94
|
-
*/
|
|
95
|
-
export declare const CreatePromptVersionEncodingFormat: {
|
|
96
|
-
readonly Float: "float";
|
|
97
|
-
readonly Base64: "base64";
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* The format to return the embeddings
|
|
101
|
-
*/
|
|
102
|
-
export type CreatePromptVersionEncodingFormat = ClosedEnum<typeof CreatePromptVersionEncodingFormat>;
|
|
103
|
-
/**
|
|
104
|
-
* Model Parameters: Not all parameters apply to every model
|
|
105
|
-
*/
|
|
106
|
-
export type CreatePromptVersionModelParameters = {
|
|
107
|
-
/**
|
|
108
|
-
* Only supported on `chat` and `completion` models.
|
|
109
|
-
*/
|
|
110
|
-
temperature?: number | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* Only supported on `chat` and `completion` models.
|
|
113
|
-
*/
|
|
114
|
-
maxTokens?: number | undefined;
|
|
115
|
-
/**
|
|
116
|
-
* Only supported on `chat` and `completion` models.
|
|
117
|
-
*/
|
|
118
|
-
topK?: number | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Only supported on `chat` and `completion` models.
|
|
121
|
-
*/
|
|
122
|
-
topP?: number | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* Only supported on `chat` and `completion` models.
|
|
125
|
-
*/
|
|
126
|
-
frequencyPenalty?: number | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* Only supported on `chat` and `completion` models.
|
|
129
|
-
*/
|
|
130
|
-
presencePenalty?: number | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* Only supported on `image` models.
|
|
133
|
-
*/
|
|
134
|
-
numImages?: number | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
137
|
-
*/
|
|
138
|
-
seed?: number | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* Only supported on `image` models.
|
|
141
|
-
*/
|
|
142
|
-
format?: CreatePromptVersionFormat | undefined;
|
|
143
|
-
/**
|
|
144
|
-
* Only supported on `image` models.
|
|
145
|
-
*/
|
|
146
|
-
dimensions?: string | undefined;
|
|
147
|
-
/**
|
|
148
|
-
* Only supported on `image` models.
|
|
149
|
-
*/
|
|
150
|
-
quality?: CreatePromptVersionQuality | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* Only supported on `image` models.
|
|
153
|
-
*/
|
|
154
|
-
style?: string | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* An object specifying the format that the model must output.
|
|
157
|
-
*
|
|
158
|
-
* @remarks
|
|
159
|
-
*
|
|
160
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
161
|
-
*
|
|
162
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
163
|
-
*
|
|
164
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
165
|
-
*/
|
|
166
|
-
responseFormat?: CreatePromptVersionResponseFormat2 | CreatePromptVersionResponseFormat1 | null | undefined;
|
|
167
|
-
/**
|
|
168
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
169
|
-
*/
|
|
170
|
-
photoRealVersion?: CreatePromptVersionPhotoRealVersion | undefined;
|
|
171
|
-
/**
|
|
172
|
-
* The format to return the embeddings
|
|
173
|
-
*/
|
|
174
|
-
encodingFormat?: CreatePromptVersionEncodingFormat | undefined;
|
|
175
|
-
};
|
|
176
|
-
export declare const CreatePromptVersionProvider: {
|
|
177
|
-
readonly Cohere: "cohere";
|
|
178
|
-
readonly Openai: "openai";
|
|
179
|
-
readonly Anthropic: "anthropic";
|
|
180
|
-
readonly Huggingface: "huggingface";
|
|
181
|
-
readonly Replicate: "replicate";
|
|
182
|
-
readonly Google: "google";
|
|
183
|
-
readonly GoogleAi: "google-ai";
|
|
184
|
-
readonly Azure: "azure";
|
|
185
|
-
readonly Aws: "aws";
|
|
186
|
-
readonly Anyscale: "anyscale";
|
|
187
|
-
readonly Perplexity: "perplexity";
|
|
188
|
-
readonly Groq: "groq";
|
|
189
|
-
readonly Fal: "fal";
|
|
190
|
-
readonly Leonardoai: "leonardoai";
|
|
191
|
-
readonly Nvidia: "nvidia";
|
|
192
|
-
readonly Jina: "jina";
|
|
193
|
-
};
|
|
194
|
-
export type CreatePromptVersionProvider = ClosedEnum<typeof CreatePromptVersionProvider>;
|
|
195
|
-
/**
|
|
196
|
-
* The role of the prompt message
|
|
197
|
-
*/
|
|
198
|
-
export declare const CreatePromptVersionRole: {
|
|
199
|
-
readonly System: "system";
|
|
200
|
-
readonly Assistant: "assistant";
|
|
201
|
-
readonly User: "user";
|
|
202
|
-
readonly Exception: "exception";
|
|
203
|
-
readonly Tool: "tool";
|
|
204
|
-
readonly Prompt: "prompt";
|
|
205
|
-
readonly Correction: "correction";
|
|
206
|
-
readonly ExpectedOutput: "expected_output";
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* The role of the prompt message
|
|
210
|
-
*/
|
|
211
|
-
export type CreatePromptVersionRole = ClosedEnum<typeof CreatePromptVersionRole>;
|
|
212
|
-
export declare const CreatePromptVersion2PromptsType: {
|
|
213
|
-
readonly ImageUrl: "image_url";
|
|
214
|
-
};
|
|
215
|
-
export type CreatePromptVersion2PromptsType = ClosedEnum<typeof CreatePromptVersion2PromptsType>;
|
|
216
|
-
export type CreatePromptVersion2ImageUrl = {
|
|
217
|
-
/**
|
|
218
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
219
|
-
*/
|
|
220
|
-
url: string;
|
|
221
|
-
/**
|
|
222
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
223
|
-
*/
|
|
224
|
-
detail?: string | undefined;
|
|
225
|
-
};
|
|
226
|
-
/**
|
|
227
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
228
|
-
*/
|
|
229
|
-
export type CreatePromptVersion22 = {
|
|
230
|
-
type: CreatePromptVersion2PromptsType;
|
|
231
|
-
imageUrl: CreatePromptVersion2ImageUrl;
|
|
232
|
-
};
|
|
233
|
-
export declare const CreatePromptVersion2Type: {
|
|
234
|
-
readonly Text: "text";
|
|
235
|
-
};
|
|
236
|
-
export type CreatePromptVersion2Type = ClosedEnum<typeof CreatePromptVersion2Type>;
|
|
237
|
-
/**
|
|
238
|
-
* Text content part of a prompt message
|
|
239
|
-
*/
|
|
240
|
-
export type CreatePromptVersion21 = {
|
|
241
|
-
type: CreatePromptVersion2Type;
|
|
242
|
-
text: string;
|
|
243
|
-
};
|
|
244
|
-
export type CreatePromptVersionContent2 = CreatePromptVersion21 | CreatePromptVersion22;
|
|
245
|
-
/**
|
|
246
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
247
|
-
*/
|
|
248
|
-
export type CreatePromptVersionContent = string | Array<CreatePromptVersion21 | CreatePromptVersion22>;
|
|
249
|
-
export declare const CreatePromptVersionType: {
|
|
250
|
-
readonly Function: "function";
|
|
251
|
-
};
|
|
252
|
-
export type CreatePromptVersionType = ClosedEnum<typeof CreatePromptVersionType>;
|
|
253
|
-
export type CreatePromptVersionFunction = {
|
|
254
|
-
name: string;
|
|
255
|
-
/**
|
|
256
|
-
* JSON string arguments for the functions
|
|
257
|
-
*/
|
|
258
|
-
arguments: string;
|
|
259
|
-
};
|
|
260
|
-
export type CreatePromptVersionToolCalls = {
|
|
261
|
-
id?: string | undefined;
|
|
262
|
-
index?: number | undefined;
|
|
263
|
-
type: CreatePromptVersionType;
|
|
264
|
-
function: CreatePromptVersionFunction;
|
|
265
|
-
};
|
|
266
|
-
export type CreatePromptVersionMessages = {
|
|
267
|
-
/**
|
|
268
|
-
* The role of the prompt message
|
|
269
|
-
*/
|
|
270
|
-
role: CreatePromptVersionRole;
|
|
271
|
-
/**
|
|
272
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
273
|
-
*/
|
|
274
|
-
content: string | Array<CreatePromptVersion21 | CreatePromptVersion22>;
|
|
275
|
-
toolCalls?: Array<CreatePromptVersionToolCalls> | undefined;
|
|
276
|
-
};
|
|
277
|
-
export type CreatePromptVersionPromptConfig = {
|
|
278
|
-
stream?: boolean | undefined;
|
|
279
|
-
model?: string | undefined;
|
|
280
|
-
/**
|
|
281
|
-
* The type of the model
|
|
282
|
-
*/
|
|
283
|
-
modelType?: CreatePromptVersionModelType | undefined;
|
|
284
|
-
/**
|
|
285
|
-
* Model Parameters: Not all parameters apply to every model
|
|
286
|
-
*/
|
|
287
|
-
modelParameters?: CreatePromptVersionModelParameters | undefined;
|
|
288
|
-
provider?: CreatePromptVersionProvider | undefined;
|
|
289
|
-
version?: string | undefined;
|
|
290
|
-
messages: Array<CreatePromptVersionMessages>;
|
|
291
|
-
};
|
|
292
|
-
export type CreatePromptVersionMetadata = {
|
|
293
|
-
useCases?: Array<string> | undefined;
|
|
294
|
-
language?: string | undefined;
|
|
295
|
-
};
|
|
296
|
-
export type CreatePromptVersionRequestBody = {
|
|
297
|
-
id: string;
|
|
298
|
-
displayName: string;
|
|
299
|
-
description?: string | null | undefined;
|
|
300
|
-
promptConfig: CreatePromptVersionPromptConfig;
|
|
301
|
-
metadata: CreatePromptVersionMetadata;
|
|
302
|
-
commit: string;
|
|
303
|
-
timestamp: string;
|
|
304
|
-
};
|
|
305
|
-
export type CreatePromptVersionRequest = {
|
|
306
|
-
/**
|
|
307
|
-
* Prompt ID
|
|
308
|
-
*/
|
|
309
|
-
id: string;
|
|
310
|
-
requestBody?: CreatePromptVersionRequestBody | undefined;
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* The type of the model
|
|
314
|
-
*/
|
|
315
|
-
export declare const CreatePromptVersionPromptsModelType: {
|
|
316
|
-
readonly Chat: "chat";
|
|
317
|
-
readonly Completion: "completion";
|
|
318
|
-
readonly Embedding: "embedding";
|
|
319
|
-
readonly Vision: "vision";
|
|
320
|
-
readonly Image: "image";
|
|
321
|
-
readonly Tts: "tts";
|
|
322
|
-
readonly Stt: "stt";
|
|
323
|
-
readonly Rerank: "rerank";
|
|
324
|
-
readonly Moderations: "moderations";
|
|
325
|
-
};
|
|
326
|
-
/**
|
|
327
|
-
* The type of the model
|
|
328
|
-
*/
|
|
329
|
-
export type CreatePromptVersionPromptsModelType = ClosedEnum<typeof CreatePromptVersionPromptsModelType>;
|
|
330
|
-
/**
|
|
331
|
-
* Only supported on `image` models.
|
|
332
|
-
*/
|
|
333
|
-
export declare const CreatePromptVersionPromptsFormat: {
|
|
334
|
-
readonly Url: "url";
|
|
335
|
-
readonly B64Json: "b64_json";
|
|
336
|
-
readonly Text: "text";
|
|
337
|
-
readonly JsonObject: "json_object";
|
|
338
|
-
};
|
|
339
|
-
/**
|
|
340
|
-
* Only supported on `image` models.
|
|
341
|
-
*/
|
|
342
|
-
export type CreatePromptVersionPromptsFormat = ClosedEnum<typeof CreatePromptVersionPromptsFormat>;
|
|
343
|
-
/**
|
|
344
|
-
* Only supported on `image` models.
|
|
345
|
-
*/
|
|
346
|
-
export declare const CreatePromptVersionPromptsQuality: {
|
|
347
|
-
readonly Standard: "standard";
|
|
348
|
-
readonly Hd: "hd";
|
|
349
|
-
};
|
|
350
|
-
/**
|
|
351
|
-
* Only supported on `image` models.
|
|
352
|
-
*/
|
|
353
|
-
export type CreatePromptVersionPromptsQuality = ClosedEnum<typeof CreatePromptVersionPromptsQuality>;
|
|
354
|
-
export declare const CreatePromptVersionResponseFormatPromptsResponse200Type: {
|
|
355
|
-
readonly JsonObject: "json_object";
|
|
356
|
-
};
|
|
357
|
-
export type CreatePromptVersionResponseFormatPromptsResponse200Type = ClosedEnum<typeof CreatePromptVersionResponseFormatPromptsResponse200Type>;
|
|
358
|
-
export type CreatePromptVersionResponseFormatPrompts2 = {
|
|
359
|
-
type: CreatePromptVersionResponseFormatPromptsResponse200Type;
|
|
360
|
-
};
|
|
361
|
-
export declare const CreatePromptVersionResponseFormatPromptsResponseType: {
|
|
362
|
-
readonly JsonSchema: "json_schema";
|
|
363
|
-
};
|
|
364
|
-
export type CreatePromptVersionResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptVersionResponseFormatPromptsResponseType>;
|
|
365
|
-
export type CreatePromptVersionResponseFormatJsonSchema = {
|
|
366
|
-
name: string;
|
|
367
|
-
strict: boolean;
|
|
368
|
-
schema: {
|
|
369
|
-
[k: string]: any;
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
export type CreatePromptVersionResponseFormatPrompts1 = {
|
|
373
|
-
type: CreatePromptVersionResponseFormatPromptsResponseType;
|
|
374
|
-
jsonSchema: CreatePromptVersionResponseFormatJsonSchema;
|
|
375
|
-
};
|
|
376
|
-
/**
|
|
377
|
-
* An object specifying the format that the model must output.
|
|
378
|
-
*
|
|
379
|
-
* @remarks
|
|
380
|
-
*
|
|
381
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
382
|
-
*
|
|
383
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
384
|
-
*
|
|
385
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
386
|
-
*/
|
|
387
|
-
export type CreatePromptVersionPromptsResponseFormat = CreatePromptVersionResponseFormatPrompts2 | CreatePromptVersionResponseFormatPrompts1;
|
|
388
|
-
/**
|
|
389
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
390
|
-
*/
|
|
391
|
-
export declare const CreatePromptVersionPromptsPhotoRealVersion: {
|
|
392
|
-
readonly V1: "v1";
|
|
393
|
-
readonly V2: "v2";
|
|
394
|
-
};
|
|
395
|
-
/**
|
|
396
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
397
|
-
*/
|
|
398
|
-
export type CreatePromptVersionPromptsPhotoRealVersion = ClosedEnum<typeof CreatePromptVersionPromptsPhotoRealVersion>;
|
|
399
|
-
/**
|
|
400
|
-
* The format to return the embeddings
|
|
401
|
-
*/
|
|
402
|
-
export declare const CreatePromptVersionPromptsEncodingFormat: {
|
|
403
|
-
readonly Float: "float";
|
|
404
|
-
readonly Base64: "base64";
|
|
405
|
-
};
|
|
406
|
-
/**
|
|
407
|
-
* The format to return the embeddings
|
|
408
|
-
*/
|
|
409
|
-
export type CreatePromptVersionPromptsEncodingFormat = ClosedEnum<typeof CreatePromptVersionPromptsEncodingFormat>;
|
|
410
|
-
/**
|
|
411
|
-
* Model Parameters: Not all parameters apply to every model
|
|
412
|
-
*/
|
|
413
|
-
export type CreatePromptVersionPromptsModelParameters = {
|
|
414
|
-
/**
|
|
415
|
-
* Only supported on `chat` and `completion` models.
|
|
416
|
-
*/
|
|
417
|
-
temperature?: number | undefined;
|
|
418
|
-
/**
|
|
419
|
-
* Only supported on `chat` and `completion` models.
|
|
420
|
-
*/
|
|
421
|
-
maxTokens?: number | undefined;
|
|
422
|
-
/**
|
|
423
|
-
* Only supported on `chat` and `completion` models.
|
|
424
|
-
*/
|
|
425
|
-
topK?: number | undefined;
|
|
426
|
-
/**
|
|
427
|
-
* Only supported on `chat` and `completion` models.
|
|
428
|
-
*/
|
|
429
|
-
topP?: number | undefined;
|
|
430
|
-
/**
|
|
431
|
-
* Only supported on `chat` and `completion` models.
|
|
432
|
-
*/
|
|
433
|
-
frequencyPenalty?: number | undefined;
|
|
434
|
-
/**
|
|
435
|
-
* Only supported on `chat` and `completion` models.
|
|
436
|
-
*/
|
|
437
|
-
presencePenalty?: number | undefined;
|
|
438
|
-
/**
|
|
439
|
-
* Only supported on `image` models.
|
|
440
|
-
*/
|
|
441
|
-
numImages?: number | undefined;
|
|
442
|
-
/**
|
|
443
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
444
|
-
*/
|
|
445
|
-
seed?: number | undefined;
|
|
446
|
-
/**
|
|
447
|
-
* Only supported on `image` models.
|
|
448
|
-
*/
|
|
449
|
-
format?: CreatePromptVersionPromptsFormat | undefined;
|
|
450
|
-
/**
|
|
451
|
-
* Only supported on `image` models.
|
|
452
|
-
*/
|
|
453
|
-
dimensions?: string | undefined;
|
|
454
|
-
/**
|
|
455
|
-
* Only supported on `image` models.
|
|
456
|
-
*/
|
|
457
|
-
quality?: CreatePromptVersionPromptsQuality | undefined;
|
|
458
|
-
/**
|
|
459
|
-
* Only supported on `image` models.
|
|
460
|
-
*/
|
|
461
|
-
style?: string | undefined;
|
|
462
|
-
/**
|
|
463
|
-
* An object specifying the format that the model must output.
|
|
464
|
-
*
|
|
465
|
-
* @remarks
|
|
466
|
-
*
|
|
467
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
468
|
-
*
|
|
469
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
470
|
-
*
|
|
471
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
472
|
-
*/
|
|
473
|
-
responseFormat?: CreatePromptVersionResponseFormatPrompts2 | CreatePromptVersionResponseFormatPrompts1 | null | undefined;
|
|
474
|
-
/**
|
|
475
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
476
|
-
*/
|
|
477
|
-
photoRealVersion?: CreatePromptVersionPromptsPhotoRealVersion | undefined;
|
|
478
|
-
/**
|
|
479
|
-
* The format to return the embeddings
|
|
480
|
-
*/
|
|
481
|
-
encodingFormat?: CreatePromptVersionPromptsEncodingFormat | undefined;
|
|
482
|
-
};
|
|
483
|
-
export declare const CreatePromptVersionPromptsProvider: {
|
|
484
|
-
readonly Cohere: "cohere";
|
|
485
|
-
readonly Openai: "openai";
|
|
486
|
-
readonly Anthropic: "anthropic";
|
|
487
|
-
readonly Huggingface: "huggingface";
|
|
488
|
-
readonly Replicate: "replicate";
|
|
489
|
-
readonly Google: "google";
|
|
490
|
-
readonly GoogleAi: "google-ai";
|
|
491
|
-
readonly Azure: "azure";
|
|
492
|
-
readonly Aws: "aws";
|
|
493
|
-
readonly Anyscale: "anyscale";
|
|
494
|
-
readonly Perplexity: "perplexity";
|
|
495
|
-
readonly Groq: "groq";
|
|
496
|
-
readonly Fal: "fal";
|
|
497
|
-
readonly Leonardoai: "leonardoai";
|
|
498
|
-
readonly Nvidia: "nvidia";
|
|
499
|
-
readonly Jina: "jina";
|
|
500
|
-
};
|
|
501
|
-
export type CreatePromptVersionPromptsProvider = ClosedEnum<typeof CreatePromptVersionPromptsProvider>;
|
|
502
|
-
/**
|
|
503
|
-
* The role of the prompt message
|
|
504
|
-
*/
|
|
505
|
-
export declare const CreatePromptVersionPromptsRole: {
|
|
506
|
-
readonly System: "system";
|
|
507
|
-
readonly Assistant: "assistant";
|
|
508
|
-
readonly User: "user";
|
|
509
|
-
readonly Exception: "exception";
|
|
510
|
-
readonly Tool: "tool";
|
|
511
|
-
readonly Prompt: "prompt";
|
|
512
|
-
readonly Correction: "correction";
|
|
513
|
-
readonly ExpectedOutput: "expected_output";
|
|
514
|
-
};
|
|
515
|
-
/**
|
|
516
|
-
* The role of the prompt message
|
|
517
|
-
*/
|
|
518
|
-
export type CreatePromptVersionPromptsRole = ClosedEnum<typeof CreatePromptVersionPromptsRole>;
|
|
519
|
-
export declare const CreatePromptVersion2PromptsResponse200Type: {
|
|
520
|
-
readonly ImageUrl: "image_url";
|
|
521
|
-
};
|
|
522
|
-
export type CreatePromptVersion2PromptsResponse200Type = ClosedEnum<typeof CreatePromptVersion2PromptsResponse200Type>;
|
|
523
|
-
export type CreatePromptVersion2PromptsImageUrl = {
|
|
524
|
-
/**
|
|
525
|
-
* The orq.ai id of the image
|
|
526
|
-
*/
|
|
527
|
-
id?: string | undefined;
|
|
528
|
-
/**
|
|
529
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
530
|
-
*/
|
|
531
|
-
url: string;
|
|
532
|
-
/**
|
|
533
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
534
|
-
*/
|
|
535
|
-
detail?: string | undefined;
|
|
536
|
-
};
|
|
537
|
-
/**
|
|
538
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
539
|
-
*/
|
|
540
|
-
export type CreatePromptVersion2Prompts2 = {
|
|
541
|
-
type: CreatePromptVersion2PromptsResponse200Type;
|
|
542
|
-
imageUrl: CreatePromptVersion2PromptsImageUrl;
|
|
543
|
-
};
|
|
544
|
-
export declare const CreatePromptVersion2PromptsResponseType: {
|
|
545
|
-
readonly Text: "text";
|
|
546
|
-
};
|
|
547
|
-
export type CreatePromptVersion2PromptsResponseType = ClosedEnum<typeof CreatePromptVersion2PromptsResponseType>;
|
|
548
|
-
/**
|
|
549
|
-
* Text content part of a prompt message
|
|
550
|
-
*/
|
|
551
|
-
export type CreatePromptVersion2Prompts1 = {
|
|
552
|
-
type: CreatePromptVersion2PromptsResponseType;
|
|
553
|
-
text: string;
|
|
554
|
-
};
|
|
555
|
-
export type CreatePromptVersionContentPrompts2 = CreatePromptVersion2Prompts1 | CreatePromptVersion2Prompts2;
|
|
556
|
-
/**
|
|
557
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
558
|
-
*/
|
|
559
|
-
export type CreatePromptVersionPromptsContent = string | Array<CreatePromptVersion2Prompts1 | CreatePromptVersion2Prompts2>;
|
|
560
|
-
export declare const CreatePromptVersionPromptsType: {
|
|
561
|
-
readonly Function: "function";
|
|
562
|
-
};
|
|
563
|
-
export type CreatePromptVersionPromptsType = ClosedEnum<typeof CreatePromptVersionPromptsType>;
|
|
564
|
-
export type CreatePromptVersionPromptsFunction = {
|
|
565
|
-
name: string;
|
|
566
|
-
/**
|
|
567
|
-
* JSON string arguments for the functions
|
|
568
|
-
*/
|
|
569
|
-
arguments: string;
|
|
570
|
-
};
|
|
571
|
-
export type CreatePromptVersionPromptsToolCalls = {
|
|
572
|
-
id?: string | undefined;
|
|
573
|
-
index?: number | undefined;
|
|
574
|
-
type: CreatePromptVersionPromptsType;
|
|
575
|
-
function: CreatePromptVersionPromptsFunction;
|
|
576
|
-
};
|
|
577
|
-
export type CreatePromptVersionPromptsMessages = {
|
|
578
|
-
/**
|
|
579
|
-
* The role of the prompt message
|
|
580
|
-
*/
|
|
581
|
-
role: CreatePromptVersionPromptsRole;
|
|
582
|
-
/**
|
|
583
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
584
|
-
*/
|
|
585
|
-
content: string | Array<CreatePromptVersion2Prompts1 | CreatePromptVersion2Prompts2>;
|
|
586
|
-
toolCalls?: Array<CreatePromptVersionPromptsToolCalls> | undefined;
|
|
587
|
-
};
|
|
588
|
-
export type CreatePromptVersionPromptsPromptConfig = {
|
|
589
|
-
stream?: boolean | undefined;
|
|
590
|
-
model?: string | undefined;
|
|
591
|
-
/**
|
|
592
|
-
* The id of the resource
|
|
593
|
-
*/
|
|
594
|
-
modelDbId?: string | undefined;
|
|
595
|
-
/**
|
|
596
|
-
* The type of the model
|
|
597
|
-
*/
|
|
598
|
-
modelType?: CreatePromptVersionPromptsModelType | undefined;
|
|
599
|
-
/**
|
|
600
|
-
* Model Parameters: Not all parameters apply to every model
|
|
601
|
-
*/
|
|
602
|
-
modelParameters?: CreatePromptVersionPromptsModelParameters | undefined;
|
|
603
|
-
provider?: CreatePromptVersionPromptsProvider | undefined;
|
|
604
|
-
/**
|
|
605
|
-
* The id of the resource
|
|
606
|
-
*/
|
|
607
|
-
integrationId?: string | null | undefined;
|
|
608
|
-
version?: string | undefined;
|
|
609
|
-
messages: Array<CreatePromptVersionPromptsMessages>;
|
|
610
|
-
};
|
|
611
|
-
export type CreatePromptVersionPromptsMetadata = {
|
|
612
|
-
useCases?: Array<string> | undefined;
|
|
613
|
-
language?: string | undefined;
|
|
614
|
-
};
|
|
615
|
-
/**
|
|
616
|
-
* Prompt version created.
|
|
617
|
-
*/
|
|
618
|
-
export type CreatePromptVersionResponseBody = {
|
|
619
|
-
id: string;
|
|
620
|
-
displayName: string;
|
|
621
|
-
description?: string | null | undefined;
|
|
622
|
-
promptConfig: CreatePromptVersionPromptsPromptConfig;
|
|
623
|
-
metadata: CreatePromptVersionPromptsMetadata;
|
|
624
|
-
commit: string;
|
|
625
|
-
timestamp: string;
|
|
626
|
-
};
|
|
627
|
-
/** @internal */
|
|
628
|
-
export declare const CreatePromptVersionModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionModelType>;
|
|
629
|
-
/** @internal */
|
|
630
|
-
export declare const CreatePromptVersionModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionModelType>;
|
|
631
|
-
/**
|
|
632
|
-
* @internal
|
|
633
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
634
|
-
*/
|
|
635
|
-
export declare namespace CreatePromptVersionModelType$ {
|
|
636
|
-
/** @deprecated use `CreatePromptVersionModelType$inboundSchema` instead. */
|
|
637
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
638
|
-
readonly Chat: "chat";
|
|
639
|
-
readonly Completion: "completion";
|
|
640
|
-
readonly Embedding: "embedding";
|
|
641
|
-
readonly Vision: "vision";
|
|
642
|
-
readonly Image: "image";
|
|
643
|
-
readonly Tts: "tts";
|
|
644
|
-
readonly Stt: "stt";
|
|
645
|
-
readonly Rerank: "rerank";
|
|
646
|
-
readonly Moderations: "moderations";
|
|
647
|
-
}>;
|
|
648
|
-
/** @deprecated use `CreatePromptVersionModelType$outboundSchema` instead. */
|
|
649
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
650
|
-
readonly Chat: "chat";
|
|
651
|
-
readonly Completion: "completion";
|
|
652
|
-
readonly Embedding: "embedding";
|
|
653
|
-
readonly Vision: "vision";
|
|
654
|
-
readonly Image: "image";
|
|
655
|
-
readonly Tts: "tts";
|
|
656
|
-
readonly Stt: "stt";
|
|
657
|
-
readonly Rerank: "rerank";
|
|
658
|
-
readonly Moderations: "moderations";
|
|
659
|
-
}>;
|
|
660
|
-
}
|
|
661
|
-
/** @internal */
|
|
662
|
-
export declare const CreatePromptVersionFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionFormat>;
|
|
663
|
-
/** @internal */
|
|
664
|
-
export declare const CreatePromptVersionFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionFormat>;
|
|
665
|
-
/**
|
|
666
|
-
* @internal
|
|
667
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
668
|
-
*/
|
|
669
|
-
export declare namespace CreatePromptVersionFormat$ {
|
|
670
|
-
/** @deprecated use `CreatePromptVersionFormat$inboundSchema` instead. */
|
|
671
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
672
|
-
readonly Url: "url";
|
|
673
|
-
readonly B64Json: "b64_json";
|
|
674
|
-
readonly Text: "text";
|
|
675
|
-
readonly JsonObject: "json_object";
|
|
676
|
-
}>;
|
|
677
|
-
/** @deprecated use `CreatePromptVersionFormat$outboundSchema` instead. */
|
|
678
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
679
|
-
readonly Url: "url";
|
|
680
|
-
readonly B64Json: "b64_json";
|
|
681
|
-
readonly Text: "text";
|
|
682
|
-
readonly JsonObject: "json_object";
|
|
683
|
-
}>;
|
|
684
|
-
}
|
|
685
|
-
/** @internal */
|
|
686
|
-
export declare const CreatePromptVersionQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionQuality>;
|
|
687
|
-
/** @internal */
|
|
688
|
-
export declare const CreatePromptVersionQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionQuality>;
|
|
689
|
-
/**
|
|
690
|
-
* @internal
|
|
691
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
692
|
-
*/
|
|
693
|
-
export declare namespace CreatePromptVersionQuality$ {
|
|
694
|
-
/** @deprecated use `CreatePromptVersionQuality$inboundSchema` instead. */
|
|
695
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
696
|
-
readonly Standard: "standard";
|
|
697
|
-
readonly Hd: "hd";
|
|
698
|
-
}>;
|
|
699
|
-
/** @deprecated use `CreatePromptVersionQuality$outboundSchema` instead. */
|
|
700
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
701
|
-
readonly Standard: "standard";
|
|
702
|
-
readonly Hd: "hd";
|
|
703
|
-
}>;
|
|
704
|
-
}
|
|
705
|
-
/** @internal */
|
|
706
|
-
export declare const CreatePromptVersionResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsType>;
|
|
707
|
-
/** @internal */
|
|
708
|
-
export declare const CreatePromptVersionResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsType>;
|
|
709
|
-
/**
|
|
710
|
-
* @internal
|
|
711
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
712
|
-
*/
|
|
713
|
-
export declare namespace CreatePromptVersionResponseFormatPromptsType$ {
|
|
714
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPromptsType$inboundSchema` instead. */
|
|
715
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
716
|
-
readonly JsonObject: "json_object";
|
|
717
|
-
}>;
|
|
718
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPromptsType$outboundSchema` instead. */
|
|
719
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
720
|
-
readonly JsonObject: "json_object";
|
|
721
|
-
}>;
|
|
722
|
-
}
|
|
723
|
-
/** @internal */
|
|
724
|
-
export declare const CreatePromptVersionResponseFormat2$inboundSchema: z.ZodType<CreatePromptVersionResponseFormat2, z.ZodTypeDef, unknown>;
|
|
725
|
-
/** @internal */
|
|
726
|
-
export type CreatePromptVersionResponseFormat2$Outbound = {
|
|
727
|
-
type: string;
|
|
728
|
-
};
|
|
729
|
-
/** @internal */
|
|
730
|
-
export declare const CreatePromptVersionResponseFormat2$outboundSchema: z.ZodType<CreatePromptVersionResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat2>;
|
|
731
|
-
/**
|
|
732
|
-
* @internal
|
|
733
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
734
|
-
*/
|
|
735
|
-
export declare namespace CreatePromptVersionResponseFormat2$ {
|
|
736
|
-
/** @deprecated use `CreatePromptVersionResponseFormat2$inboundSchema` instead. */
|
|
737
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseFormat2, z.ZodTypeDef, unknown>;
|
|
738
|
-
/** @deprecated use `CreatePromptVersionResponseFormat2$outboundSchema` instead. */
|
|
739
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat2>;
|
|
740
|
-
/** @deprecated use `CreatePromptVersionResponseFormat2$Outbound` instead. */
|
|
741
|
-
type Outbound = CreatePromptVersionResponseFormat2$Outbound;
|
|
742
|
-
}
|
|
743
|
-
export declare function createPromptVersionResponseFormat2ToJSON(createPromptVersionResponseFormat2: CreatePromptVersionResponseFormat2): string;
|
|
744
|
-
export declare function createPromptVersionResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormat2, SDKValidationError>;
|
|
745
|
-
/** @internal */
|
|
746
|
-
export declare const CreatePromptVersionResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatType>;
|
|
747
|
-
/** @internal */
|
|
748
|
-
export declare const CreatePromptVersionResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatType>;
|
|
749
|
-
/**
|
|
750
|
-
* @internal
|
|
751
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
752
|
-
*/
|
|
753
|
-
export declare namespace CreatePromptVersionResponseFormatType$ {
|
|
754
|
-
/** @deprecated use `CreatePromptVersionResponseFormatType$inboundSchema` instead. */
|
|
755
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
756
|
-
readonly JsonSchema: "json_schema";
|
|
757
|
-
}>;
|
|
758
|
-
/** @deprecated use `CreatePromptVersionResponseFormatType$outboundSchema` instead. */
|
|
759
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
760
|
-
readonly JsonSchema: "json_schema";
|
|
761
|
-
}>;
|
|
762
|
-
}
|
|
763
|
-
/** @internal */
|
|
764
|
-
export declare const ResponseFormatJsonSchema$inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
765
|
-
/** @internal */
|
|
766
|
-
export type ResponseFormatJsonSchema$Outbound = {
|
|
767
|
-
name: string;
|
|
768
|
-
strict: boolean;
|
|
769
|
-
schema: {
|
|
770
|
-
[k: string]: any;
|
|
771
|
-
};
|
|
772
|
-
};
|
|
773
|
-
/** @internal */
|
|
774
|
-
export declare const ResponseFormatJsonSchema$outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
|
|
775
|
-
/**
|
|
776
|
-
* @internal
|
|
777
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
778
|
-
*/
|
|
779
|
-
export declare namespace ResponseFormatJsonSchema$ {
|
|
780
|
-
/** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
|
|
781
|
-
const inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
782
|
-
/** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
|
|
783
|
-
const outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
|
|
784
|
-
/** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
|
|
785
|
-
type Outbound = ResponseFormatJsonSchema$Outbound;
|
|
786
|
-
}
|
|
787
|
-
export declare function responseFormatJsonSchemaToJSON(responseFormatJsonSchema: ResponseFormatJsonSchema): string;
|
|
788
|
-
export declare function responseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError>;
|
|
789
|
-
/** @internal */
|
|
790
|
-
export declare const CreatePromptVersionResponseFormat1$inboundSchema: z.ZodType<CreatePromptVersionResponseFormat1, z.ZodTypeDef, unknown>;
|
|
791
|
-
/** @internal */
|
|
792
|
-
export type CreatePromptVersionResponseFormat1$Outbound = {
|
|
793
|
-
type: string;
|
|
794
|
-
json_schema: ResponseFormatJsonSchema$Outbound;
|
|
795
|
-
};
|
|
796
|
-
/** @internal */
|
|
797
|
-
export declare const CreatePromptVersionResponseFormat1$outboundSchema: z.ZodType<CreatePromptVersionResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat1>;
|
|
798
|
-
/**
|
|
799
|
-
* @internal
|
|
800
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
801
|
-
*/
|
|
802
|
-
export declare namespace CreatePromptVersionResponseFormat1$ {
|
|
803
|
-
/** @deprecated use `CreatePromptVersionResponseFormat1$inboundSchema` instead. */
|
|
804
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseFormat1, z.ZodTypeDef, unknown>;
|
|
805
|
-
/** @deprecated use `CreatePromptVersionResponseFormat1$outboundSchema` instead. */
|
|
806
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat1>;
|
|
807
|
-
/** @deprecated use `CreatePromptVersionResponseFormat1$Outbound` instead. */
|
|
808
|
-
type Outbound = CreatePromptVersionResponseFormat1$Outbound;
|
|
809
|
-
}
|
|
810
|
-
export declare function createPromptVersionResponseFormat1ToJSON(createPromptVersionResponseFormat1: CreatePromptVersionResponseFormat1): string;
|
|
811
|
-
export declare function createPromptVersionResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormat1, SDKValidationError>;
|
|
812
|
-
/** @internal */
|
|
813
|
-
export declare const CreatePromptVersionResponseFormat$inboundSchema: z.ZodType<CreatePromptVersionResponseFormat, z.ZodTypeDef, unknown>;
|
|
814
|
-
/** @internal */
|
|
815
|
-
export type CreatePromptVersionResponseFormat$Outbound = CreatePromptVersionResponseFormat2$Outbound | CreatePromptVersionResponseFormat1$Outbound;
|
|
816
|
-
/** @internal */
|
|
817
|
-
export declare const CreatePromptVersionResponseFormat$outboundSchema: z.ZodType<CreatePromptVersionResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat>;
|
|
818
|
-
/**
|
|
819
|
-
* @internal
|
|
820
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
821
|
-
*/
|
|
822
|
-
export declare namespace CreatePromptVersionResponseFormat$ {
|
|
823
|
-
/** @deprecated use `CreatePromptVersionResponseFormat$inboundSchema` instead. */
|
|
824
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseFormat, z.ZodTypeDef, unknown>;
|
|
825
|
-
/** @deprecated use `CreatePromptVersionResponseFormat$outboundSchema` instead. */
|
|
826
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat>;
|
|
827
|
-
/** @deprecated use `CreatePromptVersionResponseFormat$Outbound` instead. */
|
|
828
|
-
type Outbound = CreatePromptVersionResponseFormat$Outbound;
|
|
829
|
-
}
|
|
830
|
-
export declare function createPromptVersionResponseFormatToJSON(createPromptVersionResponseFormat: CreatePromptVersionResponseFormat): string;
|
|
831
|
-
export declare function createPromptVersionResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormat, SDKValidationError>;
|
|
832
|
-
/** @internal */
|
|
833
|
-
export declare const CreatePromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPhotoRealVersion>;
|
|
834
|
-
/** @internal */
|
|
835
|
-
export declare const CreatePromptVersionPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPhotoRealVersion>;
|
|
836
|
-
/**
|
|
837
|
-
* @internal
|
|
838
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
839
|
-
*/
|
|
840
|
-
export declare namespace CreatePromptVersionPhotoRealVersion$ {
|
|
841
|
-
/** @deprecated use `CreatePromptVersionPhotoRealVersion$inboundSchema` instead. */
|
|
842
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
843
|
-
readonly V1: "v1";
|
|
844
|
-
readonly V2: "v2";
|
|
845
|
-
}>;
|
|
846
|
-
/** @deprecated use `CreatePromptVersionPhotoRealVersion$outboundSchema` instead. */
|
|
847
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
848
|
-
readonly V1: "v1";
|
|
849
|
-
readonly V2: "v2";
|
|
850
|
-
}>;
|
|
851
|
-
}
|
|
852
|
-
/** @internal */
|
|
853
|
-
export declare const CreatePromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionEncodingFormat>;
|
|
854
|
-
/** @internal */
|
|
855
|
-
export declare const CreatePromptVersionEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionEncodingFormat>;
|
|
856
|
-
/**
|
|
857
|
-
* @internal
|
|
858
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
859
|
-
*/
|
|
860
|
-
export declare namespace CreatePromptVersionEncodingFormat$ {
|
|
861
|
-
/** @deprecated use `CreatePromptVersionEncodingFormat$inboundSchema` instead. */
|
|
862
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
863
|
-
readonly Float: "float";
|
|
864
|
-
readonly Base64: "base64";
|
|
865
|
-
}>;
|
|
866
|
-
/** @deprecated use `CreatePromptVersionEncodingFormat$outboundSchema` instead. */
|
|
867
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
868
|
-
readonly Float: "float";
|
|
869
|
-
readonly Base64: "base64";
|
|
870
|
-
}>;
|
|
871
|
-
}
|
|
872
|
-
/** @internal */
|
|
873
|
-
export declare const CreatePromptVersionModelParameters$inboundSchema: z.ZodType<CreatePromptVersionModelParameters, z.ZodTypeDef, unknown>;
|
|
874
|
-
/** @internal */
|
|
875
|
-
export type CreatePromptVersionModelParameters$Outbound = {
|
|
876
|
-
temperature?: number | undefined;
|
|
877
|
-
maxTokens?: number | undefined;
|
|
878
|
-
topK?: number | undefined;
|
|
879
|
-
topP?: number | undefined;
|
|
880
|
-
frequencyPenalty?: number | undefined;
|
|
881
|
-
presencePenalty?: number | undefined;
|
|
882
|
-
numImages?: number | undefined;
|
|
883
|
-
seed?: number | undefined;
|
|
884
|
-
format?: string | undefined;
|
|
885
|
-
dimensions?: string | undefined;
|
|
886
|
-
quality?: string | undefined;
|
|
887
|
-
style?: string | undefined;
|
|
888
|
-
responseFormat?: CreatePromptVersionResponseFormat2$Outbound | CreatePromptVersionResponseFormat1$Outbound | null | undefined;
|
|
889
|
-
photoRealVersion?: string | undefined;
|
|
890
|
-
encoding_format?: string | undefined;
|
|
891
|
-
};
|
|
892
|
-
/** @internal */
|
|
893
|
-
export declare const CreatePromptVersionModelParameters$outboundSchema: z.ZodType<CreatePromptVersionModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionModelParameters>;
|
|
894
|
-
/**
|
|
895
|
-
* @internal
|
|
896
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
897
|
-
*/
|
|
898
|
-
export declare namespace CreatePromptVersionModelParameters$ {
|
|
899
|
-
/** @deprecated use `CreatePromptVersionModelParameters$inboundSchema` instead. */
|
|
900
|
-
const inboundSchema: z.ZodType<CreatePromptVersionModelParameters, z.ZodTypeDef, unknown>;
|
|
901
|
-
/** @deprecated use `CreatePromptVersionModelParameters$outboundSchema` instead. */
|
|
902
|
-
const outboundSchema: z.ZodType<CreatePromptVersionModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionModelParameters>;
|
|
903
|
-
/** @deprecated use `CreatePromptVersionModelParameters$Outbound` instead. */
|
|
904
|
-
type Outbound = CreatePromptVersionModelParameters$Outbound;
|
|
905
|
-
}
|
|
906
|
-
export declare function createPromptVersionModelParametersToJSON(createPromptVersionModelParameters: CreatePromptVersionModelParameters): string;
|
|
907
|
-
export declare function createPromptVersionModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionModelParameters, SDKValidationError>;
|
|
908
|
-
/** @internal */
|
|
909
|
-
export declare const CreatePromptVersionProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionProvider>;
|
|
910
|
-
/** @internal */
|
|
911
|
-
export declare const CreatePromptVersionProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionProvider>;
|
|
912
|
-
/**
|
|
913
|
-
* @internal
|
|
914
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
915
|
-
*/
|
|
916
|
-
export declare namespace CreatePromptVersionProvider$ {
|
|
917
|
-
/** @deprecated use `CreatePromptVersionProvider$inboundSchema` instead. */
|
|
918
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
919
|
-
readonly Cohere: "cohere";
|
|
920
|
-
readonly Openai: "openai";
|
|
921
|
-
readonly Anthropic: "anthropic";
|
|
922
|
-
readonly Huggingface: "huggingface";
|
|
923
|
-
readonly Replicate: "replicate";
|
|
924
|
-
readonly Google: "google";
|
|
925
|
-
readonly GoogleAi: "google-ai";
|
|
926
|
-
readonly Azure: "azure";
|
|
927
|
-
readonly Aws: "aws";
|
|
928
|
-
readonly Anyscale: "anyscale";
|
|
929
|
-
readonly Perplexity: "perplexity";
|
|
930
|
-
readonly Groq: "groq";
|
|
931
|
-
readonly Fal: "fal";
|
|
932
|
-
readonly Leonardoai: "leonardoai";
|
|
933
|
-
readonly Nvidia: "nvidia";
|
|
934
|
-
readonly Jina: "jina";
|
|
935
|
-
}>;
|
|
936
|
-
/** @deprecated use `CreatePromptVersionProvider$outboundSchema` instead. */
|
|
937
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
938
|
-
readonly Cohere: "cohere";
|
|
939
|
-
readonly Openai: "openai";
|
|
940
|
-
readonly Anthropic: "anthropic";
|
|
941
|
-
readonly Huggingface: "huggingface";
|
|
942
|
-
readonly Replicate: "replicate";
|
|
943
|
-
readonly Google: "google";
|
|
944
|
-
readonly GoogleAi: "google-ai";
|
|
945
|
-
readonly Azure: "azure";
|
|
946
|
-
readonly Aws: "aws";
|
|
947
|
-
readonly Anyscale: "anyscale";
|
|
948
|
-
readonly Perplexity: "perplexity";
|
|
949
|
-
readonly Groq: "groq";
|
|
950
|
-
readonly Fal: "fal";
|
|
951
|
-
readonly Leonardoai: "leonardoai";
|
|
952
|
-
readonly Nvidia: "nvidia";
|
|
953
|
-
readonly Jina: "jina";
|
|
954
|
-
}>;
|
|
955
|
-
}
|
|
956
|
-
/** @internal */
|
|
957
|
-
export declare const CreatePromptVersionRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionRole>;
|
|
958
|
-
/** @internal */
|
|
959
|
-
export declare const CreatePromptVersionRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionRole>;
|
|
960
|
-
/**
|
|
961
|
-
* @internal
|
|
962
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
963
|
-
*/
|
|
964
|
-
export declare namespace CreatePromptVersionRole$ {
|
|
965
|
-
/** @deprecated use `CreatePromptVersionRole$inboundSchema` instead. */
|
|
966
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
967
|
-
readonly System: "system";
|
|
968
|
-
readonly Assistant: "assistant";
|
|
969
|
-
readonly User: "user";
|
|
970
|
-
readonly Exception: "exception";
|
|
971
|
-
readonly Tool: "tool";
|
|
972
|
-
readonly Prompt: "prompt";
|
|
973
|
-
readonly Correction: "correction";
|
|
974
|
-
readonly ExpectedOutput: "expected_output";
|
|
975
|
-
}>;
|
|
976
|
-
/** @deprecated use `CreatePromptVersionRole$outboundSchema` instead. */
|
|
977
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
978
|
-
readonly System: "system";
|
|
979
|
-
readonly Assistant: "assistant";
|
|
980
|
-
readonly User: "user";
|
|
981
|
-
readonly Exception: "exception";
|
|
982
|
-
readonly Tool: "tool";
|
|
983
|
-
readonly Prompt: "prompt";
|
|
984
|
-
readonly Correction: "correction";
|
|
985
|
-
readonly ExpectedOutput: "expected_output";
|
|
986
|
-
}>;
|
|
987
|
-
}
|
|
988
|
-
/** @internal */
|
|
989
|
-
export declare const CreatePromptVersion2PromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsType>;
|
|
990
|
-
/** @internal */
|
|
991
|
-
export declare const CreatePromptVersion2PromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsType>;
|
|
992
|
-
/**
|
|
993
|
-
* @internal
|
|
994
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
995
|
-
*/
|
|
996
|
-
export declare namespace CreatePromptVersion2PromptsType$ {
|
|
997
|
-
/** @deprecated use `CreatePromptVersion2PromptsType$inboundSchema` instead. */
|
|
998
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
999
|
-
readonly ImageUrl: "image_url";
|
|
1000
|
-
}>;
|
|
1001
|
-
/** @deprecated use `CreatePromptVersion2PromptsType$outboundSchema` instead. */
|
|
1002
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1003
|
-
readonly ImageUrl: "image_url";
|
|
1004
|
-
}>;
|
|
1005
|
-
}
|
|
1006
|
-
/** @internal */
|
|
1007
|
-
export declare const CreatePromptVersion2ImageUrl$inboundSchema: z.ZodType<CreatePromptVersion2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1008
|
-
/** @internal */
|
|
1009
|
-
export type CreatePromptVersion2ImageUrl$Outbound = {
|
|
1010
|
-
url: string;
|
|
1011
|
-
detail?: string | undefined;
|
|
1012
|
-
};
|
|
1013
|
-
/** @internal */
|
|
1014
|
-
export declare const CreatePromptVersion2ImageUrl$outboundSchema: z.ZodType<CreatePromptVersion2ImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2ImageUrl>;
|
|
1015
|
-
/**
|
|
1016
|
-
* @internal
|
|
1017
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1018
|
-
*/
|
|
1019
|
-
export declare namespace CreatePromptVersion2ImageUrl$ {
|
|
1020
|
-
/** @deprecated use `CreatePromptVersion2ImageUrl$inboundSchema` instead. */
|
|
1021
|
-
const inboundSchema: z.ZodType<CreatePromptVersion2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1022
|
-
/** @deprecated use `CreatePromptVersion2ImageUrl$outboundSchema` instead. */
|
|
1023
|
-
const outboundSchema: z.ZodType<CreatePromptVersion2ImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2ImageUrl>;
|
|
1024
|
-
/** @deprecated use `CreatePromptVersion2ImageUrl$Outbound` instead. */
|
|
1025
|
-
type Outbound = CreatePromptVersion2ImageUrl$Outbound;
|
|
1026
|
-
}
|
|
1027
|
-
export declare function createPromptVersion2ImageUrlToJSON(createPromptVersion2ImageUrl: CreatePromptVersion2ImageUrl): string;
|
|
1028
|
-
export declare function createPromptVersion2ImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2ImageUrl, SDKValidationError>;
|
|
1029
|
-
/** @internal */
|
|
1030
|
-
export declare const CreatePromptVersion22$inboundSchema: z.ZodType<CreatePromptVersion22, z.ZodTypeDef, unknown>;
|
|
1031
|
-
/** @internal */
|
|
1032
|
-
export type CreatePromptVersion22$Outbound = {
|
|
1033
|
-
type: string;
|
|
1034
|
-
image_url: CreatePromptVersion2ImageUrl$Outbound;
|
|
1035
|
-
};
|
|
1036
|
-
/** @internal */
|
|
1037
|
-
export declare const CreatePromptVersion22$outboundSchema: z.ZodType<CreatePromptVersion22$Outbound, z.ZodTypeDef, CreatePromptVersion22>;
|
|
1038
|
-
/**
|
|
1039
|
-
* @internal
|
|
1040
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1041
|
-
*/
|
|
1042
|
-
export declare namespace CreatePromptVersion22$ {
|
|
1043
|
-
/** @deprecated use `CreatePromptVersion22$inboundSchema` instead. */
|
|
1044
|
-
const inboundSchema: z.ZodType<CreatePromptVersion22, z.ZodTypeDef, unknown>;
|
|
1045
|
-
/** @deprecated use `CreatePromptVersion22$outboundSchema` instead. */
|
|
1046
|
-
const outboundSchema: z.ZodType<CreatePromptVersion22$Outbound, z.ZodTypeDef, CreatePromptVersion22>;
|
|
1047
|
-
/** @deprecated use `CreatePromptVersion22$Outbound` instead. */
|
|
1048
|
-
type Outbound = CreatePromptVersion22$Outbound;
|
|
1049
|
-
}
|
|
1050
|
-
export declare function createPromptVersion22ToJSON(createPromptVersion22: CreatePromptVersion22): string;
|
|
1051
|
-
export declare function createPromptVersion22FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion22, SDKValidationError>;
|
|
1052
|
-
/** @internal */
|
|
1053
|
-
export declare const CreatePromptVersion2Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2Type>;
|
|
1054
|
-
/** @internal */
|
|
1055
|
-
export declare const CreatePromptVersion2Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2Type>;
|
|
1056
|
-
/**
|
|
1057
|
-
* @internal
|
|
1058
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1059
|
-
*/
|
|
1060
|
-
export declare namespace CreatePromptVersion2Type$ {
|
|
1061
|
-
/** @deprecated use `CreatePromptVersion2Type$inboundSchema` instead. */
|
|
1062
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1063
|
-
readonly Text: "text";
|
|
1064
|
-
}>;
|
|
1065
|
-
/** @deprecated use `CreatePromptVersion2Type$outboundSchema` instead. */
|
|
1066
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1067
|
-
readonly Text: "text";
|
|
1068
|
-
}>;
|
|
1069
|
-
}
|
|
1070
|
-
/** @internal */
|
|
1071
|
-
export declare const CreatePromptVersion21$inboundSchema: z.ZodType<CreatePromptVersion21, z.ZodTypeDef, unknown>;
|
|
1072
|
-
/** @internal */
|
|
1073
|
-
export type CreatePromptVersion21$Outbound = {
|
|
1074
|
-
type: string;
|
|
1075
|
-
text: string;
|
|
1076
|
-
};
|
|
1077
|
-
/** @internal */
|
|
1078
|
-
export declare const CreatePromptVersion21$outboundSchema: z.ZodType<CreatePromptVersion21$Outbound, z.ZodTypeDef, CreatePromptVersion21>;
|
|
1079
|
-
/**
|
|
1080
|
-
* @internal
|
|
1081
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1082
|
-
*/
|
|
1083
|
-
export declare namespace CreatePromptVersion21$ {
|
|
1084
|
-
/** @deprecated use `CreatePromptVersion21$inboundSchema` instead. */
|
|
1085
|
-
const inboundSchema: z.ZodType<CreatePromptVersion21, z.ZodTypeDef, unknown>;
|
|
1086
|
-
/** @deprecated use `CreatePromptVersion21$outboundSchema` instead. */
|
|
1087
|
-
const outboundSchema: z.ZodType<CreatePromptVersion21$Outbound, z.ZodTypeDef, CreatePromptVersion21>;
|
|
1088
|
-
/** @deprecated use `CreatePromptVersion21$Outbound` instead. */
|
|
1089
|
-
type Outbound = CreatePromptVersion21$Outbound;
|
|
1090
|
-
}
|
|
1091
|
-
export declare function createPromptVersion21ToJSON(createPromptVersion21: CreatePromptVersion21): string;
|
|
1092
|
-
export declare function createPromptVersion21FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion21, SDKValidationError>;
|
|
1093
|
-
/** @internal */
|
|
1094
|
-
export declare const CreatePromptVersionContent2$inboundSchema: z.ZodType<CreatePromptVersionContent2, z.ZodTypeDef, unknown>;
|
|
1095
|
-
/** @internal */
|
|
1096
|
-
export type CreatePromptVersionContent2$Outbound = CreatePromptVersion21$Outbound | CreatePromptVersion22$Outbound;
|
|
1097
|
-
/** @internal */
|
|
1098
|
-
export declare const CreatePromptVersionContent2$outboundSchema: z.ZodType<CreatePromptVersionContent2$Outbound, z.ZodTypeDef, CreatePromptVersionContent2>;
|
|
1099
|
-
/**
|
|
1100
|
-
* @internal
|
|
1101
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1102
|
-
*/
|
|
1103
|
-
export declare namespace CreatePromptVersionContent2$ {
|
|
1104
|
-
/** @deprecated use `CreatePromptVersionContent2$inboundSchema` instead. */
|
|
1105
|
-
const inboundSchema: z.ZodType<CreatePromptVersionContent2, z.ZodTypeDef, unknown>;
|
|
1106
|
-
/** @deprecated use `CreatePromptVersionContent2$outboundSchema` instead. */
|
|
1107
|
-
const outboundSchema: z.ZodType<CreatePromptVersionContent2$Outbound, z.ZodTypeDef, CreatePromptVersionContent2>;
|
|
1108
|
-
/** @deprecated use `CreatePromptVersionContent2$Outbound` instead. */
|
|
1109
|
-
type Outbound = CreatePromptVersionContent2$Outbound;
|
|
1110
|
-
}
|
|
1111
|
-
export declare function createPromptVersionContent2ToJSON(createPromptVersionContent2: CreatePromptVersionContent2): string;
|
|
1112
|
-
export declare function createPromptVersionContent2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionContent2, SDKValidationError>;
|
|
1113
|
-
/** @internal */
|
|
1114
|
-
export declare const CreatePromptVersionContent$inboundSchema: z.ZodType<CreatePromptVersionContent, z.ZodTypeDef, unknown>;
|
|
1115
|
-
/** @internal */
|
|
1116
|
-
export type CreatePromptVersionContent$Outbound = string | Array<CreatePromptVersion21$Outbound | CreatePromptVersion22$Outbound>;
|
|
1117
|
-
/** @internal */
|
|
1118
|
-
export declare const CreatePromptVersionContent$outboundSchema: z.ZodType<CreatePromptVersionContent$Outbound, z.ZodTypeDef, CreatePromptVersionContent>;
|
|
1119
|
-
/**
|
|
1120
|
-
* @internal
|
|
1121
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1122
|
-
*/
|
|
1123
|
-
export declare namespace CreatePromptVersionContent$ {
|
|
1124
|
-
/** @deprecated use `CreatePromptVersionContent$inboundSchema` instead. */
|
|
1125
|
-
const inboundSchema: z.ZodType<CreatePromptVersionContent, z.ZodTypeDef, unknown>;
|
|
1126
|
-
/** @deprecated use `CreatePromptVersionContent$outboundSchema` instead. */
|
|
1127
|
-
const outboundSchema: z.ZodType<CreatePromptVersionContent$Outbound, z.ZodTypeDef, CreatePromptVersionContent>;
|
|
1128
|
-
/** @deprecated use `CreatePromptVersionContent$Outbound` instead. */
|
|
1129
|
-
type Outbound = CreatePromptVersionContent$Outbound;
|
|
1130
|
-
}
|
|
1131
|
-
export declare function createPromptVersionContentToJSON(createPromptVersionContent: CreatePromptVersionContent): string;
|
|
1132
|
-
export declare function createPromptVersionContentFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionContent, SDKValidationError>;
|
|
1133
|
-
/** @internal */
|
|
1134
|
-
export declare const CreatePromptVersionType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionType>;
|
|
1135
|
-
/** @internal */
|
|
1136
|
-
export declare const CreatePromptVersionType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionType>;
|
|
1137
|
-
/**
|
|
1138
|
-
* @internal
|
|
1139
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1140
|
-
*/
|
|
1141
|
-
export declare namespace CreatePromptVersionType$ {
|
|
1142
|
-
/** @deprecated use `CreatePromptVersionType$inboundSchema` instead. */
|
|
1143
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1144
|
-
readonly Function: "function";
|
|
1145
|
-
}>;
|
|
1146
|
-
/** @deprecated use `CreatePromptVersionType$outboundSchema` instead. */
|
|
1147
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1148
|
-
readonly Function: "function";
|
|
1149
|
-
}>;
|
|
1150
|
-
}
|
|
1151
|
-
/** @internal */
|
|
1152
|
-
export declare const CreatePromptVersionFunction$inboundSchema: z.ZodType<CreatePromptVersionFunction, z.ZodTypeDef, unknown>;
|
|
1153
|
-
/** @internal */
|
|
1154
|
-
export type CreatePromptVersionFunction$Outbound = {
|
|
1155
|
-
name: string;
|
|
1156
|
-
arguments: string;
|
|
1157
|
-
};
|
|
1158
|
-
/** @internal */
|
|
1159
|
-
export declare const CreatePromptVersionFunction$outboundSchema: z.ZodType<CreatePromptVersionFunction$Outbound, z.ZodTypeDef, CreatePromptVersionFunction>;
|
|
1160
|
-
/**
|
|
1161
|
-
* @internal
|
|
1162
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1163
|
-
*/
|
|
1164
|
-
export declare namespace CreatePromptVersionFunction$ {
|
|
1165
|
-
/** @deprecated use `CreatePromptVersionFunction$inboundSchema` instead. */
|
|
1166
|
-
const inboundSchema: z.ZodType<CreatePromptVersionFunction, z.ZodTypeDef, unknown>;
|
|
1167
|
-
/** @deprecated use `CreatePromptVersionFunction$outboundSchema` instead. */
|
|
1168
|
-
const outboundSchema: z.ZodType<CreatePromptVersionFunction$Outbound, z.ZodTypeDef, CreatePromptVersionFunction>;
|
|
1169
|
-
/** @deprecated use `CreatePromptVersionFunction$Outbound` instead. */
|
|
1170
|
-
type Outbound = CreatePromptVersionFunction$Outbound;
|
|
1171
|
-
}
|
|
1172
|
-
export declare function createPromptVersionFunctionToJSON(createPromptVersionFunction: CreatePromptVersionFunction): string;
|
|
1173
|
-
export declare function createPromptVersionFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionFunction, SDKValidationError>;
|
|
1174
|
-
/** @internal */
|
|
1175
|
-
export declare const CreatePromptVersionToolCalls$inboundSchema: z.ZodType<CreatePromptVersionToolCalls, z.ZodTypeDef, unknown>;
|
|
1176
|
-
/** @internal */
|
|
1177
|
-
export type CreatePromptVersionToolCalls$Outbound = {
|
|
1178
|
-
id?: string | undefined;
|
|
1179
|
-
index?: number | undefined;
|
|
1180
|
-
type: string;
|
|
1181
|
-
function: CreatePromptVersionFunction$Outbound;
|
|
1182
|
-
};
|
|
1183
|
-
/** @internal */
|
|
1184
|
-
export declare const CreatePromptVersionToolCalls$outboundSchema: z.ZodType<CreatePromptVersionToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionToolCalls>;
|
|
1185
|
-
/**
|
|
1186
|
-
* @internal
|
|
1187
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1188
|
-
*/
|
|
1189
|
-
export declare namespace CreatePromptVersionToolCalls$ {
|
|
1190
|
-
/** @deprecated use `CreatePromptVersionToolCalls$inboundSchema` instead. */
|
|
1191
|
-
const inboundSchema: z.ZodType<CreatePromptVersionToolCalls, z.ZodTypeDef, unknown>;
|
|
1192
|
-
/** @deprecated use `CreatePromptVersionToolCalls$outboundSchema` instead. */
|
|
1193
|
-
const outboundSchema: z.ZodType<CreatePromptVersionToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionToolCalls>;
|
|
1194
|
-
/** @deprecated use `CreatePromptVersionToolCalls$Outbound` instead. */
|
|
1195
|
-
type Outbound = CreatePromptVersionToolCalls$Outbound;
|
|
1196
|
-
}
|
|
1197
|
-
export declare function createPromptVersionToolCallsToJSON(createPromptVersionToolCalls: CreatePromptVersionToolCalls): string;
|
|
1198
|
-
export declare function createPromptVersionToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionToolCalls, SDKValidationError>;
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export declare const CreatePromptVersionMessages$inboundSchema: z.ZodType<CreatePromptVersionMessages, z.ZodTypeDef, unknown>;
|
|
1201
|
-
/** @internal */
|
|
1202
|
-
export type CreatePromptVersionMessages$Outbound = {
|
|
1203
|
-
role: string;
|
|
1204
|
-
content: string | Array<CreatePromptVersion21$Outbound | CreatePromptVersion22$Outbound>;
|
|
1205
|
-
tool_calls?: Array<CreatePromptVersionToolCalls$Outbound> | undefined;
|
|
1206
|
-
};
|
|
1207
|
-
/** @internal */
|
|
1208
|
-
export declare const CreatePromptVersionMessages$outboundSchema: z.ZodType<CreatePromptVersionMessages$Outbound, z.ZodTypeDef, CreatePromptVersionMessages>;
|
|
1209
|
-
/**
|
|
1210
|
-
* @internal
|
|
1211
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1212
|
-
*/
|
|
1213
|
-
export declare namespace CreatePromptVersionMessages$ {
|
|
1214
|
-
/** @deprecated use `CreatePromptVersionMessages$inboundSchema` instead. */
|
|
1215
|
-
const inboundSchema: z.ZodType<CreatePromptVersionMessages, z.ZodTypeDef, unknown>;
|
|
1216
|
-
/** @deprecated use `CreatePromptVersionMessages$outboundSchema` instead. */
|
|
1217
|
-
const outboundSchema: z.ZodType<CreatePromptVersionMessages$Outbound, z.ZodTypeDef, CreatePromptVersionMessages>;
|
|
1218
|
-
/** @deprecated use `CreatePromptVersionMessages$Outbound` instead. */
|
|
1219
|
-
type Outbound = CreatePromptVersionMessages$Outbound;
|
|
1220
|
-
}
|
|
1221
|
-
export declare function createPromptVersionMessagesToJSON(createPromptVersionMessages: CreatePromptVersionMessages): string;
|
|
1222
|
-
export declare function createPromptVersionMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionMessages, SDKValidationError>;
|
|
1223
|
-
/** @internal */
|
|
1224
|
-
export declare const CreatePromptVersionPromptConfig$inboundSchema: z.ZodType<CreatePromptVersionPromptConfig, z.ZodTypeDef, unknown>;
|
|
1225
|
-
/** @internal */
|
|
1226
|
-
export type CreatePromptVersionPromptConfig$Outbound = {
|
|
1227
|
-
stream?: boolean | undefined;
|
|
1228
|
-
model?: string | undefined;
|
|
1229
|
-
model_type?: string | undefined;
|
|
1230
|
-
model_parameters?: CreatePromptVersionModelParameters$Outbound | undefined;
|
|
1231
|
-
provider?: string | undefined;
|
|
1232
|
-
version?: string | undefined;
|
|
1233
|
-
messages: Array<CreatePromptVersionMessages$Outbound>;
|
|
1234
|
-
};
|
|
1235
|
-
/** @internal */
|
|
1236
|
-
export declare const CreatePromptVersionPromptConfig$outboundSchema: z.ZodType<CreatePromptVersionPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptConfig>;
|
|
1237
|
-
/**
|
|
1238
|
-
* @internal
|
|
1239
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1240
|
-
*/
|
|
1241
|
-
export declare namespace CreatePromptVersionPromptConfig$ {
|
|
1242
|
-
/** @deprecated use `CreatePromptVersionPromptConfig$inboundSchema` instead. */
|
|
1243
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptConfig, z.ZodTypeDef, unknown>;
|
|
1244
|
-
/** @deprecated use `CreatePromptVersionPromptConfig$outboundSchema` instead. */
|
|
1245
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptConfig>;
|
|
1246
|
-
/** @deprecated use `CreatePromptVersionPromptConfig$Outbound` instead. */
|
|
1247
|
-
type Outbound = CreatePromptVersionPromptConfig$Outbound;
|
|
1248
|
-
}
|
|
1249
|
-
export declare function createPromptVersionPromptConfigToJSON(createPromptVersionPromptConfig: CreatePromptVersionPromptConfig): string;
|
|
1250
|
-
export declare function createPromptVersionPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptConfig, SDKValidationError>;
|
|
1251
|
-
/** @internal */
|
|
1252
|
-
export declare const CreatePromptVersionMetadata$inboundSchema: z.ZodType<CreatePromptVersionMetadata, z.ZodTypeDef, unknown>;
|
|
1253
|
-
/** @internal */
|
|
1254
|
-
export type CreatePromptVersionMetadata$Outbound = {
|
|
1255
|
-
use_cases?: Array<string> | undefined;
|
|
1256
|
-
language?: string | undefined;
|
|
1257
|
-
};
|
|
1258
|
-
/** @internal */
|
|
1259
|
-
export declare const CreatePromptVersionMetadata$outboundSchema: z.ZodType<CreatePromptVersionMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionMetadata>;
|
|
1260
|
-
/**
|
|
1261
|
-
* @internal
|
|
1262
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1263
|
-
*/
|
|
1264
|
-
export declare namespace CreatePromptVersionMetadata$ {
|
|
1265
|
-
/** @deprecated use `CreatePromptVersionMetadata$inboundSchema` instead. */
|
|
1266
|
-
const inboundSchema: z.ZodType<CreatePromptVersionMetadata, z.ZodTypeDef, unknown>;
|
|
1267
|
-
/** @deprecated use `CreatePromptVersionMetadata$outboundSchema` instead. */
|
|
1268
|
-
const outboundSchema: z.ZodType<CreatePromptVersionMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionMetadata>;
|
|
1269
|
-
/** @deprecated use `CreatePromptVersionMetadata$Outbound` instead. */
|
|
1270
|
-
type Outbound = CreatePromptVersionMetadata$Outbound;
|
|
1271
|
-
}
|
|
1272
|
-
export declare function createPromptVersionMetadataToJSON(createPromptVersionMetadata: CreatePromptVersionMetadata): string;
|
|
1273
|
-
export declare function createPromptVersionMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionMetadata, SDKValidationError>;
|
|
1274
|
-
/** @internal */
|
|
1275
|
-
export declare const CreatePromptVersionRequestBody$inboundSchema: z.ZodType<CreatePromptVersionRequestBody, z.ZodTypeDef, unknown>;
|
|
1276
|
-
/** @internal */
|
|
1277
|
-
export type CreatePromptVersionRequestBody$Outbound = {
|
|
1278
|
-
_id: string;
|
|
1279
|
-
display_name: string;
|
|
1280
|
-
description?: string | null | undefined;
|
|
1281
|
-
prompt_config: CreatePromptVersionPromptConfig$Outbound;
|
|
1282
|
-
metadata: CreatePromptVersionMetadata$Outbound;
|
|
1283
|
-
commit: string;
|
|
1284
|
-
timestamp: string;
|
|
1285
|
-
};
|
|
1286
|
-
/** @internal */
|
|
1287
|
-
export declare const CreatePromptVersionRequestBody$outboundSchema: z.ZodType<CreatePromptVersionRequestBody$Outbound, z.ZodTypeDef, CreatePromptVersionRequestBody>;
|
|
1288
|
-
/**
|
|
1289
|
-
* @internal
|
|
1290
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1291
|
-
*/
|
|
1292
|
-
export declare namespace CreatePromptVersionRequestBody$ {
|
|
1293
|
-
/** @deprecated use `CreatePromptVersionRequestBody$inboundSchema` instead. */
|
|
1294
|
-
const inboundSchema: z.ZodType<CreatePromptVersionRequestBody, z.ZodTypeDef, unknown>;
|
|
1295
|
-
/** @deprecated use `CreatePromptVersionRequestBody$outboundSchema` instead. */
|
|
1296
|
-
const outboundSchema: z.ZodType<CreatePromptVersionRequestBody$Outbound, z.ZodTypeDef, CreatePromptVersionRequestBody>;
|
|
1297
|
-
/** @deprecated use `CreatePromptVersionRequestBody$Outbound` instead. */
|
|
1298
|
-
type Outbound = CreatePromptVersionRequestBody$Outbound;
|
|
1299
|
-
}
|
|
1300
|
-
export declare function createPromptVersionRequestBodyToJSON(createPromptVersionRequestBody: CreatePromptVersionRequestBody): string;
|
|
1301
|
-
export declare function createPromptVersionRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionRequestBody, SDKValidationError>;
|
|
1302
|
-
/** @internal */
|
|
1303
|
-
export declare const CreatePromptVersionRequest$inboundSchema: z.ZodType<CreatePromptVersionRequest, z.ZodTypeDef, unknown>;
|
|
1304
|
-
/** @internal */
|
|
1305
|
-
export type CreatePromptVersionRequest$Outbound = {
|
|
1306
|
-
id: string;
|
|
1307
|
-
RequestBody?: CreatePromptVersionRequestBody$Outbound | undefined;
|
|
1308
|
-
};
|
|
1309
|
-
/** @internal */
|
|
1310
|
-
export declare const CreatePromptVersionRequest$outboundSchema: z.ZodType<CreatePromptVersionRequest$Outbound, z.ZodTypeDef, CreatePromptVersionRequest>;
|
|
1311
|
-
/**
|
|
1312
|
-
* @internal
|
|
1313
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1314
|
-
*/
|
|
1315
|
-
export declare namespace CreatePromptVersionRequest$ {
|
|
1316
|
-
/** @deprecated use `CreatePromptVersionRequest$inboundSchema` instead. */
|
|
1317
|
-
const inboundSchema: z.ZodType<CreatePromptVersionRequest, z.ZodTypeDef, unknown>;
|
|
1318
|
-
/** @deprecated use `CreatePromptVersionRequest$outboundSchema` instead. */
|
|
1319
|
-
const outboundSchema: z.ZodType<CreatePromptVersionRequest$Outbound, z.ZodTypeDef, CreatePromptVersionRequest>;
|
|
1320
|
-
/** @deprecated use `CreatePromptVersionRequest$Outbound` instead. */
|
|
1321
|
-
type Outbound = CreatePromptVersionRequest$Outbound;
|
|
1322
|
-
}
|
|
1323
|
-
export declare function createPromptVersionRequestToJSON(createPromptVersionRequest: CreatePromptVersionRequest): string;
|
|
1324
|
-
export declare function createPromptVersionRequestFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionRequest, SDKValidationError>;
|
|
1325
|
-
/** @internal */
|
|
1326
|
-
export declare const CreatePromptVersionPromptsModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsModelType>;
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export declare const CreatePromptVersionPromptsModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsModelType>;
|
|
1329
|
-
/**
|
|
1330
|
-
* @internal
|
|
1331
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1332
|
-
*/
|
|
1333
|
-
export declare namespace CreatePromptVersionPromptsModelType$ {
|
|
1334
|
-
/** @deprecated use `CreatePromptVersionPromptsModelType$inboundSchema` instead. */
|
|
1335
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1336
|
-
readonly Chat: "chat";
|
|
1337
|
-
readonly Completion: "completion";
|
|
1338
|
-
readonly Embedding: "embedding";
|
|
1339
|
-
readonly Vision: "vision";
|
|
1340
|
-
readonly Image: "image";
|
|
1341
|
-
readonly Tts: "tts";
|
|
1342
|
-
readonly Stt: "stt";
|
|
1343
|
-
readonly Rerank: "rerank";
|
|
1344
|
-
readonly Moderations: "moderations";
|
|
1345
|
-
}>;
|
|
1346
|
-
/** @deprecated use `CreatePromptVersionPromptsModelType$outboundSchema` instead. */
|
|
1347
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1348
|
-
readonly Chat: "chat";
|
|
1349
|
-
readonly Completion: "completion";
|
|
1350
|
-
readonly Embedding: "embedding";
|
|
1351
|
-
readonly Vision: "vision";
|
|
1352
|
-
readonly Image: "image";
|
|
1353
|
-
readonly Tts: "tts";
|
|
1354
|
-
readonly Stt: "stt";
|
|
1355
|
-
readonly Rerank: "rerank";
|
|
1356
|
-
readonly Moderations: "moderations";
|
|
1357
|
-
}>;
|
|
1358
|
-
}
|
|
1359
|
-
/** @internal */
|
|
1360
|
-
export declare const CreatePromptVersionPromptsFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsFormat>;
|
|
1361
|
-
/** @internal */
|
|
1362
|
-
export declare const CreatePromptVersionPromptsFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsFormat>;
|
|
1363
|
-
/**
|
|
1364
|
-
* @internal
|
|
1365
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1366
|
-
*/
|
|
1367
|
-
export declare namespace CreatePromptVersionPromptsFormat$ {
|
|
1368
|
-
/** @deprecated use `CreatePromptVersionPromptsFormat$inboundSchema` instead. */
|
|
1369
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1370
|
-
readonly Url: "url";
|
|
1371
|
-
readonly B64Json: "b64_json";
|
|
1372
|
-
readonly Text: "text";
|
|
1373
|
-
readonly JsonObject: "json_object";
|
|
1374
|
-
}>;
|
|
1375
|
-
/** @deprecated use `CreatePromptVersionPromptsFormat$outboundSchema` instead. */
|
|
1376
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1377
|
-
readonly Url: "url";
|
|
1378
|
-
readonly B64Json: "b64_json";
|
|
1379
|
-
readonly Text: "text";
|
|
1380
|
-
readonly JsonObject: "json_object";
|
|
1381
|
-
}>;
|
|
1382
|
-
}
|
|
1383
|
-
/** @internal */
|
|
1384
|
-
export declare const CreatePromptVersionPromptsQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsQuality>;
|
|
1385
|
-
/** @internal */
|
|
1386
|
-
export declare const CreatePromptVersionPromptsQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsQuality>;
|
|
1387
|
-
/**
|
|
1388
|
-
* @internal
|
|
1389
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1390
|
-
*/
|
|
1391
|
-
export declare namespace CreatePromptVersionPromptsQuality$ {
|
|
1392
|
-
/** @deprecated use `CreatePromptVersionPromptsQuality$inboundSchema` instead. */
|
|
1393
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1394
|
-
readonly Standard: "standard";
|
|
1395
|
-
readonly Hd: "hd";
|
|
1396
|
-
}>;
|
|
1397
|
-
/** @deprecated use `CreatePromptVersionPromptsQuality$outboundSchema` instead. */
|
|
1398
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1399
|
-
readonly Standard: "standard";
|
|
1400
|
-
readonly Hd: "hd";
|
|
1401
|
-
}>;
|
|
1402
|
-
}
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export declare const CreatePromptVersionResponseFormatPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponse200Type>;
|
|
1405
|
-
/** @internal */
|
|
1406
|
-
export declare const CreatePromptVersionResponseFormatPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponse200Type>;
|
|
1407
|
-
/**
|
|
1408
|
-
* @internal
|
|
1409
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1410
|
-
*/
|
|
1411
|
-
export declare namespace CreatePromptVersionResponseFormatPromptsResponse200Type$ {
|
|
1412
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPromptsResponse200Type$inboundSchema` instead. */
|
|
1413
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1414
|
-
readonly JsonObject: "json_object";
|
|
1415
|
-
}>;
|
|
1416
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPromptsResponse200Type$outboundSchema` instead. */
|
|
1417
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1418
|
-
readonly JsonObject: "json_object";
|
|
1419
|
-
}>;
|
|
1420
|
-
}
|
|
1421
|
-
/** @internal */
|
|
1422
|
-
export declare const CreatePromptVersionResponseFormatPrompts2$inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2, z.ZodTypeDef, unknown>;
|
|
1423
|
-
/** @internal */
|
|
1424
|
-
export type CreatePromptVersionResponseFormatPrompts2$Outbound = {
|
|
1425
|
-
type: string;
|
|
1426
|
-
};
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export declare const CreatePromptVersionResponseFormatPrompts2$outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts2>;
|
|
1429
|
-
/**
|
|
1430
|
-
* @internal
|
|
1431
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1432
|
-
*/
|
|
1433
|
-
export declare namespace CreatePromptVersionResponseFormatPrompts2$ {
|
|
1434
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPrompts2$inboundSchema` instead. */
|
|
1435
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2, z.ZodTypeDef, unknown>;
|
|
1436
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPrompts2$outboundSchema` instead. */
|
|
1437
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts2>;
|
|
1438
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPrompts2$Outbound` instead. */
|
|
1439
|
-
type Outbound = CreatePromptVersionResponseFormatPrompts2$Outbound;
|
|
1440
|
-
}
|
|
1441
|
-
export declare function createPromptVersionResponseFormatPrompts2ToJSON(createPromptVersionResponseFormatPrompts2: CreatePromptVersionResponseFormatPrompts2): string;
|
|
1442
|
-
export declare function createPromptVersionResponseFormatPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormatPrompts2, SDKValidationError>;
|
|
1443
|
-
/** @internal */
|
|
1444
|
-
export declare const CreatePromptVersionResponseFormatPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponseType>;
|
|
1445
|
-
/** @internal */
|
|
1446
|
-
export declare const CreatePromptVersionResponseFormatPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponseType>;
|
|
1447
|
-
/**
|
|
1448
|
-
* @internal
|
|
1449
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1450
|
-
*/
|
|
1451
|
-
export declare namespace CreatePromptVersionResponseFormatPromptsResponseType$ {
|
|
1452
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
1453
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1454
|
-
readonly JsonSchema: "json_schema";
|
|
1455
|
-
}>;
|
|
1456
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
1457
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1458
|
-
readonly JsonSchema: "json_schema";
|
|
1459
|
-
}>;
|
|
1460
|
-
}
|
|
1461
|
-
/** @internal */
|
|
1462
|
-
export declare const CreatePromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1463
|
-
/** @internal */
|
|
1464
|
-
export type CreatePromptVersionResponseFormatJsonSchema$Outbound = {
|
|
1465
|
-
name: string;
|
|
1466
|
-
strict: boolean;
|
|
1467
|
-
schema: {
|
|
1468
|
-
[k: string]: any;
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
/** @internal */
|
|
1472
|
-
export declare const CreatePromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatJsonSchema>;
|
|
1473
|
-
/**
|
|
1474
|
-
* @internal
|
|
1475
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1476
|
-
*/
|
|
1477
|
-
export declare namespace CreatePromptVersionResponseFormatJsonSchema$ {
|
|
1478
|
-
/** @deprecated use `CreatePromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1479
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1480
|
-
/** @deprecated use `CreatePromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1481
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatJsonSchema>;
|
|
1482
|
-
/** @deprecated use `CreatePromptVersionResponseFormatJsonSchema$Outbound` instead. */
|
|
1483
|
-
type Outbound = CreatePromptVersionResponseFormatJsonSchema$Outbound;
|
|
1484
|
-
}
|
|
1485
|
-
export declare function createPromptVersionResponseFormatJsonSchemaToJSON(createPromptVersionResponseFormatJsonSchema: CreatePromptVersionResponseFormatJsonSchema): string;
|
|
1486
|
-
export declare function createPromptVersionResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormatJsonSchema, SDKValidationError>;
|
|
1487
|
-
/** @internal */
|
|
1488
|
-
export declare const CreatePromptVersionResponseFormatPrompts1$inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1, z.ZodTypeDef, unknown>;
|
|
1489
|
-
/** @internal */
|
|
1490
|
-
export type CreatePromptVersionResponseFormatPrompts1$Outbound = {
|
|
1491
|
-
type: string;
|
|
1492
|
-
json_schema: CreatePromptVersionResponseFormatJsonSchema$Outbound;
|
|
1493
|
-
};
|
|
1494
|
-
/** @internal */
|
|
1495
|
-
export declare const CreatePromptVersionResponseFormatPrompts1$outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts1>;
|
|
1496
|
-
/**
|
|
1497
|
-
* @internal
|
|
1498
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1499
|
-
*/
|
|
1500
|
-
export declare namespace CreatePromptVersionResponseFormatPrompts1$ {
|
|
1501
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPrompts1$inboundSchema` instead. */
|
|
1502
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1, z.ZodTypeDef, unknown>;
|
|
1503
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPrompts1$outboundSchema` instead. */
|
|
1504
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts1>;
|
|
1505
|
-
/** @deprecated use `CreatePromptVersionResponseFormatPrompts1$Outbound` instead. */
|
|
1506
|
-
type Outbound = CreatePromptVersionResponseFormatPrompts1$Outbound;
|
|
1507
|
-
}
|
|
1508
|
-
export declare function createPromptVersionResponseFormatPrompts1ToJSON(createPromptVersionResponseFormatPrompts1: CreatePromptVersionResponseFormatPrompts1): string;
|
|
1509
|
-
export declare function createPromptVersionResponseFormatPrompts1FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormatPrompts1, SDKValidationError>;
|
|
1510
|
-
/** @internal */
|
|
1511
|
-
export declare const CreatePromptVersionPromptsResponseFormat$inboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat, z.ZodTypeDef, unknown>;
|
|
1512
|
-
/** @internal */
|
|
1513
|
-
export type CreatePromptVersionPromptsResponseFormat$Outbound = CreatePromptVersionResponseFormatPrompts2$Outbound | CreatePromptVersionResponseFormatPrompts1$Outbound;
|
|
1514
|
-
/** @internal */
|
|
1515
|
-
export declare const CreatePromptVersionPromptsResponseFormat$outboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsResponseFormat>;
|
|
1516
|
-
/**
|
|
1517
|
-
* @internal
|
|
1518
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1519
|
-
*/
|
|
1520
|
-
export declare namespace CreatePromptVersionPromptsResponseFormat$ {
|
|
1521
|
-
/** @deprecated use `CreatePromptVersionPromptsResponseFormat$inboundSchema` instead. */
|
|
1522
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat, z.ZodTypeDef, unknown>;
|
|
1523
|
-
/** @deprecated use `CreatePromptVersionPromptsResponseFormat$outboundSchema` instead. */
|
|
1524
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsResponseFormat>;
|
|
1525
|
-
/** @deprecated use `CreatePromptVersionPromptsResponseFormat$Outbound` instead. */
|
|
1526
|
-
type Outbound = CreatePromptVersionPromptsResponseFormat$Outbound;
|
|
1527
|
-
}
|
|
1528
|
-
export declare function createPromptVersionPromptsResponseFormatToJSON(createPromptVersionPromptsResponseFormat: CreatePromptVersionPromptsResponseFormat): string;
|
|
1529
|
-
export declare function createPromptVersionPromptsResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsResponseFormat, SDKValidationError>;
|
|
1530
|
-
/** @internal */
|
|
1531
|
-
export declare const CreatePromptVersionPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsPhotoRealVersion>;
|
|
1532
|
-
/** @internal */
|
|
1533
|
-
export declare const CreatePromptVersionPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsPhotoRealVersion>;
|
|
1534
|
-
/**
|
|
1535
|
-
* @internal
|
|
1536
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1537
|
-
*/
|
|
1538
|
-
export declare namespace CreatePromptVersionPromptsPhotoRealVersion$ {
|
|
1539
|
-
/** @deprecated use `CreatePromptVersionPromptsPhotoRealVersion$inboundSchema` instead. */
|
|
1540
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1541
|
-
readonly V1: "v1";
|
|
1542
|
-
readonly V2: "v2";
|
|
1543
|
-
}>;
|
|
1544
|
-
/** @deprecated use `CreatePromptVersionPromptsPhotoRealVersion$outboundSchema` instead. */
|
|
1545
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1546
|
-
readonly V1: "v1";
|
|
1547
|
-
readonly V2: "v2";
|
|
1548
|
-
}>;
|
|
1549
|
-
}
|
|
1550
|
-
/** @internal */
|
|
1551
|
-
export declare const CreatePromptVersionPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsEncodingFormat>;
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export declare const CreatePromptVersionPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsEncodingFormat>;
|
|
1554
|
-
/**
|
|
1555
|
-
* @internal
|
|
1556
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1557
|
-
*/
|
|
1558
|
-
export declare namespace CreatePromptVersionPromptsEncodingFormat$ {
|
|
1559
|
-
/** @deprecated use `CreatePromptVersionPromptsEncodingFormat$inboundSchema` instead. */
|
|
1560
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1561
|
-
readonly Float: "float";
|
|
1562
|
-
readonly Base64: "base64";
|
|
1563
|
-
}>;
|
|
1564
|
-
/** @deprecated use `CreatePromptVersionPromptsEncodingFormat$outboundSchema` instead. */
|
|
1565
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1566
|
-
readonly Float: "float";
|
|
1567
|
-
readonly Base64: "base64";
|
|
1568
|
-
}>;
|
|
1569
|
-
}
|
|
1570
|
-
/** @internal */
|
|
1571
|
-
export declare const CreatePromptVersionPromptsModelParameters$inboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters, z.ZodTypeDef, unknown>;
|
|
1572
|
-
/** @internal */
|
|
1573
|
-
export type CreatePromptVersionPromptsModelParameters$Outbound = {
|
|
1574
|
-
temperature?: number | undefined;
|
|
1575
|
-
maxTokens?: number | undefined;
|
|
1576
|
-
topK?: number | undefined;
|
|
1577
|
-
topP?: number | undefined;
|
|
1578
|
-
frequencyPenalty?: number | undefined;
|
|
1579
|
-
presencePenalty?: number | undefined;
|
|
1580
|
-
numImages?: number | undefined;
|
|
1581
|
-
seed?: number | undefined;
|
|
1582
|
-
format?: string | undefined;
|
|
1583
|
-
dimensions?: string | undefined;
|
|
1584
|
-
quality?: string | undefined;
|
|
1585
|
-
style?: string | undefined;
|
|
1586
|
-
responseFormat?: CreatePromptVersionResponseFormatPrompts2$Outbound | CreatePromptVersionResponseFormatPrompts1$Outbound | null | undefined;
|
|
1587
|
-
photoRealVersion?: string | undefined;
|
|
1588
|
-
encoding_format?: string | undefined;
|
|
1589
|
-
};
|
|
1590
|
-
/** @internal */
|
|
1591
|
-
export declare const CreatePromptVersionPromptsModelParameters$outboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsModelParameters>;
|
|
1592
|
-
/**
|
|
1593
|
-
* @internal
|
|
1594
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1595
|
-
*/
|
|
1596
|
-
export declare namespace CreatePromptVersionPromptsModelParameters$ {
|
|
1597
|
-
/** @deprecated use `CreatePromptVersionPromptsModelParameters$inboundSchema` instead. */
|
|
1598
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters, z.ZodTypeDef, unknown>;
|
|
1599
|
-
/** @deprecated use `CreatePromptVersionPromptsModelParameters$outboundSchema` instead. */
|
|
1600
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsModelParameters>;
|
|
1601
|
-
/** @deprecated use `CreatePromptVersionPromptsModelParameters$Outbound` instead. */
|
|
1602
|
-
type Outbound = CreatePromptVersionPromptsModelParameters$Outbound;
|
|
1603
|
-
}
|
|
1604
|
-
export declare function createPromptVersionPromptsModelParametersToJSON(createPromptVersionPromptsModelParameters: CreatePromptVersionPromptsModelParameters): string;
|
|
1605
|
-
export declare function createPromptVersionPromptsModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsModelParameters, SDKValidationError>;
|
|
1606
|
-
/** @internal */
|
|
1607
|
-
export declare const CreatePromptVersionPromptsProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsProvider>;
|
|
1608
|
-
/** @internal */
|
|
1609
|
-
export declare const CreatePromptVersionPromptsProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsProvider>;
|
|
1610
|
-
/**
|
|
1611
|
-
* @internal
|
|
1612
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1613
|
-
*/
|
|
1614
|
-
export declare namespace CreatePromptVersionPromptsProvider$ {
|
|
1615
|
-
/** @deprecated use `CreatePromptVersionPromptsProvider$inboundSchema` instead. */
|
|
1616
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1617
|
-
readonly Cohere: "cohere";
|
|
1618
|
-
readonly Openai: "openai";
|
|
1619
|
-
readonly Anthropic: "anthropic";
|
|
1620
|
-
readonly Huggingface: "huggingface";
|
|
1621
|
-
readonly Replicate: "replicate";
|
|
1622
|
-
readonly Google: "google";
|
|
1623
|
-
readonly GoogleAi: "google-ai";
|
|
1624
|
-
readonly Azure: "azure";
|
|
1625
|
-
readonly Aws: "aws";
|
|
1626
|
-
readonly Anyscale: "anyscale";
|
|
1627
|
-
readonly Perplexity: "perplexity";
|
|
1628
|
-
readonly Groq: "groq";
|
|
1629
|
-
readonly Fal: "fal";
|
|
1630
|
-
readonly Leonardoai: "leonardoai";
|
|
1631
|
-
readonly Nvidia: "nvidia";
|
|
1632
|
-
readonly Jina: "jina";
|
|
1633
|
-
}>;
|
|
1634
|
-
/** @deprecated use `CreatePromptVersionPromptsProvider$outboundSchema` instead. */
|
|
1635
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1636
|
-
readonly Cohere: "cohere";
|
|
1637
|
-
readonly Openai: "openai";
|
|
1638
|
-
readonly Anthropic: "anthropic";
|
|
1639
|
-
readonly Huggingface: "huggingface";
|
|
1640
|
-
readonly Replicate: "replicate";
|
|
1641
|
-
readonly Google: "google";
|
|
1642
|
-
readonly GoogleAi: "google-ai";
|
|
1643
|
-
readonly Azure: "azure";
|
|
1644
|
-
readonly Aws: "aws";
|
|
1645
|
-
readonly Anyscale: "anyscale";
|
|
1646
|
-
readonly Perplexity: "perplexity";
|
|
1647
|
-
readonly Groq: "groq";
|
|
1648
|
-
readonly Fal: "fal";
|
|
1649
|
-
readonly Leonardoai: "leonardoai";
|
|
1650
|
-
readonly Nvidia: "nvidia";
|
|
1651
|
-
readonly Jina: "jina";
|
|
1652
|
-
}>;
|
|
1653
|
-
}
|
|
1654
|
-
/** @internal */
|
|
1655
|
-
export declare const CreatePromptVersionPromptsRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsRole>;
|
|
1656
|
-
/** @internal */
|
|
1657
|
-
export declare const CreatePromptVersionPromptsRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsRole>;
|
|
1658
|
-
/**
|
|
1659
|
-
* @internal
|
|
1660
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1661
|
-
*/
|
|
1662
|
-
export declare namespace CreatePromptVersionPromptsRole$ {
|
|
1663
|
-
/** @deprecated use `CreatePromptVersionPromptsRole$inboundSchema` instead. */
|
|
1664
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1665
|
-
readonly System: "system";
|
|
1666
|
-
readonly Assistant: "assistant";
|
|
1667
|
-
readonly User: "user";
|
|
1668
|
-
readonly Exception: "exception";
|
|
1669
|
-
readonly Tool: "tool";
|
|
1670
|
-
readonly Prompt: "prompt";
|
|
1671
|
-
readonly Correction: "correction";
|
|
1672
|
-
readonly ExpectedOutput: "expected_output";
|
|
1673
|
-
}>;
|
|
1674
|
-
/** @deprecated use `CreatePromptVersionPromptsRole$outboundSchema` instead. */
|
|
1675
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1676
|
-
readonly System: "system";
|
|
1677
|
-
readonly Assistant: "assistant";
|
|
1678
|
-
readonly User: "user";
|
|
1679
|
-
readonly Exception: "exception";
|
|
1680
|
-
readonly Tool: "tool";
|
|
1681
|
-
readonly Prompt: "prompt";
|
|
1682
|
-
readonly Correction: "correction";
|
|
1683
|
-
readonly ExpectedOutput: "expected_output";
|
|
1684
|
-
}>;
|
|
1685
|
-
}
|
|
1686
|
-
/** @internal */
|
|
1687
|
-
export declare const CreatePromptVersion2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponse200Type>;
|
|
1688
|
-
/** @internal */
|
|
1689
|
-
export declare const CreatePromptVersion2PromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponse200Type>;
|
|
1690
|
-
/**
|
|
1691
|
-
* @internal
|
|
1692
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1693
|
-
*/
|
|
1694
|
-
export declare namespace CreatePromptVersion2PromptsResponse200Type$ {
|
|
1695
|
-
/** @deprecated use `CreatePromptVersion2PromptsResponse200Type$inboundSchema` instead. */
|
|
1696
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1697
|
-
readonly ImageUrl: "image_url";
|
|
1698
|
-
}>;
|
|
1699
|
-
/** @deprecated use `CreatePromptVersion2PromptsResponse200Type$outboundSchema` instead. */
|
|
1700
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1701
|
-
readonly ImageUrl: "image_url";
|
|
1702
|
-
}>;
|
|
1703
|
-
}
|
|
1704
|
-
/** @internal */
|
|
1705
|
-
export declare const CreatePromptVersion2PromptsImageUrl$inboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl, z.ZodTypeDef, unknown>;
|
|
1706
|
-
/** @internal */
|
|
1707
|
-
export type CreatePromptVersion2PromptsImageUrl$Outbound = {
|
|
1708
|
-
id?: string | undefined;
|
|
1709
|
-
url: string;
|
|
1710
|
-
detail?: string | undefined;
|
|
1711
|
-
};
|
|
1712
|
-
/** @internal */
|
|
1713
|
-
export declare const CreatePromptVersion2PromptsImageUrl$outboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2PromptsImageUrl>;
|
|
1714
|
-
/**
|
|
1715
|
-
* @internal
|
|
1716
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1717
|
-
*/
|
|
1718
|
-
export declare namespace CreatePromptVersion2PromptsImageUrl$ {
|
|
1719
|
-
/** @deprecated use `CreatePromptVersion2PromptsImageUrl$inboundSchema` instead. */
|
|
1720
|
-
const inboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl, z.ZodTypeDef, unknown>;
|
|
1721
|
-
/** @deprecated use `CreatePromptVersion2PromptsImageUrl$outboundSchema` instead. */
|
|
1722
|
-
const outboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2PromptsImageUrl>;
|
|
1723
|
-
/** @deprecated use `CreatePromptVersion2PromptsImageUrl$Outbound` instead. */
|
|
1724
|
-
type Outbound = CreatePromptVersion2PromptsImageUrl$Outbound;
|
|
1725
|
-
}
|
|
1726
|
-
export declare function createPromptVersion2PromptsImageUrlToJSON(createPromptVersion2PromptsImageUrl: CreatePromptVersion2PromptsImageUrl): string;
|
|
1727
|
-
export declare function createPromptVersion2PromptsImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2PromptsImageUrl, SDKValidationError>;
|
|
1728
|
-
/** @internal */
|
|
1729
|
-
export declare const CreatePromptVersion2Prompts2$inboundSchema: z.ZodType<CreatePromptVersion2Prompts2, z.ZodTypeDef, unknown>;
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export type CreatePromptVersion2Prompts2$Outbound = {
|
|
1732
|
-
type: string;
|
|
1733
|
-
image_url: CreatePromptVersion2PromptsImageUrl$Outbound;
|
|
1734
|
-
};
|
|
1735
|
-
/** @internal */
|
|
1736
|
-
export declare const CreatePromptVersion2Prompts2$outboundSchema: z.ZodType<CreatePromptVersion2Prompts2$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts2>;
|
|
1737
|
-
/**
|
|
1738
|
-
* @internal
|
|
1739
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1740
|
-
*/
|
|
1741
|
-
export declare namespace CreatePromptVersion2Prompts2$ {
|
|
1742
|
-
/** @deprecated use `CreatePromptVersion2Prompts2$inboundSchema` instead. */
|
|
1743
|
-
const inboundSchema: z.ZodType<CreatePromptVersion2Prompts2, z.ZodTypeDef, unknown>;
|
|
1744
|
-
/** @deprecated use `CreatePromptVersion2Prompts2$outboundSchema` instead. */
|
|
1745
|
-
const outboundSchema: z.ZodType<CreatePromptVersion2Prompts2$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts2>;
|
|
1746
|
-
/** @deprecated use `CreatePromptVersion2Prompts2$Outbound` instead. */
|
|
1747
|
-
type Outbound = CreatePromptVersion2Prompts2$Outbound;
|
|
1748
|
-
}
|
|
1749
|
-
export declare function createPromptVersion2Prompts2ToJSON(createPromptVersion2Prompts2: CreatePromptVersion2Prompts2): string;
|
|
1750
|
-
export declare function createPromptVersion2Prompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2Prompts2, SDKValidationError>;
|
|
1751
|
-
/** @internal */
|
|
1752
|
-
export declare const CreatePromptVersion2PromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponseType>;
|
|
1753
|
-
/** @internal */
|
|
1754
|
-
export declare const CreatePromptVersion2PromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponseType>;
|
|
1755
|
-
/**
|
|
1756
|
-
* @internal
|
|
1757
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1758
|
-
*/
|
|
1759
|
-
export declare namespace CreatePromptVersion2PromptsResponseType$ {
|
|
1760
|
-
/** @deprecated use `CreatePromptVersion2PromptsResponseType$inboundSchema` instead. */
|
|
1761
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1762
|
-
readonly Text: "text";
|
|
1763
|
-
}>;
|
|
1764
|
-
/** @deprecated use `CreatePromptVersion2PromptsResponseType$outboundSchema` instead. */
|
|
1765
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1766
|
-
readonly Text: "text";
|
|
1767
|
-
}>;
|
|
1768
|
-
}
|
|
1769
|
-
/** @internal */
|
|
1770
|
-
export declare const CreatePromptVersion2Prompts1$inboundSchema: z.ZodType<CreatePromptVersion2Prompts1, z.ZodTypeDef, unknown>;
|
|
1771
|
-
/** @internal */
|
|
1772
|
-
export type CreatePromptVersion2Prompts1$Outbound = {
|
|
1773
|
-
type: string;
|
|
1774
|
-
text: string;
|
|
1775
|
-
};
|
|
1776
|
-
/** @internal */
|
|
1777
|
-
export declare const CreatePromptVersion2Prompts1$outboundSchema: z.ZodType<CreatePromptVersion2Prompts1$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts1>;
|
|
1778
|
-
/**
|
|
1779
|
-
* @internal
|
|
1780
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1781
|
-
*/
|
|
1782
|
-
export declare namespace CreatePromptVersion2Prompts1$ {
|
|
1783
|
-
/** @deprecated use `CreatePromptVersion2Prompts1$inboundSchema` instead. */
|
|
1784
|
-
const inboundSchema: z.ZodType<CreatePromptVersion2Prompts1, z.ZodTypeDef, unknown>;
|
|
1785
|
-
/** @deprecated use `CreatePromptVersion2Prompts1$outboundSchema` instead. */
|
|
1786
|
-
const outboundSchema: z.ZodType<CreatePromptVersion2Prompts1$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts1>;
|
|
1787
|
-
/** @deprecated use `CreatePromptVersion2Prompts1$Outbound` instead. */
|
|
1788
|
-
type Outbound = CreatePromptVersion2Prompts1$Outbound;
|
|
1789
|
-
}
|
|
1790
|
-
export declare function createPromptVersion2Prompts1ToJSON(createPromptVersion2Prompts1: CreatePromptVersion2Prompts1): string;
|
|
1791
|
-
export declare function createPromptVersion2Prompts1FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2Prompts1, SDKValidationError>;
|
|
1792
|
-
/** @internal */
|
|
1793
|
-
export declare const CreatePromptVersionContentPrompts2$inboundSchema: z.ZodType<CreatePromptVersionContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1794
|
-
/** @internal */
|
|
1795
|
-
export type CreatePromptVersionContentPrompts2$Outbound = CreatePromptVersion2Prompts1$Outbound | CreatePromptVersion2Prompts2$Outbound;
|
|
1796
|
-
/** @internal */
|
|
1797
|
-
export declare const CreatePromptVersionContentPrompts2$outboundSchema: z.ZodType<CreatePromptVersionContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionContentPrompts2>;
|
|
1798
|
-
/**
|
|
1799
|
-
* @internal
|
|
1800
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1801
|
-
*/
|
|
1802
|
-
export declare namespace CreatePromptVersionContentPrompts2$ {
|
|
1803
|
-
/** @deprecated use `CreatePromptVersionContentPrompts2$inboundSchema` instead. */
|
|
1804
|
-
const inboundSchema: z.ZodType<CreatePromptVersionContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1805
|
-
/** @deprecated use `CreatePromptVersionContentPrompts2$outboundSchema` instead. */
|
|
1806
|
-
const outboundSchema: z.ZodType<CreatePromptVersionContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionContentPrompts2>;
|
|
1807
|
-
/** @deprecated use `CreatePromptVersionContentPrompts2$Outbound` instead. */
|
|
1808
|
-
type Outbound = CreatePromptVersionContentPrompts2$Outbound;
|
|
1809
|
-
}
|
|
1810
|
-
export declare function createPromptVersionContentPrompts2ToJSON(createPromptVersionContentPrompts2: CreatePromptVersionContentPrompts2): string;
|
|
1811
|
-
export declare function createPromptVersionContentPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionContentPrompts2, SDKValidationError>;
|
|
1812
|
-
/** @internal */
|
|
1813
|
-
export declare const CreatePromptVersionPromptsContent$inboundSchema: z.ZodType<CreatePromptVersionPromptsContent, z.ZodTypeDef, unknown>;
|
|
1814
|
-
/** @internal */
|
|
1815
|
-
export type CreatePromptVersionPromptsContent$Outbound = string | Array<CreatePromptVersion2Prompts1$Outbound | CreatePromptVersion2Prompts2$Outbound>;
|
|
1816
|
-
/** @internal */
|
|
1817
|
-
export declare const CreatePromptVersionPromptsContent$outboundSchema: z.ZodType<CreatePromptVersionPromptsContent$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsContent>;
|
|
1818
|
-
/**
|
|
1819
|
-
* @internal
|
|
1820
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1821
|
-
*/
|
|
1822
|
-
export declare namespace CreatePromptVersionPromptsContent$ {
|
|
1823
|
-
/** @deprecated use `CreatePromptVersionPromptsContent$inboundSchema` instead. */
|
|
1824
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsContent, z.ZodTypeDef, unknown>;
|
|
1825
|
-
/** @deprecated use `CreatePromptVersionPromptsContent$outboundSchema` instead. */
|
|
1826
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsContent$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsContent>;
|
|
1827
|
-
/** @deprecated use `CreatePromptVersionPromptsContent$Outbound` instead. */
|
|
1828
|
-
type Outbound = CreatePromptVersionPromptsContent$Outbound;
|
|
1829
|
-
}
|
|
1830
|
-
export declare function createPromptVersionPromptsContentToJSON(createPromptVersionPromptsContent: CreatePromptVersionPromptsContent): string;
|
|
1831
|
-
export declare function createPromptVersionPromptsContentFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsContent, SDKValidationError>;
|
|
1832
|
-
/** @internal */
|
|
1833
|
-
export declare const CreatePromptVersionPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsType>;
|
|
1834
|
-
/** @internal */
|
|
1835
|
-
export declare const CreatePromptVersionPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsType>;
|
|
1836
|
-
/**
|
|
1837
|
-
* @internal
|
|
1838
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1839
|
-
*/
|
|
1840
|
-
export declare namespace CreatePromptVersionPromptsType$ {
|
|
1841
|
-
/** @deprecated use `CreatePromptVersionPromptsType$inboundSchema` instead. */
|
|
1842
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1843
|
-
readonly Function: "function";
|
|
1844
|
-
}>;
|
|
1845
|
-
/** @deprecated use `CreatePromptVersionPromptsType$outboundSchema` instead. */
|
|
1846
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1847
|
-
readonly Function: "function";
|
|
1848
|
-
}>;
|
|
1849
|
-
}
|
|
1850
|
-
/** @internal */
|
|
1851
|
-
export declare const CreatePromptVersionPromptsFunction$inboundSchema: z.ZodType<CreatePromptVersionPromptsFunction, z.ZodTypeDef, unknown>;
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export type CreatePromptVersionPromptsFunction$Outbound = {
|
|
1854
|
-
name: string;
|
|
1855
|
-
arguments: string;
|
|
1856
|
-
};
|
|
1857
|
-
/** @internal */
|
|
1858
|
-
export declare const CreatePromptVersionPromptsFunction$outboundSchema: z.ZodType<CreatePromptVersionPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsFunction>;
|
|
1859
|
-
/**
|
|
1860
|
-
* @internal
|
|
1861
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1862
|
-
*/
|
|
1863
|
-
export declare namespace CreatePromptVersionPromptsFunction$ {
|
|
1864
|
-
/** @deprecated use `CreatePromptVersionPromptsFunction$inboundSchema` instead. */
|
|
1865
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsFunction, z.ZodTypeDef, unknown>;
|
|
1866
|
-
/** @deprecated use `CreatePromptVersionPromptsFunction$outboundSchema` instead. */
|
|
1867
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsFunction>;
|
|
1868
|
-
/** @deprecated use `CreatePromptVersionPromptsFunction$Outbound` instead. */
|
|
1869
|
-
type Outbound = CreatePromptVersionPromptsFunction$Outbound;
|
|
1870
|
-
}
|
|
1871
|
-
export declare function createPromptVersionPromptsFunctionToJSON(createPromptVersionPromptsFunction: CreatePromptVersionPromptsFunction): string;
|
|
1872
|
-
export declare function createPromptVersionPromptsFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsFunction, SDKValidationError>;
|
|
1873
|
-
/** @internal */
|
|
1874
|
-
export declare const CreatePromptVersionPromptsToolCalls$inboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls, z.ZodTypeDef, unknown>;
|
|
1875
|
-
/** @internal */
|
|
1876
|
-
export type CreatePromptVersionPromptsToolCalls$Outbound = {
|
|
1877
|
-
id?: string | undefined;
|
|
1878
|
-
index?: number | undefined;
|
|
1879
|
-
type: string;
|
|
1880
|
-
function: CreatePromptVersionPromptsFunction$Outbound;
|
|
1881
|
-
};
|
|
1882
|
-
/** @internal */
|
|
1883
|
-
export declare const CreatePromptVersionPromptsToolCalls$outboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsToolCalls>;
|
|
1884
|
-
/**
|
|
1885
|
-
* @internal
|
|
1886
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1887
|
-
*/
|
|
1888
|
-
export declare namespace CreatePromptVersionPromptsToolCalls$ {
|
|
1889
|
-
/** @deprecated use `CreatePromptVersionPromptsToolCalls$inboundSchema` instead. */
|
|
1890
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls, z.ZodTypeDef, unknown>;
|
|
1891
|
-
/** @deprecated use `CreatePromptVersionPromptsToolCalls$outboundSchema` instead. */
|
|
1892
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsToolCalls>;
|
|
1893
|
-
/** @deprecated use `CreatePromptVersionPromptsToolCalls$Outbound` instead. */
|
|
1894
|
-
type Outbound = CreatePromptVersionPromptsToolCalls$Outbound;
|
|
1895
|
-
}
|
|
1896
|
-
export declare function createPromptVersionPromptsToolCallsToJSON(createPromptVersionPromptsToolCalls: CreatePromptVersionPromptsToolCalls): string;
|
|
1897
|
-
export declare function createPromptVersionPromptsToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsToolCalls, SDKValidationError>;
|
|
1898
|
-
/** @internal */
|
|
1899
|
-
export declare const CreatePromptVersionPromptsMessages$inboundSchema: z.ZodType<CreatePromptVersionPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1900
|
-
/** @internal */
|
|
1901
|
-
export type CreatePromptVersionPromptsMessages$Outbound = {
|
|
1902
|
-
role: string;
|
|
1903
|
-
content: string | Array<CreatePromptVersion2Prompts1$Outbound | CreatePromptVersion2Prompts2$Outbound>;
|
|
1904
|
-
tool_calls?: Array<CreatePromptVersionPromptsToolCalls$Outbound> | undefined;
|
|
1905
|
-
};
|
|
1906
|
-
/** @internal */
|
|
1907
|
-
export declare const CreatePromptVersionPromptsMessages$outboundSchema: z.ZodType<CreatePromptVersionPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMessages>;
|
|
1908
|
-
/**
|
|
1909
|
-
* @internal
|
|
1910
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1911
|
-
*/
|
|
1912
|
-
export declare namespace CreatePromptVersionPromptsMessages$ {
|
|
1913
|
-
/** @deprecated use `CreatePromptVersionPromptsMessages$inboundSchema` instead. */
|
|
1914
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1915
|
-
/** @deprecated use `CreatePromptVersionPromptsMessages$outboundSchema` instead. */
|
|
1916
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMessages>;
|
|
1917
|
-
/** @deprecated use `CreatePromptVersionPromptsMessages$Outbound` instead. */
|
|
1918
|
-
type Outbound = CreatePromptVersionPromptsMessages$Outbound;
|
|
1919
|
-
}
|
|
1920
|
-
export declare function createPromptVersionPromptsMessagesToJSON(createPromptVersionPromptsMessages: CreatePromptVersionPromptsMessages): string;
|
|
1921
|
-
export declare function createPromptVersionPromptsMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsMessages, SDKValidationError>;
|
|
1922
|
-
/** @internal */
|
|
1923
|
-
export declare const CreatePromptVersionPromptsPromptConfig$inboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig, z.ZodTypeDef, unknown>;
|
|
1924
|
-
/** @internal */
|
|
1925
|
-
export type CreatePromptVersionPromptsPromptConfig$Outbound = {
|
|
1926
|
-
stream?: boolean | undefined;
|
|
1927
|
-
model?: string | undefined;
|
|
1928
|
-
model_db_id?: string | undefined;
|
|
1929
|
-
model_type?: string | undefined;
|
|
1930
|
-
model_parameters?: CreatePromptVersionPromptsModelParameters$Outbound | undefined;
|
|
1931
|
-
provider?: string | undefined;
|
|
1932
|
-
integration_id?: string | null | undefined;
|
|
1933
|
-
version?: string | undefined;
|
|
1934
|
-
messages: Array<CreatePromptVersionPromptsMessages$Outbound>;
|
|
1935
|
-
};
|
|
1936
|
-
/** @internal */
|
|
1937
|
-
export declare const CreatePromptVersionPromptsPromptConfig$outboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsPromptConfig>;
|
|
1938
|
-
/**
|
|
1939
|
-
* @internal
|
|
1940
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1941
|
-
*/
|
|
1942
|
-
export declare namespace CreatePromptVersionPromptsPromptConfig$ {
|
|
1943
|
-
/** @deprecated use `CreatePromptVersionPromptsPromptConfig$inboundSchema` instead. */
|
|
1944
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig, z.ZodTypeDef, unknown>;
|
|
1945
|
-
/** @deprecated use `CreatePromptVersionPromptsPromptConfig$outboundSchema` instead. */
|
|
1946
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsPromptConfig>;
|
|
1947
|
-
/** @deprecated use `CreatePromptVersionPromptsPromptConfig$Outbound` instead. */
|
|
1948
|
-
type Outbound = CreatePromptVersionPromptsPromptConfig$Outbound;
|
|
1949
|
-
}
|
|
1950
|
-
export declare function createPromptVersionPromptsPromptConfigToJSON(createPromptVersionPromptsPromptConfig: CreatePromptVersionPromptsPromptConfig): string;
|
|
1951
|
-
export declare function createPromptVersionPromptsPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsPromptConfig, SDKValidationError>;
|
|
1952
|
-
/** @internal */
|
|
1953
|
-
export declare const CreatePromptVersionPromptsMetadata$inboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata, z.ZodTypeDef, unknown>;
|
|
1954
|
-
/** @internal */
|
|
1955
|
-
export type CreatePromptVersionPromptsMetadata$Outbound = {
|
|
1956
|
-
use_cases?: Array<string> | undefined;
|
|
1957
|
-
language?: string | undefined;
|
|
1958
|
-
};
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export declare const CreatePromptVersionPromptsMetadata$outboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMetadata>;
|
|
1961
|
-
/**
|
|
1962
|
-
* @internal
|
|
1963
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1964
|
-
*/
|
|
1965
|
-
export declare namespace CreatePromptVersionPromptsMetadata$ {
|
|
1966
|
-
/** @deprecated use `CreatePromptVersionPromptsMetadata$inboundSchema` instead. */
|
|
1967
|
-
const inboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata, z.ZodTypeDef, unknown>;
|
|
1968
|
-
/** @deprecated use `CreatePromptVersionPromptsMetadata$outboundSchema` instead. */
|
|
1969
|
-
const outboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMetadata>;
|
|
1970
|
-
/** @deprecated use `CreatePromptVersionPromptsMetadata$Outbound` instead. */
|
|
1971
|
-
type Outbound = CreatePromptVersionPromptsMetadata$Outbound;
|
|
1972
|
-
}
|
|
1973
|
-
export declare function createPromptVersionPromptsMetadataToJSON(createPromptVersionPromptsMetadata: CreatePromptVersionPromptsMetadata): string;
|
|
1974
|
-
export declare function createPromptVersionPromptsMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsMetadata, SDKValidationError>;
|
|
1975
|
-
/** @internal */
|
|
1976
|
-
export declare const CreatePromptVersionResponseBody$inboundSchema: z.ZodType<CreatePromptVersionResponseBody, z.ZodTypeDef, unknown>;
|
|
1977
|
-
/** @internal */
|
|
1978
|
-
export type CreatePromptVersionResponseBody$Outbound = {
|
|
1979
|
-
_id: string;
|
|
1980
|
-
display_name: string;
|
|
1981
|
-
description?: string | null | undefined;
|
|
1982
|
-
prompt_config: CreatePromptVersionPromptsPromptConfig$Outbound;
|
|
1983
|
-
metadata: CreatePromptVersionPromptsMetadata$Outbound;
|
|
1984
|
-
commit: string;
|
|
1985
|
-
timestamp: string;
|
|
1986
|
-
};
|
|
1987
|
-
/** @internal */
|
|
1988
|
-
export declare const CreatePromptVersionResponseBody$outboundSchema: z.ZodType<CreatePromptVersionResponseBody$Outbound, z.ZodTypeDef, CreatePromptVersionResponseBody>;
|
|
1989
|
-
/**
|
|
1990
|
-
* @internal
|
|
1991
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1992
|
-
*/
|
|
1993
|
-
export declare namespace CreatePromptVersionResponseBody$ {
|
|
1994
|
-
/** @deprecated use `CreatePromptVersionResponseBody$inboundSchema` instead. */
|
|
1995
|
-
const inboundSchema: z.ZodType<CreatePromptVersionResponseBody, z.ZodTypeDef, unknown>;
|
|
1996
|
-
/** @deprecated use `CreatePromptVersionResponseBody$outboundSchema` instead. */
|
|
1997
|
-
const outboundSchema: z.ZodType<CreatePromptVersionResponseBody$Outbound, z.ZodTypeDef, CreatePromptVersionResponseBody>;
|
|
1998
|
-
/** @deprecated use `CreatePromptVersionResponseBody$Outbound` instead. */
|
|
1999
|
-
type Outbound = CreatePromptVersionResponseBody$Outbound;
|
|
2000
|
-
}
|
|
2001
|
-
export declare function createPromptVersionResponseBodyToJSON(createPromptVersionResponseBody: CreatePromptVersionResponseBody): string;
|
|
2002
|
-
export declare function createPromptVersionResponseBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseBody, SDKValidationError>;
|
|
2003
|
-
//# sourceMappingURL=createpromptversion.d.ts.map
|