@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
|
@@ -118,6 +118,19 @@ export const EncodingFormat = {
|
|
|
118
118
|
*/
|
|
119
119
|
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
123
|
+
*/
|
|
124
|
+
export const ReasoningEffort = {
|
|
125
|
+
Low: "low",
|
|
126
|
+
Medium: "medium",
|
|
127
|
+
High: "high",
|
|
128
|
+
} as const;
|
|
129
|
+
/**
|
|
130
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
131
|
+
*/
|
|
132
|
+
export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
133
|
+
|
|
121
134
|
/**
|
|
122
135
|
* Model Parameters: Not all parameters apply to every model
|
|
123
136
|
*/
|
|
@@ -190,6 +203,10 @@ export type ModelParameters = {
|
|
|
190
203
|
* The format to return the embeddings
|
|
191
204
|
*/
|
|
192
205
|
encodingFormat?: EncodingFormat | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
208
|
+
*/
|
|
209
|
+
reasoningEffort?: ReasoningEffort | undefined;
|
|
193
210
|
};
|
|
194
211
|
|
|
195
212
|
export const Provider = {
|
|
@@ -209,6 +226,8 @@ export const Provider = {
|
|
|
209
226
|
Leonardoai: "leonardoai",
|
|
210
227
|
Nvidia: "nvidia",
|
|
211
228
|
Jina: "jina",
|
|
229
|
+
Togetherai: "togetherai",
|
|
230
|
+
Elevenlabs: "elevenlabs",
|
|
212
231
|
} as const;
|
|
213
232
|
export type Provider = ClosedEnum<typeof Provider>;
|
|
214
233
|
|
|
@@ -310,6 +329,9 @@ export type CreatePromptMessages = {
|
|
|
310
329
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
311
330
|
};
|
|
312
331
|
|
|
332
|
+
/**
|
|
333
|
+
* A list of messages compatible with the openAI schema
|
|
334
|
+
*/
|
|
313
335
|
export type PromptConfig = {
|
|
314
336
|
stream?: boolean | undefined;
|
|
315
337
|
model?: string | undefined;
|
|
@@ -326,29 +348,81 @@ export type PromptConfig = {
|
|
|
326
348
|
messages: Array<CreatePromptMessages>;
|
|
327
349
|
};
|
|
328
350
|
|
|
351
|
+
export const UseCases = {
|
|
352
|
+
Agents: "Agents",
|
|
353
|
+
AgentsSimulations: "Agents simulations",
|
|
354
|
+
APIInteraction: "API interaction",
|
|
355
|
+
AutonomousAgents: "Autonomous Agents",
|
|
356
|
+
Chatbots: "Chatbots",
|
|
357
|
+
Classification: "Classification",
|
|
358
|
+
CodeUnderstanding: "Code understanding",
|
|
359
|
+
CodeWriting: "Code writing",
|
|
360
|
+
DocumentsQA: "Documents QA",
|
|
361
|
+
Conversation: "Conversation",
|
|
362
|
+
Extraction: "Extraction",
|
|
363
|
+
MultiModal: "Multi-modal",
|
|
364
|
+
SelfChecking: "Self-checking",
|
|
365
|
+
Sql: "SQL",
|
|
366
|
+
Summarization: "Summarization",
|
|
367
|
+
Tagging: "Tagging",
|
|
368
|
+
} as const;
|
|
369
|
+
export type UseCases = ClosedEnum<typeof UseCases>;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
373
|
+
*/
|
|
374
|
+
export const Language = {
|
|
375
|
+
Chinese: "Chinese",
|
|
376
|
+
Dutch: "Dutch",
|
|
377
|
+
English: "English",
|
|
378
|
+
French: "French",
|
|
379
|
+
German: "German",
|
|
380
|
+
Russian: "Russian",
|
|
381
|
+
Spanish: "Spanish",
|
|
382
|
+
} as const;
|
|
383
|
+
/**
|
|
384
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
385
|
+
*/
|
|
386
|
+
export type Language = ClosedEnum<typeof Language>;
|
|
387
|
+
|
|
329
388
|
export type CreatePromptMetadata = {
|
|
330
|
-
|
|
331
|
-
|
|
389
|
+
/**
|
|
390
|
+
* 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
|
|
391
|
+
*/
|
|
392
|
+
useCases?: Array<UseCases> | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
395
|
+
*/
|
|
396
|
+
language?: Language | undefined;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
export type CreatePromptRequestBody = {
|
|
400
|
+
/**
|
|
401
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
402
|
+
*/
|
|
403
|
+
displayName: string;
|
|
404
|
+
/**
|
|
405
|
+
* 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
|
|
406
|
+
*/
|
|
407
|
+
description?: string | null | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* A list of messages compatible with the openAI schema
|
|
410
|
+
*/
|
|
411
|
+
promptConfig: PromptConfig;
|
|
412
|
+
metadata?: CreatePromptMetadata | undefined;
|
|
413
|
+
/**
|
|
414
|
+
* 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.
|
|
415
|
+
*/
|
|
416
|
+
path: string;
|
|
332
417
|
};
|
|
333
418
|
|
|
334
419
|
export const CreatePromptPromptsType = {
|
|
335
420
|
Prompt: "prompt",
|
|
336
|
-
Snippet: "snippet",
|
|
337
|
-
Template: "template",
|
|
338
421
|
} as const;
|
|
339
422
|
export type CreatePromptPromptsType = ClosedEnum<
|
|
340
423
|
typeof CreatePromptPromptsType
|
|
341
424
|
>;
|
|
342
425
|
|
|
343
|
-
export type CreatePromptRequestBody = {
|
|
344
|
-
displayName: string;
|
|
345
|
-
description?: string | null | undefined;
|
|
346
|
-
promptConfig?: PromptConfig | undefined;
|
|
347
|
-
metadata?: CreatePromptMetadata | undefined;
|
|
348
|
-
key?: string | undefined;
|
|
349
|
-
type: CreatePromptPromptsType;
|
|
350
|
-
};
|
|
351
|
-
|
|
352
426
|
/**
|
|
353
427
|
* The type of the model
|
|
354
428
|
*/
|
|
@@ -466,6 +540,21 @@ export type CreatePromptEncodingFormat = ClosedEnum<
|
|
|
466
540
|
typeof CreatePromptEncodingFormat
|
|
467
541
|
>;
|
|
468
542
|
|
|
543
|
+
/**
|
|
544
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
545
|
+
*/
|
|
546
|
+
export const CreatePromptReasoningEffort = {
|
|
547
|
+
Low: "low",
|
|
548
|
+
Medium: "medium",
|
|
549
|
+
High: "high",
|
|
550
|
+
} as const;
|
|
551
|
+
/**
|
|
552
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
553
|
+
*/
|
|
554
|
+
export type CreatePromptReasoningEffort = ClosedEnum<
|
|
555
|
+
typeof CreatePromptReasoningEffort
|
|
556
|
+
>;
|
|
557
|
+
|
|
469
558
|
/**
|
|
470
559
|
* Model Parameters: Not all parameters apply to every model
|
|
471
560
|
*/
|
|
@@ -542,6 +631,10 @@ export type CreatePromptModelParameters = {
|
|
|
542
631
|
* The format to return the embeddings
|
|
543
632
|
*/
|
|
544
633
|
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
634
|
+
/**
|
|
635
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
636
|
+
*/
|
|
637
|
+
reasoningEffort?: CreatePromptReasoningEffort | undefined;
|
|
545
638
|
};
|
|
546
639
|
|
|
547
640
|
export const CreatePromptProvider = {
|
|
@@ -561,6 +654,8 @@ export const CreatePromptProvider = {
|
|
|
561
654
|
Leonardoai: "leonardoai",
|
|
562
655
|
Nvidia: "nvidia",
|
|
563
656
|
Jina: "jina",
|
|
657
|
+
Togetherai: "togetherai",
|
|
658
|
+
Elevenlabs: "elevenlabs",
|
|
564
659
|
} as const;
|
|
565
660
|
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
566
661
|
|
|
@@ -640,11 +735,11 @@ export type CreatePromptPromptsContent =
|
|
|
640
735
|
| string
|
|
641
736
|
| Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
642
737
|
|
|
643
|
-
export const
|
|
738
|
+
export const CreatePromptPromptsResponseType = {
|
|
644
739
|
Function: "function",
|
|
645
740
|
} as const;
|
|
646
|
-
export type
|
|
647
|
-
typeof
|
|
741
|
+
export type CreatePromptPromptsResponseType = ClosedEnum<
|
|
742
|
+
typeof CreatePromptPromptsResponseType
|
|
648
743
|
>;
|
|
649
744
|
|
|
650
745
|
export type CreatePromptPromptsFunction = {
|
|
@@ -658,7 +753,7 @@ export type CreatePromptPromptsFunction = {
|
|
|
658
753
|
export type CreatePromptPromptsToolCalls = {
|
|
659
754
|
id?: string | undefined;
|
|
660
755
|
index?: number | undefined;
|
|
661
|
-
type:
|
|
756
|
+
type: CreatePromptPromptsResponseType;
|
|
662
757
|
function: CreatePromptPromptsFunction;
|
|
663
758
|
};
|
|
664
759
|
|
|
@@ -674,6 +769,9 @@ export type CreatePromptPromptsMessages = {
|
|
|
674
769
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
675
770
|
};
|
|
676
771
|
|
|
772
|
+
/**
|
|
773
|
+
* A list of messages compatible with the openAI schema
|
|
774
|
+
*/
|
|
677
775
|
export type CreatePromptPromptConfig = {
|
|
678
776
|
stream?: boolean | undefined;
|
|
679
777
|
model?: string | undefined;
|
|
@@ -698,38 +796,79 @@ export type CreatePromptPromptConfig = {
|
|
|
698
796
|
messages: Array<CreatePromptPromptsMessages>;
|
|
699
797
|
};
|
|
700
798
|
|
|
701
|
-
export
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
799
|
+
export const CreatePromptUseCases = {
|
|
800
|
+
Agents: "Agents",
|
|
801
|
+
AgentsSimulations: "Agents simulations",
|
|
802
|
+
APIInteraction: "API interaction",
|
|
803
|
+
AutonomousAgents: "Autonomous Agents",
|
|
804
|
+
Chatbots: "Chatbots",
|
|
805
|
+
Classification: "Classification",
|
|
806
|
+
CodeUnderstanding: "Code understanding",
|
|
807
|
+
CodeWriting: "Code writing",
|
|
808
|
+
DocumentsQA: "Documents QA",
|
|
809
|
+
Conversation: "Conversation",
|
|
810
|
+
Extraction: "Extraction",
|
|
811
|
+
MultiModal: "Multi-modal",
|
|
812
|
+
SelfChecking: "Self-checking",
|
|
813
|
+
Sql: "SQL",
|
|
814
|
+
Summarization: "Summarization",
|
|
815
|
+
Tagging: "Tagging",
|
|
816
|
+
} as const;
|
|
817
|
+
export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
|
|
705
818
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
819
|
+
/**
|
|
820
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
821
|
+
*/
|
|
822
|
+
export const CreatePromptLanguage = {
|
|
823
|
+
Chinese: "Chinese",
|
|
824
|
+
Dutch: "Dutch",
|
|
825
|
+
English: "English",
|
|
826
|
+
French: "French",
|
|
827
|
+
German: "German",
|
|
828
|
+
Russian: "Russian",
|
|
829
|
+
Spanish: "Spanish",
|
|
710
830
|
} as const;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
831
|
+
/**
|
|
832
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
833
|
+
*/
|
|
834
|
+
export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
|
|
835
|
+
|
|
836
|
+
export type CreatePromptPromptsMetadata = {
|
|
837
|
+
/**
|
|
838
|
+
* 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
|
|
839
|
+
*/
|
|
840
|
+
useCases?: Array<CreatePromptUseCases> | undefined;
|
|
841
|
+
/**
|
|
842
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
843
|
+
*/
|
|
844
|
+
language?: CreatePromptLanguage | undefined;
|
|
845
|
+
};
|
|
714
846
|
|
|
715
847
|
/**
|
|
716
848
|
* Prompt created.
|
|
717
849
|
*/
|
|
718
850
|
export type CreatePromptResponseBody = {
|
|
851
|
+
id: string;
|
|
852
|
+
type: CreatePromptPromptsType;
|
|
853
|
+
owner: string;
|
|
854
|
+
domainId: string;
|
|
855
|
+
created: string;
|
|
856
|
+
updated: string;
|
|
857
|
+
createdById?: string | undefined;
|
|
858
|
+
updatedById?: string | undefined;
|
|
719
859
|
/**
|
|
720
|
-
* The
|
|
860
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
721
861
|
*/
|
|
722
|
-
id: string;
|
|
723
862
|
displayName: string;
|
|
724
863
|
/**
|
|
725
|
-
* The
|
|
864
|
+
* 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
|
|
726
865
|
*/
|
|
727
|
-
domainId: string;
|
|
728
866
|
description?: string | null | undefined;
|
|
729
|
-
|
|
867
|
+
/**
|
|
868
|
+
* A list of messages compatible with the openAI schema
|
|
869
|
+
*/
|
|
870
|
+
promptConfig: CreatePromptPromptConfig;
|
|
730
871
|
metadata?: CreatePromptPromptsMetadata | undefined;
|
|
731
|
-
key?: string | undefined;
|
|
732
|
-
type: CreatePromptPromptsResponseType;
|
|
733
872
|
};
|
|
734
873
|
|
|
735
874
|
/** @internal */
|
|
@@ -1096,6 +1235,27 @@ export namespace EncodingFormat$ {
|
|
|
1096
1235
|
export const outboundSchema = EncodingFormat$outboundSchema;
|
|
1097
1236
|
}
|
|
1098
1237
|
|
|
1238
|
+
/** @internal */
|
|
1239
|
+
export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1240
|
+
typeof ReasoningEffort
|
|
1241
|
+
> = z.nativeEnum(ReasoningEffort);
|
|
1242
|
+
|
|
1243
|
+
/** @internal */
|
|
1244
|
+
export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1245
|
+
typeof ReasoningEffort
|
|
1246
|
+
> = ReasoningEffort$inboundSchema;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* @internal
|
|
1250
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1251
|
+
*/
|
|
1252
|
+
export namespace ReasoningEffort$ {
|
|
1253
|
+
/** @deprecated use `ReasoningEffort$inboundSchema` instead. */
|
|
1254
|
+
export const inboundSchema = ReasoningEffort$inboundSchema;
|
|
1255
|
+
/** @deprecated use `ReasoningEffort$outboundSchema` instead. */
|
|
1256
|
+
export const outboundSchema = ReasoningEffort$outboundSchema;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1099
1259
|
/** @internal */
|
|
1100
1260
|
export const ModelParameters$inboundSchema: z.ZodType<
|
|
1101
1261
|
ModelParameters,
|
|
@@ -1122,6 +1282,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1122
1282
|
).optional(),
|
|
1123
1283
|
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
1124
1284
|
encoding_format: EncodingFormat$inboundSchema.optional(),
|
|
1285
|
+
reasoningEffort: ReasoningEffort$inboundSchema.optional(),
|
|
1125
1286
|
}).transform((v) => {
|
|
1126
1287
|
return remap$(v, {
|
|
1127
1288
|
"encoding_format": "encodingFormat",
|
|
@@ -1149,6 +1310,7 @@ export type ModelParameters$Outbound = {
|
|
|
1149
1310
|
| undefined;
|
|
1150
1311
|
photoRealVersion?: string | undefined;
|
|
1151
1312
|
encoding_format?: string | undefined;
|
|
1313
|
+
reasoningEffort?: string | undefined;
|
|
1152
1314
|
};
|
|
1153
1315
|
|
|
1154
1316
|
/** @internal */
|
|
@@ -1177,6 +1339,7 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1177
1339
|
).optional(),
|
|
1178
1340
|
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
1179
1341
|
encodingFormat: EncodingFormat$outboundSchema.optional(),
|
|
1342
|
+
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
1180
1343
|
}).transform((v) => {
|
|
1181
1344
|
return remap$(v, {
|
|
1182
1345
|
encodingFormat: "encoding_format",
|
|
@@ -1884,14 +2047,52 @@ export function promptConfigFromJSON(
|
|
|
1884
2047
|
);
|
|
1885
2048
|
}
|
|
1886
2049
|
|
|
2050
|
+
/** @internal */
|
|
2051
|
+
export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
|
|
2052
|
+
.nativeEnum(UseCases);
|
|
2053
|
+
|
|
2054
|
+
/** @internal */
|
|
2055
|
+
export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
|
|
2056
|
+
UseCases$inboundSchema;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* @internal
|
|
2060
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2061
|
+
*/
|
|
2062
|
+
export namespace UseCases$ {
|
|
2063
|
+
/** @deprecated use `UseCases$inboundSchema` instead. */
|
|
2064
|
+
export const inboundSchema = UseCases$inboundSchema;
|
|
2065
|
+
/** @deprecated use `UseCases$outboundSchema` instead. */
|
|
2066
|
+
export const outboundSchema = UseCases$outboundSchema;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
/** @internal */
|
|
2070
|
+
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
2071
|
+
.nativeEnum(Language);
|
|
2072
|
+
|
|
2073
|
+
/** @internal */
|
|
2074
|
+
export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
|
|
2075
|
+
Language$inboundSchema;
|
|
2076
|
+
|
|
2077
|
+
/**
|
|
2078
|
+
* @internal
|
|
2079
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2080
|
+
*/
|
|
2081
|
+
export namespace Language$ {
|
|
2082
|
+
/** @deprecated use `Language$inboundSchema` instead. */
|
|
2083
|
+
export const inboundSchema = Language$inboundSchema;
|
|
2084
|
+
/** @deprecated use `Language$outboundSchema` instead. */
|
|
2085
|
+
export const outboundSchema = Language$outboundSchema;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
1887
2088
|
/** @internal */
|
|
1888
2089
|
export const CreatePromptMetadata$inboundSchema: z.ZodType<
|
|
1889
2090
|
CreatePromptMetadata,
|
|
1890
2091
|
z.ZodTypeDef,
|
|
1891
2092
|
unknown
|
|
1892
2093
|
> = z.object({
|
|
1893
|
-
use_cases: z.array(
|
|
1894
|
-
language:
|
|
2094
|
+
use_cases: z.array(UseCases$inboundSchema).optional(),
|
|
2095
|
+
language: Language$inboundSchema.optional(),
|
|
1895
2096
|
}).transform((v) => {
|
|
1896
2097
|
return remap$(v, {
|
|
1897
2098
|
"use_cases": "useCases",
|
|
@@ -1910,8 +2111,8 @@ export const CreatePromptMetadata$outboundSchema: z.ZodType<
|
|
|
1910
2111
|
z.ZodTypeDef,
|
|
1911
2112
|
CreatePromptMetadata
|
|
1912
2113
|
> = z.object({
|
|
1913
|
-
useCases: z.array(
|
|
1914
|
-
language:
|
|
2114
|
+
useCases: z.array(UseCases$outboundSchema).optional(),
|
|
2115
|
+
language: Language$outboundSchema.optional(),
|
|
1915
2116
|
}).transform((v) => {
|
|
1916
2117
|
return remap$(v, {
|
|
1917
2118
|
useCases: "use_cases",
|
|
@@ -1949,27 +2150,6 @@ export function createPromptMetadataFromJSON(
|
|
|
1949
2150
|
);
|
|
1950
2151
|
}
|
|
1951
2152
|
|
|
1952
|
-
/** @internal */
|
|
1953
|
-
export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1954
|
-
typeof CreatePromptPromptsType
|
|
1955
|
-
> = z.nativeEnum(CreatePromptPromptsType);
|
|
1956
|
-
|
|
1957
|
-
/** @internal */
|
|
1958
|
-
export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1959
|
-
typeof CreatePromptPromptsType
|
|
1960
|
-
> = CreatePromptPromptsType$inboundSchema;
|
|
1961
|
-
|
|
1962
|
-
/**
|
|
1963
|
-
* @internal
|
|
1964
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1965
|
-
*/
|
|
1966
|
-
export namespace CreatePromptPromptsType$ {
|
|
1967
|
-
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1968
|
-
export const inboundSchema = CreatePromptPromptsType$inboundSchema;
|
|
1969
|
-
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1970
|
-
export const outboundSchema = CreatePromptPromptsType$outboundSchema;
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
2153
|
/** @internal */
|
|
1974
2154
|
export const CreatePromptRequestBody$inboundSchema: z.ZodType<
|
|
1975
2155
|
CreatePromptRequestBody,
|
|
@@ -1978,10 +2158,9 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
|
|
|
1978
2158
|
> = z.object({
|
|
1979
2159
|
display_name: z.string(),
|
|
1980
2160
|
description: z.nullable(z.string()).optional(),
|
|
1981
|
-
prompt_config: z.lazy(() => PromptConfig$inboundSchema)
|
|
2161
|
+
prompt_config: z.lazy(() => PromptConfig$inboundSchema),
|
|
1982
2162
|
metadata: z.lazy(() => CreatePromptMetadata$inboundSchema).optional(),
|
|
1983
|
-
|
|
1984
|
-
type: CreatePromptPromptsType$inboundSchema,
|
|
2163
|
+
path: z.string(),
|
|
1985
2164
|
}).transform((v) => {
|
|
1986
2165
|
return remap$(v, {
|
|
1987
2166
|
"display_name": "displayName",
|
|
@@ -1993,10 +2172,9 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
|
|
|
1993
2172
|
export type CreatePromptRequestBody$Outbound = {
|
|
1994
2173
|
display_name: string;
|
|
1995
2174
|
description?: string | null | undefined;
|
|
1996
|
-
prompt_config
|
|
2175
|
+
prompt_config: PromptConfig$Outbound;
|
|
1997
2176
|
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1998
|
-
|
|
1999
|
-
type: string;
|
|
2177
|
+
path: string;
|
|
2000
2178
|
};
|
|
2001
2179
|
|
|
2002
2180
|
/** @internal */
|
|
@@ -2007,10 +2185,9 @@ export const CreatePromptRequestBody$outboundSchema: z.ZodType<
|
|
|
2007
2185
|
> = z.object({
|
|
2008
2186
|
displayName: z.string(),
|
|
2009
2187
|
description: z.nullable(z.string()).optional(),
|
|
2010
|
-
promptConfig: z.lazy(() => PromptConfig$outboundSchema)
|
|
2188
|
+
promptConfig: z.lazy(() => PromptConfig$outboundSchema),
|
|
2011
2189
|
metadata: z.lazy(() => CreatePromptMetadata$outboundSchema).optional(),
|
|
2012
|
-
|
|
2013
|
-
type: CreatePromptPromptsType$outboundSchema,
|
|
2190
|
+
path: z.string(),
|
|
2014
2191
|
}).transform((v) => {
|
|
2015
2192
|
return remap$(v, {
|
|
2016
2193
|
displayName: "display_name",
|
|
@@ -2049,6 +2226,27 @@ export function createPromptRequestBodyFromJSON(
|
|
|
2049
2226
|
);
|
|
2050
2227
|
}
|
|
2051
2228
|
|
|
2229
|
+
/** @internal */
|
|
2230
|
+
export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2231
|
+
typeof CreatePromptPromptsType
|
|
2232
|
+
> = z.nativeEnum(CreatePromptPromptsType);
|
|
2233
|
+
|
|
2234
|
+
/** @internal */
|
|
2235
|
+
export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
2236
|
+
typeof CreatePromptPromptsType
|
|
2237
|
+
> = CreatePromptPromptsType$inboundSchema;
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* @internal
|
|
2241
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2242
|
+
*/
|
|
2243
|
+
export namespace CreatePromptPromptsType$ {
|
|
2244
|
+
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
2245
|
+
export const inboundSchema = CreatePromptPromptsType$inboundSchema;
|
|
2246
|
+
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
2247
|
+
export const outboundSchema = CreatePromptPromptsType$outboundSchema;
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2052
2250
|
/** @internal */
|
|
2053
2251
|
export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
2054
2252
|
typeof CreatePromptModelType
|
|
@@ -2445,6 +2643,27 @@ export namespace CreatePromptEncodingFormat$ {
|
|
|
2445
2643
|
export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
|
|
2446
2644
|
}
|
|
2447
2645
|
|
|
2646
|
+
/** @internal */
|
|
2647
|
+
export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2648
|
+
typeof CreatePromptReasoningEffort
|
|
2649
|
+
> = z.nativeEnum(CreatePromptReasoningEffort);
|
|
2650
|
+
|
|
2651
|
+
/** @internal */
|
|
2652
|
+
export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2653
|
+
typeof CreatePromptReasoningEffort
|
|
2654
|
+
> = CreatePromptReasoningEffort$inboundSchema;
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* @internal
|
|
2658
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2659
|
+
*/
|
|
2660
|
+
export namespace CreatePromptReasoningEffort$ {
|
|
2661
|
+
/** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
|
|
2662
|
+
export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
|
|
2663
|
+
/** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
|
|
2664
|
+
export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2448
2667
|
/** @internal */
|
|
2449
2668
|
export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
2450
2669
|
CreatePromptModelParameters,
|
|
@@ -2471,6 +2690,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
2471
2690
|
).optional(),
|
|
2472
2691
|
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
2473
2692
|
encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
|
|
2693
|
+
reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
|
|
2474
2694
|
}).transform((v) => {
|
|
2475
2695
|
return remap$(v, {
|
|
2476
2696
|
"encoding_format": "encodingFormat",
|
|
@@ -2498,6 +2718,7 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
2498
2718
|
| undefined;
|
|
2499
2719
|
photoRealVersion?: string | undefined;
|
|
2500
2720
|
encoding_format?: string | undefined;
|
|
2721
|
+
reasoningEffort?: string | undefined;
|
|
2501
2722
|
};
|
|
2502
2723
|
|
|
2503
2724
|
/** @internal */
|
|
@@ -2526,6 +2747,7 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
2526
2747
|
).optional(),
|
|
2527
2748
|
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
2528
2749
|
encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
|
|
2750
|
+
reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
|
|
2529
2751
|
}).transform((v) => {
|
|
2530
2752
|
return remap$(v, {
|
|
2531
2753
|
encodingFormat: "encoding_format",
|
|
@@ -2956,25 +3178,24 @@ export function createPromptPromptsContentFromJSON(
|
|
|
2956
3178
|
}
|
|
2957
3179
|
|
|
2958
3180
|
/** @internal */
|
|
2959
|
-
export const
|
|
2960
|
-
typeof
|
|
2961
|
-
> = z.nativeEnum(
|
|
3181
|
+
export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3182
|
+
typeof CreatePromptPromptsResponseType
|
|
3183
|
+
> = z.nativeEnum(CreatePromptPromptsResponseType);
|
|
2962
3184
|
|
|
2963
3185
|
/** @internal */
|
|
2964
|
-
export const
|
|
2965
|
-
typeof
|
|
2966
|
-
> =
|
|
3186
|
+
export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3187
|
+
typeof CreatePromptPromptsResponseType
|
|
3188
|
+
> = CreatePromptPromptsResponseType$inboundSchema;
|
|
2967
3189
|
|
|
2968
3190
|
/**
|
|
2969
3191
|
* @internal
|
|
2970
3192
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2971
3193
|
*/
|
|
2972
|
-
export namespace
|
|
2973
|
-
/** @deprecated use `
|
|
2974
|
-
export const inboundSchema =
|
|
2975
|
-
/** @deprecated use `
|
|
2976
|
-
export const outboundSchema =
|
|
2977
|
-
CreatePromptPromptsResponse200Type$outboundSchema;
|
|
3194
|
+
export namespace CreatePromptPromptsResponseType$ {
|
|
3195
|
+
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
3196
|
+
export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
|
|
3197
|
+
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
3198
|
+
export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
|
|
2978
3199
|
}
|
|
2979
3200
|
|
|
2980
3201
|
/** @internal */
|
|
@@ -3044,7 +3265,7 @@ export const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<
|
|
|
3044
3265
|
> = z.object({
|
|
3045
3266
|
id: z.string().optional(),
|
|
3046
3267
|
index: z.number().optional(),
|
|
3047
|
-
type:
|
|
3268
|
+
type: CreatePromptPromptsResponseType$inboundSchema,
|
|
3048
3269
|
function: z.lazy(() => CreatePromptPromptsFunction$inboundSchema),
|
|
3049
3270
|
});
|
|
3050
3271
|
|
|
@@ -3064,7 +3285,7 @@ export const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<
|
|
|
3064
3285
|
> = z.object({
|
|
3065
3286
|
id: z.string().optional(),
|
|
3066
3287
|
index: z.number().optional(),
|
|
3067
|
-
type:
|
|
3288
|
+
type: CreatePromptPromptsResponseType$outboundSchema,
|
|
3068
3289
|
function: z.lazy(() => CreatePromptPromptsFunction$outboundSchema),
|
|
3069
3290
|
});
|
|
3070
3291
|
|
|
@@ -3281,14 +3502,56 @@ export function createPromptPromptConfigFromJSON(
|
|
|
3281
3502
|
);
|
|
3282
3503
|
}
|
|
3283
3504
|
|
|
3505
|
+
/** @internal */
|
|
3506
|
+
export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
3507
|
+
typeof CreatePromptUseCases
|
|
3508
|
+
> = z.nativeEnum(CreatePromptUseCases);
|
|
3509
|
+
|
|
3510
|
+
/** @internal */
|
|
3511
|
+
export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
3512
|
+
typeof CreatePromptUseCases
|
|
3513
|
+
> = CreatePromptUseCases$inboundSchema;
|
|
3514
|
+
|
|
3515
|
+
/**
|
|
3516
|
+
* @internal
|
|
3517
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3518
|
+
*/
|
|
3519
|
+
export namespace CreatePromptUseCases$ {
|
|
3520
|
+
/** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
|
|
3521
|
+
export const inboundSchema = CreatePromptUseCases$inboundSchema;
|
|
3522
|
+
/** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
|
|
3523
|
+
export const outboundSchema = CreatePromptUseCases$outboundSchema;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
/** @internal */
|
|
3527
|
+
export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
3528
|
+
typeof CreatePromptLanguage
|
|
3529
|
+
> = z.nativeEnum(CreatePromptLanguage);
|
|
3530
|
+
|
|
3531
|
+
/** @internal */
|
|
3532
|
+
export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
3533
|
+
typeof CreatePromptLanguage
|
|
3534
|
+
> = CreatePromptLanguage$inboundSchema;
|
|
3535
|
+
|
|
3536
|
+
/**
|
|
3537
|
+
* @internal
|
|
3538
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3539
|
+
*/
|
|
3540
|
+
export namespace CreatePromptLanguage$ {
|
|
3541
|
+
/** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
|
|
3542
|
+
export const inboundSchema = CreatePromptLanguage$inboundSchema;
|
|
3543
|
+
/** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
|
|
3544
|
+
export const outboundSchema = CreatePromptLanguage$outboundSchema;
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3284
3547
|
/** @internal */
|
|
3285
3548
|
export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
3286
3549
|
CreatePromptPromptsMetadata,
|
|
3287
3550
|
z.ZodTypeDef,
|
|
3288
3551
|
unknown
|
|
3289
3552
|
> = z.object({
|
|
3290
|
-
use_cases: z.array(
|
|
3291
|
-
language:
|
|
3553
|
+
use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
|
|
3554
|
+
language: CreatePromptLanguage$inboundSchema.optional(),
|
|
3292
3555
|
}).transform((v) => {
|
|
3293
3556
|
return remap$(v, {
|
|
3294
3557
|
"use_cases": "useCases",
|
|
@@ -3307,8 +3570,8 @@ export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
|
|
|
3307
3570
|
z.ZodTypeDef,
|
|
3308
3571
|
CreatePromptPromptsMetadata
|
|
3309
3572
|
> = z.object({
|
|
3310
|
-
useCases: z.array(
|
|
3311
|
-
language:
|
|
3573
|
+
useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
|
|
3574
|
+
language: CreatePromptLanguage$outboundSchema.optional(),
|
|
3312
3575
|
}).transform((v) => {
|
|
3313
3576
|
return remap$(v, {
|
|
3314
3577
|
useCases: "use_cases",
|
|
@@ -3348,27 +3611,6 @@ export function createPromptPromptsMetadataFromJSON(
|
|
|
3348
3611
|
);
|
|
3349
3612
|
}
|
|
3350
3613
|
|
|
3351
|
-
/** @internal */
|
|
3352
|
-
export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3353
|
-
typeof CreatePromptPromptsResponseType
|
|
3354
|
-
> = z.nativeEnum(CreatePromptPromptsResponseType);
|
|
3355
|
-
|
|
3356
|
-
/** @internal */
|
|
3357
|
-
export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3358
|
-
typeof CreatePromptPromptsResponseType
|
|
3359
|
-
> = CreatePromptPromptsResponseType$inboundSchema;
|
|
3360
|
-
|
|
3361
|
-
/**
|
|
3362
|
-
* @internal
|
|
3363
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3364
|
-
*/
|
|
3365
|
-
export namespace CreatePromptPromptsResponseType$ {
|
|
3366
|
-
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
3367
|
-
export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
|
|
3368
|
-
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
3369
|
-
export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
|
|
3370
|
-
}
|
|
3371
|
-
|
|
3372
3614
|
/** @internal */
|
|
3373
3615
|
export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
3374
3616
|
CreatePromptResponseBody,
|
|
@@ -3376,19 +3618,24 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
3376
3618
|
unknown
|
|
3377
3619
|
> = z.object({
|
|
3378
3620
|
_id: z.string(),
|
|
3379
|
-
|
|
3621
|
+
type: CreatePromptPromptsType$inboundSchema,
|
|
3622
|
+
owner: z.string(),
|
|
3380
3623
|
domain_id: z.string(),
|
|
3624
|
+
created: z.string(),
|
|
3625
|
+
updated: z.string(),
|
|
3626
|
+
created_by_id: z.string().optional(),
|
|
3627
|
+
updated_by_id: z.string().optional(),
|
|
3628
|
+
display_name: z.string(),
|
|
3381
3629
|
description: z.nullable(z.string()).optional(),
|
|
3382
|
-
prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema)
|
|
3383
|
-
.optional(),
|
|
3630
|
+
prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
|
|
3384
3631
|
metadata: z.lazy(() => CreatePromptPromptsMetadata$inboundSchema).optional(),
|
|
3385
|
-
key: z.string().optional(),
|
|
3386
|
-
type: CreatePromptPromptsResponseType$inboundSchema,
|
|
3387
3632
|
}).transform((v) => {
|
|
3388
3633
|
return remap$(v, {
|
|
3389
3634
|
"_id": "id",
|
|
3390
|
-
"display_name": "displayName",
|
|
3391
3635
|
"domain_id": "domainId",
|
|
3636
|
+
"created_by_id": "createdById",
|
|
3637
|
+
"updated_by_id": "updatedById",
|
|
3638
|
+
"display_name": "displayName",
|
|
3392
3639
|
"prompt_config": "promptConfig",
|
|
3393
3640
|
});
|
|
3394
3641
|
});
|
|
@@ -3396,13 +3643,17 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
3396
3643
|
/** @internal */
|
|
3397
3644
|
export type CreatePromptResponseBody$Outbound = {
|
|
3398
3645
|
_id: string;
|
|
3399
|
-
|
|
3646
|
+
type: string;
|
|
3647
|
+
owner: string;
|
|
3400
3648
|
domain_id: string;
|
|
3649
|
+
created: string;
|
|
3650
|
+
updated: string;
|
|
3651
|
+
created_by_id?: string | undefined;
|
|
3652
|
+
updated_by_id?: string | undefined;
|
|
3653
|
+
display_name: string;
|
|
3401
3654
|
description?: string | null | undefined;
|
|
3402
|
-
prompt_config
|
|
3655
|
+
prompt_config: CreatePromptPromptConfig$Outbound;
|
|
3403
3656
|
metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
|
|
3404
|
-
key?: string | undefined;
|
|
3405
|
-
type: string;
|
|
3406
3657
|
};
|
|
3407
3658
|
|
|
3408
3659
|
/** @internal */
|
|
@@ -3412,19 +3663,24 @@ export const CreatePromptResponseBody$outboundSchema: z.ZodType<
|
|
|
3412
3663
|
CreatePromptResponseBody
|
|
3413
3664
|
> = z.object({
|
|
3414
3665
|
id: z.string(),
|
|
3415
|
-
|
|
3666
|
+
type: CreatePromptPromptsType$outboundSchema,
|
|
3667
|
+
owner: z.string(),
|
|
3416
3668
|
domainId: z.string(),
|
|
3669
|
+
created: z.string(),
|
|
3670
|
+
updated: z.string(),
|
|
3671
|
+
createdById: z.string().optional(),
|
|
3672
|
+
updatedById: z.string().optional(),
|
|
3673
|
+
displayName: z.string(),
|
|
3417
3674
|
description: z.nullable(z.string()).optional(),
|
|
3418
|
-
promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema)
|
|
3419
|
-
.optional(),
|
|
3675
|
+
promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
|
|
3420
3676
|
metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema).optional(),
|
|
3421
|
-
key: z.string().optional(),
|
|
3422
|
-
type: CreatePromptPromptsResponseType$outboundSchema,
|
|
3423
3677
|
}).transform((v) => {
|
|
3424
3678
|
return remap$(v, {
|
|
3425
3679
|
id: "_id",
|
|
3426
|
-
displayName: "display_name",
|
|
3427
3680
|
domainId: "domain_id",
|
|
3681
|
+
createdById: "created_by_id",
|
|
3682
|
+
updatedById: "updated_by_id",
|
|
3683
|
+
displayName: "display_name",
|
|
3428
3684
|
promptConfig: "prompt_config",
|
|
3429
3685
|
});
|
|
3430
3686
|
});
|