@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
|
@@ -100,6 +100,18 @@ export declare const EncodingFormat: {
|
|
|
100
100
|
* The format to return the embeddings
|
|
101
101
|
*/
|
|
102
102
|
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
103
|
+
/**
|
|
104
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
105
|
+
*/
|
|
106
|
+
export declare const ReasoningEffort: {
|
|
107
|
+
readonly Low: "low";
|
|
108
|
+
readonly Medium: "medium";
|
|
109
|
+
readonly High: "high";
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
113
|
+
*/
|
|
114
|
+
export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
103
115
|
/**
|
|
104
116
|
* Model Parameters: Not all parameters apply to every model
|
|
105
117
|
*/
|
|
@@ -172,6 +184,10 @@ export type ModelParameters = {
|
|
|
172
184
|
* The format to return the embeddings
|
|
173
185
|
*/
|
|
174
186
|
encodingFormat?: EncodingFormat | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
189
|
+
*/
|
|
190
|
+
reasoningEffort?: ReasoningEffort | undefined;
|
|
175
191
|
};
|
|
176
192
|
export declare const Provider: {
|
|
177
193
|
readonly Cohere: "cohere";
|
|
@@ -190,6 +206,8 @@ export declare const Provider: {
|
|
|
190
206
|
readonly Leonardoai: "leonardoai";
|
|
191
207
|
readonly Nvidia: "nvidia";
|
|
192
208
|
readonly Jina: "jina";
|
|
209
|
+
readonly Togetherai: "togetherai";
|
|
210
|
+
readonly Elevenlabs: "elevenlabs";
|
|
193
211
|
};
|
|
194
212
|
export type Provider = ClosedEnum<typeof Provider>;
|
|
195
213
|
/**
|
|
@@ -274,6 +292,9 @@ export type CreatePromptMessages = {
|
|
|
274
292
|
content: string | Array<CreatePrompt21 | CreatePrompt22>;
|
|
275
293
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
276
294
|
};
|
|
295
|
+
/**
|
|
296
|
+
* A list of messages compatible with the openAI schema
|
|
297
|
+
*/
|
|
277
298
|
export type PromptConfig = {
|
|
278
299
|
stream?: boolean | undefined;
|
|
279
300
|
model?: string | undefined;
|
|
@@ -289,24 +310,74 @@ export type PromptConfig = {
|
|
|
289
310
|
version?: string | undefined;
|
|
290
311
|
messages: Array<CreatePromptMessages>;
|
|
291
312
|
};
|
|
313
|
+
export declare const UseCases: {
|
|
314
|
+
readonly Agents: "Agents";
|
|
315
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
316
|
+
readonly APIInteraction: "API interaction";
|
|
317
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
318
|
+
readonly Chatbots: "Chatbots";
|
|
319
|
+
readonly Classification: "Classification";
|
|
320
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
321
|
+
readonly CodeWriting: "Code writing";
|
|
322
|
+
readonly DocumentsQA: "Documents QA";
|
|
323
|
+
readonly Conversation: "Conversation";
|
|
324
|
+
readonly Extraction: "Extraction";
|
|
325
|
+
readonly MultiModal: "Multi-modal";
|
|
326
|
+
readonly SelfChecking: "Self-checking";
|
|
327
|
+
readonly Sql: "SQL";
|
|
328
|
+
readonly Summarization: "Summarization";
|
|
329
|
+
readonly Tagging: "Tagging";
|
|
330
|
+
};
|
|
331
|
+
export type UseCases = ClosedEnum<typeof UseCases>;
|
|
332
|
+
/**
|
|
333
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
334
|
+
*/
|
|
335
|
+
export declare const Language: {
|
|
336
|
+
readonly Chinese: "Chinese";
|
|
337
|
+
readonly Dutch: "Dutch";
|
|
338
|
+
readonly English: "English";
|
|
339
|
+
readonly French: "French";
|
|
340
|
+
readonly German: "German";
|
|
341
|
+
readonly Russian: "Russian";
|
|
342
|
+
readonly Spanish: "Spanish";
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
346
|
+
*/
|
|
347
|
+
export type Language = ClosedEnum<typeof Language>;
|
|
292
348
|
export type CreatePromptMetadata = {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
349
|
+
/**
|
|
350
|
+
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
351
|
+
*/
|
|
352
|
+
useCases?: Array<UseCases> | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
355
|
+
*/
|
|
356
|
+
language?: Language | undefined;
|
|
300
357
|
};
|
|
301
|
-
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
302
358
|
export type CreatePromptRequestBody = {
|
|
359
|
+
/**
|
|
360
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
361
|
+
*/
|
|
303
362
|
displayName: string;
|
|
363
|
+
/**
|
|
364
|
+
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
365
|
+
*/
|
|
304
366
|
description?: string | null | undefined;
|
|
305
|
-
|
|
367
|
+
/**
|
|
368
|
+
* A list of messages compatible with the openAI schema
|
|
369
|
+
*/
|
|
370
|
+
promptConfig: PromptConfig;
|
|
306
371
|
metadata?: CreatePromptMetadata | undefined;
|
|
307
|
-
|
|
308
|
-
|
|
372
|
+
/**
|
|
373
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
374
|
+
*/
|
|
375
|
+
path: string;
|
|
376
|
+
};
|
|
377
|
+
export declare const CreatePromptPromptsType: {
|
|
378
|
+
readonly Prompt: "prompt";
|
|
309
379
|
};
|
|
380
|
+
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
310
381
|
/**
|
|
311
382
|
* The type of the model
|
|
312
383
|
*/
|
|
@@ -405,6 +476,18 @@ export declare const CreatePromptEncodingFormat: {
|
|
|
405
476
|
* The format to return the embeddings
|
|
406
477
|
*/
|
|
407
478
|
export type CreatePromptEncodingFormat = ClosedEnum<typeof CreatePromptEncodingFormat>;
|
|
479
|
+
/**
|
|
480
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
481
|
+
*/
|
|
482
|
+
export declare const CreatePromptReasoningEffort: {
|
|
483
|
+
readonly Low: "low";
|
|
484
|
+
readonly Medium: "medium";
|
|
485
|
+
readonly High: "high";
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
489
|
+
*/
|
|
490
|
+
export type CreatePromptReasoningEffort = ClosedEnum<typeof CreatePromptReasoningEffort>;
|
|
408
491
|
/**
|
|
409
492
|
* Model Parameters: Not all parameters apply to every model
|
|
410
493
|
*/
|
|
@@ -477,6 +560,10 @@ export type CreatePromptModelParameters = {
|
|
|
477
560
|
* The format to return the embeddings
|
|
478
561
|
*/
|
|
479
562
|
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
563
|
+
/**
|
|
564
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
565
|
+
*/
|
|
566
|
+
reasoningEffort?: CreatePromptReasoningEffort | undefined;
|
|
480
567
|
};
|
|
481
568
|
export declare const CreatePromptProvider: {
|
|
482
569
|
readonly Cohere: "cohere";
|
|
@@ -495,6 +582,8 @@ export declare const CreatePromptProvider: {
|
|
|
495
582
|
readonly Leonardoai: "leonardoai";
|
|
496
583
|
readonly Nvidia: "nvidia";
|
|
497
584
|
readonly Jina: "jina";
|
|
585
|
+
readonly Togetherai: "togetherai";
|
|
586
|
+
readonly Elevenlabs: "elevenlabs";
|
|
498
587
|
};
|
|
499
588
|
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
500
589
|
/**
|
|
@@ -555,10 +644,10 @@ export type CreatePromptContentPrompts2 = CreatePrompt2Prompts1 | CreatePrompt2P
|
|
|
555
644
|
* 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.
|
|
556
645
|
*/
|
|
557
646
|
export type CreatePromptPromptsContent = string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
558
|
-
export declare const
|
|
647
|
+
export declare const CreatePromptPromptsResponseType: {
|
|
559
648
|
readonly Function: "function";
|
|
560
649
|
};
|
|
561
|
-
export type
|
|
650
|
+
export type CreatePromptPromptsResponseType = ClosedEnum<typeof CreatePromptPromptsResponseType>;
|
|
562
651
|
export type CreatePromptPromptsFunction = {
|
|
563
652
|
name: string;
|
|
564
653
|
/**
|
|
@@ -569,7 +658,7 @@ export type CreatePromptPromptsFunction = {
|
|
|
569
658
|
export type CreatePromptPromptsToolCalls = {
|
|
570
659
|
id?: string | undefined;
|
|
571
660
|
index?: number | undefined;
|
|
572
|
-
type:
|
|
661
|
+
type: CreatePromptPromptsResponseType;
|
|
573
662
|
function: CreatePromptPromptsFunction;
|
|
574
663
|
};
|
|
575
664
|
export type CreatePromptPromptsMessages = {
|
|
@@ -583,6 +672,9 @@ export type CreatePromptPromptsMessages = {
|
|
|
583
672
|
content: string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
584
673
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
585
674
|
};
|
|
675
|
+
/**
|
|
676
|
+
* A list of messages compatible with the openAI schema
|
|
677
|
+
*/
|
|
586
678
|
export type CreatePromptPromptConfig = {
|
|
587
679
|
stream?: boolean | undefined;
|
|
588
680
|
model?: string | undefined;
|
|
@@ -606,34 +698,76 @@ export type CreatePromptPromptConfig = {
|
|
|
606
698
|
version?: string | undefined;
|
|
607
699
|
messages: Array<CreatePromptPromptsMessages>;
|
|
608
700
|
};
|
|
701
|
+
export declare const CreatePromptUseCases: {
|
|
702
|
+
readonly Agents: "Agents";
|
|
703
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
704
|
+
readonly APIInteraction: "API interaction";
|
|
705
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
706
|
+
readonly Chatbots: "Chatbots";
|
|
707
|
+
readonly Classification: "Classification";
|
|
708
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
709
|
+
readonly CodeWriting: "Code writing";
|
|
710
|
+
readonly DocumentsQA: "Documents QA";
|
|
711
|
+
readonly Conversation: "Conversation";
|
|
712
|
+
readonly Extraction: "Extraction";
|
|
713
|
+
readonly MultiModal: "Multi-modal";
|
|
714
|
+
readonly SelfChecking: "Self-checking";
|
|
715
|
+
readonly Sql: "SQL";
|
|
716
|
+
readonly Summarization: "Summarization";
|
|
717
|
+
readonly Tagging: "Tagging";
|
|
718
|
+
};
|
|
719
|
+
export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
|
|
720
|
+
/**
|
|
721
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
722
|
+
*/
|
|
723
|
+
export declare const CreatePromptLanguage: {
|
|
724
|
+
readonly Chinese: "Chinese";
|
|
725
|
+
readonly Dutch: "Dutch";
|
|
726
|
+
readonly English: "English";
|
|
727
|
+
readonly French: "French";
|
|
728
|
+
readonly German: "German";
|
|
729
|
+
readonly Russian: "Russian";
|
|
730
|
+
readonly Spanish: "Spanish";
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
734
|
+
*/
|
|
735
|
+
export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
|
|
609
736
|
export type CreatePromptPromptsMetadata = {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
737
|
+
/**
|
|
738
|
+
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
739
|
+
*/
|
|
740
|
+
useCases?: Array<CreatePromptUseCases> | undefined;
|
|
741
|
+
/**
|
|
742
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
743
|
+
*/
|
|
744
|
+
language?: CreatePromptLanguage | undefined;
|
|
617
745
|
};
|
|
618
|
-
export type CreatePromptPromptsResponseType = ClosedEnum<typeof CreatePromptPromptsResponseType>;
|
|
619
746
|
/**
|
|
620
747
|
* Prompt created.
|
|
621
748
|
*/
|
|
622
749
|
export type CreatePromptResponseBody = {
|
|
750
|
+
id: string;
|
|
751
|
+
type: CreatePromptPromptsType;
|
|
752
|
+
owner: string;
|
|
753
|
+
domainId: string;
|
|
754
|
+
created: string;
|
|
755
|
+
updated: string;
|
|
756
|
+
createdById?: string | undefined;
|
|
757
|
+
updatedById?: string | undefined;
|
|
623
758
|
/**
|
|
624
|
-
* The
|
|
759
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
625
760
|
*/
|
|
626
|
-
id: string;
|
|
627
761
|
displayName: string;
|
|
628
762
|
/**
|
|
629
|
-
* The
|
|
763
|
+
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
630
764
|
*/
|
|
631
|
-
domainId: string;
|
|
632
765
|
description?: string | null | undefined;
|
|
633
|
-
|
|
766
|
+
/**
|
|
767
|
+
* A list of messages compatible with the openAI schema
|
|
768
|
+
*/
|
|
769
|
+
promptConfig: CreatePromptPromptConfig;
|
|
634
770
|
metadata?: CreatePromptPromptsMetadata | undefined;
|
|
635
|
-
key?: string | undefined;
|
|
636
|
-
type: CreatePromptPromptsResponseType;
|
|
637
771
|
};
|
|
638
772
|
/** @internal */
|
|
639
773
|
export declare const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType>;
|
|
@@ -881,6 +1015,28 @@ export declare namespace EncodingFormat$ {
|
|
|
881
1015
|
}>;
|
|
882
1016
|
}
|
|
883
1017
|
/** @internal */
|
|
1018
|
+
export declare const ReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof ReasoningEffort>;
|
|
1019
|
+
/** @internal */
|
|
1020
|
+
export declare const ReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof ReasoningEffort>;
|
|
1021
|
+
/**
|
|
1022
|
+
* @internal
|
|
1023
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1024
|
+
*/
|
|
1025
|
+
export declare namespace ReasoningEffort$ {
|
|
1026
|
+
/** @deprecated use `ReasoningEffort$inboundSchema` instead. */
|
|
1027
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1028
|
+
readonly Low: "low";
|
|
1029
|
+
readonly Medium: "medium";
|
|
1030
|
+
readonly High: "high";
|
|
1031
|
+
}>;
|
|
1032
|
+
/** @deprecated use `ReasoningEffort$outboundSchema` instead. */
|
|
1033
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1034
|
+
readonly Low: "low";
|
|
1035
|
+
readonly Medium: "medium";
|
|
1036
|
+
readonly High: "high";
|
|
1037
|
+
}>;
|
|
1038
|
+
}
|
|
1039
|
+
/** @internal */
|
|
884
1040
|
export declare const ModelParameters$inboundSchema: z.ZodType<ModelParameters, z.ZodTypeDef, unknown>;
|
|
885
1041
|
/** @internal */
|
|
886
1042
|
export type ModelParameters$Outbound = {
|
|
@@ -899,6 +1055,7 @@ export type ModelParameters$Outbound = {
|
|
|
899
1055
|
responseFormat?: ResponseFormat2$Outbound | ResponseFormat1$Outbound | null | undefined;
|
|
900
1056
|
photoRealVersion?: string | undefined;
|
|
901
1057
|
encoding_format?: string | undefined;
|
|
1058
|
+
reasoningEffort?: string | undefined;
|
|
902
1059
|
};
|
|
903
1060
|
/** @internal */
|
|
904
1061
|
export declare const ModelParameters$outboundSchema: z.ZodType<ModelParameters$Outbound, z.ZodTypeDef, ModelParameters>;
|
|
@@ -943,6 +1100,8 @@ export declare namespace Provider$ {
|
|
|
943
1100
|
readonly Leonardoai: "leonardoai";
|
|
944
1101
|
readonly Nvidia: "nvidia";
|
|
945
1102
|
readonly Jina: "jina";
|
|
1103
|
+
readonly Togetherai: "togetherai";
|
|
1104
|
+
readonly Elevenlabs: "elevenlabs";
|
|
946
1105
|
}>;
|
|
947
1106
|
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
948
1107
|
const outboundSchema: z.ZodNativeEnum<{
|
|
@@ -962,6 +1121,8 @@ export declare namespace Provider$ {
|
|
|
962
1121
|
readonly Leonardoai: "leonardoai";
|
|
963
1122
|
readonly Nvidia: "nvidia";
|
|
964
1123
|
readonly Jina: "jina";
|
|
1124
|
+
readonly Togetherai: "togetherai";
|
|
1125
|
+
readonly Elevenlabs: "elevenlabs";
|
|
965
1126
|
}>;
|
|
966
1127
|
}
|
|
967
1128
|
/** @internal */
|
|
@@ -1260,6 +1421,84 @@ export declare namespace PromptConfig$ {
|
|
|
1260
1421
|
export declare function promptConfigToJSON(promptConfig: PromptConfig): string;
|
|
1261
1422
|
export declare function promptConfigFromJSON(jsonString: string): SafeParseResult<PromptConfig, SDKValidationError>;
|
|
1262
1423
|
/** @internal */
|
|
1424
|
+
export declare const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases>;
|
|
1425
|
+
/** @internal */
|
|
1426
|
+
export declare const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases>;
|
|
1427
|
+
/**
|
|
1428
|
+
* @internal
|
|
1429
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1430
|
+
*/
|
|
1431
|
+
export declare namespace UseCases$ {
|
|
1432
|
+
/** @deprecated use `UseCases$inboundSchema` instead. */
|
|
1433
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1434
|
+
readonly Agents: "Agents";
|
|
1435
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1436
|
+
readonly APIInteraction: "API interaction";
|
|
1437
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1438
|
+
readonly Chatbots: "Chatbots";
|
|
1439
|
+
readonly Classification: "Classification";
|
|
1440
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1441
|
+
readonly CodeWriting: "Code writing";
|
|
1442
|
+
readonly DocumentsQA: "Documents QA";
|
|
1443
|
+
readonly Conversation: "Conversation";
|
|
1444
|
+
readonly Extraction: "Extraction";
|
|
1445
|
+
readonly MultiModal: "Multi-modal";
|
|
1446
|
+
readonly SelfChecking: "Self-checking";
|
|
1447
|
+
readonly Sql: "SQL";
|
|
1448
|
+
readonly Summarization: "Summarization";
|
|
1449
|
+
readonly Tagging: "Tagging";
|
|
1450
|
+
}>;
|
|
1451
|
+
/** @deprecated use `UseCases$outboundSchema` instead. */
|
|
1452
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1453
|
+
readonly Agents: "Agents";
|
|
1454
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1455
|
+
readonly APIInteraction: "API interaction";
|
|
1456
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1457
|
+
readonly Chatbots: "Chatbots";
|
|
1458
|
+
readonly Classification: "Classification";
|
|
1459
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1460
|
+
readonly CodeWriting: "Code writing";
|
|
1461
|
+
readonly DocumentsQA: "Documents QA";
|
|
1462
|
+
readonly Conversation: "Conversation";
|
|
1463
|
+
readonly Extraction: "Extraction";
|
|
1464
|
+
readonly MultiModal: "Multi-modal";
|
|
1465
|
+
readonly SelfChecking: "Self-checking";
|
|
1466
|
+
readonly Sql: "SQL";
|
|
1467
|
+
readonly Summarization: "Summarization";
|
|
1468
|
+
readonly Tagging: "Tagging";
|
|
1469
|
+
}>;
|
|
1470
|
+
}
|
|
1471
|
+
/** @internal */
|
|
1472
|
+
export declare const Language$inboundSchema: z.ZodNativeEnum<typeof Language>;
|
|
1473
|
+
/** @internal */
|
|
1474
|
+
export declare const Language$outboundSchema: z.ZodNativeEnum<typeof Language>;
|
|
1475
|
+
/**
|
|
1476
|
+
* @internal
|
|
1477
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1478
|
+
*/
|
|
1479
|
+
export declare namespace Language$ {
|
|
1480
|
+
/** @deprecated use `Language$inboundSchema` instead. */
|
|
1481
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1482
|
+
readonly Chinese: "Chinese";
|
|
1483
|
+
readonly Dutch: "Dutch";
|
|
1484
|
+
readonly English: "English";
|
|
1485
|
+
readonly French: "French";
|
|
1486
|
+
readonly German: "German";
|
|
1487
|
+
readonly Russian: "Russian";
|
|
1488
|
+
readonly Spanish: "Spanish";
|
|
1489
|
+
}>;
|
|
1490
|
+
/** @deprecated use `Language$outboundSchema` instead. */
|
|
1491
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1492
|
+
readonly Chinese: "Chinese";
|
|
1493
|
+
readonly Dutch: "Dutch";
|
|
1494
|
+
readonly English: "English";
|
|
1495
|
+
readonly French: "French";
|
|
1496
|
+
readonly German: "German";
|
|
1497
|
+
readonly Russian: "Russian";
|
|
1498
|
+
readonly Spanish: "Spanish";
|
|
1499
|
+
}>;
|
|
1500
|
+
}
|
|
1501
|
+
/** @internal */
|
|
1263
1502
|
export declare const CreatePromptMetadata$inboundSchema: z.ZodType<CreatePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1264
1503
|
/** @internal */
|
|
1265
1504
|
export type CreatePromptMetadata$Outbound = {
|
|
@@ -1283,37 +1522,14 @@ export declare namespace CreatePromptMetadata$ {
|
|
|
1283
1522
|
export declare function createPromptMetadataToJSON(createPromptMetadata: CreatePromptMetadata): string;
|
|
1284
1523
|
export declare function createPromptMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptMetadata, SDKValidationError>;
|
|
1285
1524
|
/** @internal */
|
|
1286
|
-
export declare const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1287
|
-
/** @internal */
|
|
1288
|
-
export declare const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1289
|
-
/**
|
|
1290
|
-
* @internal
|
|
1291
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1292
|
-
*/
|
|
1293
|
-
export declare namespace CreatePromptPromptsType$ {
|
|
1294
|
-
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1295
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1296
|
-
readonly Prompt: "prompt";
|
|
1297
|
-
readonly Snippet: "snippet";
|
|
1298
|
-
readonly Template: "template";
|
|
1299
|
-
}>;
|
|
1300
|
-
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1301
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
1302
|
-
readonly Prompt: "prompt";
|
|
1303
|
-
readonly Snippet: "snippet";
|
|
1304
|
-
readonly Template: "template";
|
|
1305
|
-
}>;
|
|
1306
|
-
}
|
|
1307
|
-
/** @internal */
|
|
1308
1525
|
export declare const CreatePromptRequestBody$inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1309
1526
|
/** @internal */
|
|
1310
1527
|
export type CreatePromptRequestBody$Outbound = {
|
|
1311
1528
|
display_name: string;
|
|
1312
1529
|
description?: string | null | undefined;
|
|
1313
|
-
prompt_config
|
|
1530
|
+
prompt_config: PromptConfig$Outbound;
|
|
1314
1531
|
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1315
|
-
|
|
1316
|
-
type: string;
|
|
1532
|
+
path: string;
|
|
1317
1533
|
};
|
|
1318
1534
|
/** @internal */
|
|
1319
1535
|
export declare const CreatePromptRequestBody$outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
@@ -1332,6 +1548,24 @@ export declare namespace CreatePromptRequestBody$ {
|
|
|
1332
1548
|
export declare function createPromptRequestBodyToJSON(createPromptRequestBody: CreatePromptRequestBody): string;
|
|
1333
1549
|
export declare function createPromptRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptRequestBody, SDKValidationError>;
|
|
1334
1550
|
/** @internal */
|
|
1551
|
+
export declare const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1552
|
+
/** @internal */
|
|
1553
|
+
export declare const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
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 CreatePromptPromptsType$ {
|
|
1559
|
+
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1560
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1561
|
+
readonly Prompt: "prompt";
|
|
1562
|
+
}>;
|
|
1563
|
+
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1564
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1565
|
+
readonly Prompt: "prompt";
|
|
1566
|
+
}>;
|
|
1567
|
+
}
|
|
1568
|
+
/** @internal */
|
|
1335
1569
|
export declare const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1336
1570
|
/** @internal */
|
|
1337
1571
|
export declare const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
@@ -1577,6 +1811,28 @@ export declare namespace CreatePromptEncodingFormat$ {
|
|
|
1577
1811
|
}>;
|
|
1578
1812
|
}
|
|
1579
1813
|
/** @internal */
|
|
1814
|
+
export declare const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof CreatePromptReasoningEffort>;
|
|
1815
|
+
/** @internal */
|
|
1816
|
+
export declare const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof CreatePromptReasoningEffort>;
|
|
1817
|
+
/**
|
|
1818
|
+
* @internal
|
|
1819
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1820
|
+
*/
|
|
1821
|
+
export declare namespace CreatePromptReasoningEffort$ {
|
|
1822
|
+
/** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
|
|
1823
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1824
|
+
readonly Low: "low";
|
|
1825
|
+
readonly Medium: "medium";
|
|
1826
|
+
readonly High: "high";
|
|
1827
|
+
}>;
|
|
1828
|
+
/** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
|
|
1829
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1830
|
+
readonly Low: "low";
|
|
1831
|
+
readonly Medium: "medium";
|
|
1832
|
+
readonly High: "high";
|
|
1833
|
+
}>;
|
|
1834
|
+
}
|
|
1835
|
+
/** @internal */
|
|
1580
1836
|
export declare const CreatePromptModelParameters$inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1581
1837
|
/** @internal */
|
|
1582
1838
|
export type CreatePromptModelParameters$Outbound = {
|
|
@@ -1595,6 +1851,7 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
1595
1851
|
responseFormat?: CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound | null | undefined;
|
|
1596
1852
|
photoRealVersion?: string | undefined;
|
|
1597
1853
|
encoding_format?: string | undefined;
|
|
1854
|
+
reasoningEffort?: string | undefined;
|
|
1598
1855
|
};
|
|
1599
1856
|
/** @internal */
|
|
1600
1857
|
export declare const CreatePromptModelParameters$outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
@@ -1639,6 +1896,8 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1639
1896
|
readonly Leonardoai: "leonardoai";
|
|
1640
1897
|
readonly Nvidia: "nvidia";
|
|
1641
1898
|
readonly Jina: "jina";
|
|
1899
|
+
readonly Togetherai: "togetherai";
|
|
1900
|
+
readonly Elevenlabs: "elevenlabs";
|
|
1642
1901
|
}>;
|
|
1643
1902
|
/** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
|
|
1644
1903
|
const outboundSchema: z.ZodNativeEnum<{
|
|
@@ -1658,6 +1917,8 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1658
1917
|
readonly Leonardoai: "leonardoai";
|
|
1659
1918
|
readonly Nvidia: "nvidia";
|
|
1660
1919
|
readonly Jina: "jina";
|
|
1920
|
+
readonly Togetherai: "togetherai";
|
|
1921
|
+
readonly Elevenlabs: "elevenlabs";
|
|
1661
1922
|
}>;
|
|
1662
1923
|
}
|
|
1663
1924
|
/** @internal */
|
|
@@ -1839,19 +2100,19 @@ export declare namespace CreatePromptPromptsContent$ {
|
|
|
1839
2100
|
export declare function createPromptPromptsContentToJSON(createPromptPromptsContent: CreatePromptPromptsContent): string;
|
|
1840
2101
|
export declare function createPromptPromptsContentFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsContent, SDKValidationError>;
|
|
1841
2102
|
/** @internal */
|
|
1842
|
-
export declare const
|
|
2103
|
+
export declare const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1843
2104
|
/** @internal */
|
|
1844
|
-
export declare const
|
|
2105
|
+
export declare const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1845
2106
|
/**
|
|
1846
2107
|
* @internal
|
|
1847
2108
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1848
2109
|
*/
|
|
1849
|
-
export declare namespace
|
|
1850
|
-
/** @deprecated use `
|
|
2110
|
+
export declare namespace CreatePromptPromptsResponseType$ {
|
|
2111
|
+
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
1851
2112
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1852
2113
|
readonly Function: "function";
|
|
1853
2114
|
}>;
|
|
1854
|
-
/** @deprecated use `
|
|
2115
|
+
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
1855
2116
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1856
2117
|
readonly Function: "function";
|
|
1857
2118
|
}>;
|
|
@@ -1959,6 +2220,84 @@ export declare namespace CreatePromptPromptConfig$ {
|
|
|
1959
2220
|
export declare function createPromptPromptConfigToJSON(createPromptPromptConfig: CreatePromptPromptConfig): string;
|
|
1960
2221
|
export declare function createPromptPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptConfig, SDKValidationError>;
|
|
1961
2222
|
/** @internal */
|
|
2223
|
+
export declare const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
2224
|
+
/** @internal */
|
|
2225
|
+
export declare const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
2226
|
+
/**
|
|
2227
|
+
* @internal
|
|
2228
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2229
|
+
*/
|
|
2230
|
+
export declare namespace CreatePromptUseCases$ {
|
|
2231
|
+
/** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
|
|
2232
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2233
|
+
readonly Agents: "Agents";
|
|
2234
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
2235
|
+
readonly APIInteraction: "API interaction";
|
|
2236
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
2237
|
+
readonly Chatbots: "Chatbots";
|
|
2238
|
+
readonly Classification: "Classification";
|
|
2239
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
2240
|
+
readonly CodeWriting: "Code writing";
|
|
2241
|
+
readonly DocumentsQA: "Documents QA";
|
|
2242
|
+
readonly Conversation: "Conversation";
|
|
2243
|
+
readonly Extraction: "Extraction";
|
|
2244
|
+
readonly MultiModal: "Multi-modal";
|
|
2245
|
+
readonly SelfChecking: "Self-checking";
|
|
2246
|
+
readonly Sql: "SQL";
|
|
2247
|
+
readonly Summarization: "Summarization";
|
|
2248
|
+
readonly Tagging: "Tagging";
|
|
2249
|
+
}>;
|
|
2250
|
+
/** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
|
|
2251
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2252
|
+
readonly Agents: "Agents";
|
|
2253
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
2254
|
+
readonly APIInteraction: "API interaction";
|
|
2255
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
2256
|
+
readonly Chatbots: "Chatbots";
|
|
2257
|
+
readonly Classification: "Classification";
|
|
2258
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
2259
|
+
readonly CodeWriting: "Code writing";
|
|
2260
|
+
readonly DocumentsQA: "Documents QA";
|
|
2261
|
+
readonly Conversation: "Conversation";
|
|
2262
|
+
readonly Extraction: "Extraction";
|
|
2263
|
+
readonly MultiModal: "Multi-modal";
|
|
2264
|
+
readonly SelfChecking: "Self-checking";
|
|
2265
|
+
readonly Sql: "SQL";
|
|
2266
|
+
readonly Summarization: "Summarization";
|
|
2267
|
+
readonly Tagging: "Tagging";
|
|
2268
|
+
}>;
|
|
2269
|
+
}
|
|
2270
|
+
/** @internal */
|
|
2271
|
+
export declare const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
2272
|
+
/** @internal */
|
|
2273
|
+
export declare const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
2274
|
+
/**
|
|
2275
|
+
* @internal
|
|
2276
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2277
|
+
*/
|
|
2278
|
+
export declare namespace CreatePromptLanguage$ {
|
|
2279
|
+
/** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
|
|
2280
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2281
|
+
readonly Chinese: "Chinese";
|
|
2282
|
+
readonly Dutch: "Dutch";
|
|
2283
|
+
readonly English: "English";
|
|
2284
|
+
readonly French: "French";
|
|
2285
|
+
readonly German: "German";
|
|
2286
|
+
readonly Russian: "Russian";
|
|
2287
|
+
readonly Spanish: "Spanish";
|
|
2288
|
+
}>;
|
|
2289
|
+
/** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
|
|
2290
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2291
|
+
readonly Chinese: "Chinese";
|
|
2292
|
+
readonly Dutch: "Dutch";
|
|
2293
|
+
readonly English: "English";
|
|
2294
|
+
readonly French: "French";
|
|
2295
|
+
readonly German: "German";
|
|
2296
|
+
readonly Russian: "Russian";
|
|
2297
|
+
readonly Spanish: "Spanish";
|
|
2298
|
+
}>;
|
|
2299
|
+
}
|
|
2300
|
+
/** @internal */
|
|
1962
2301
|
export declare const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<CreatePromptPromptsMetadata, z.ZodTypeDef, unknown>;
|
|
1963
2302
|
/** @internal */
|
|
1964
2303
|
export type CreatePromptPromptsMetadata$Outbound = {
|
|
@@ -1982,39 +2321,21 @@ export declare namespace CreatePromptPromptsMetadata$ {
|
|
|
1982
2321
|
export declare function createPromptPromptsMetadataToJSON(createPromptPromptsMetadata: CreatePromptPromptsMetadata): string;
|
|
1983
2322
|
export declare function createPromptPromptsMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMetadata, SDKValidationError>;
|
|
1984
2323
|
/** @internal */
|
|
1985
|
-
export declare const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1986
|
-
/** @internal */
|
|
1987
|
-
export declare const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1988
|
-
/**
|
|
1989
|
-
* @internal
|
|
1990
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1991
|
-
*/
|
|
1992
|
-
export declare namespace CreatePromptPromptsResponseType$ {
|
|
1993
|
-
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
1994
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
1995
|
-
readonly Prompt: "prompt";
|
|
1996
|
-
readonly Snippet: "snippet";
|
|
1997
|
-
readonly Template: "template";
|
|
1998
|
-
}>;
|
|
1999
|
-
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
2000
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
2001
|
-
readonly Prompt: "prompt";
|
|
2002
|
-
readonly Snippet: "snippet";
|
|
2003
|
-
readonly Template: "template";
|
|
2004
|
-
}>;
|
|
2005
|
-
}
|
|
2006
|
-
/** @internal */
|
|
2007
2324
|
export declare const CreatePromptResponseBody$inboundSchema: z.ZodType<CreatePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
2008
2325
|
/** @internal */
|
|
2009
2326
|
export type CreatePromptResponseBody$Outbound = {
|
|
2010
2327
|
_id: string;
|
|
2011
|
-
|
|
2328
|
+
type: string;
|
|
2329
|
+
owner: string;
|
|
2012
2330
|
domain_id: string;
|
|
2331
|
+
created: string;
|
|
2332
|
+
updated: string;
|
|
2333
|
+
created_by_id?: string | undefined;
|
|
2334
|
+
updated_by_id?: string | undefined;
|
|
2335
|
+
display_name: string;
|
|
2013
2336
|
description?: string | null | undefined;
|
|
2014
|
-
prompt_config
|
|
2337
|
+
prompt_config: CreatePromptPromptConfig$Outbound;
|
|
2015
2338
|
metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
|
|
2016
|
-
key?: string | undefined;
|
|
2017
|
-
type: string;
|
|
2018
2339
|
};
|
|
2019
2340
|
/** @internal */
|
|
2020
2341
|
export declare const CreatePromptResponseBody$outboundSchema: z.ZodType<CreatePromptResponseBody$Outbound, z.ZodTypeDef, CreatePromptResponseBody>;
|