@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.46
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 +2 -1
- package/bin/mcp-server.js +4770 -1625
- package/bin/mcp-server.js.map +57 -56
- package/examples/package-lock.json +1 -1
- package/funcs/promptsDelete.d.ts +2 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +7 -3
- package/funcs/promptsDelete.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/errors/deleteprompt.d.ts +29 -0
- package/models/errors/deleteprompt.d.ts.map +1 -0
- package/models/errors/deleteprompt.js +74 -0
- package/models/errors/deleteprompt.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/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +16 -16
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -53
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +2 -2
- package/models/operations/createprompt.d.ts +1746 -976
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2032 -1282
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentgetconfig.d.ts +88 -88
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +131 -130
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +5 -5
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +7 -6
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getallprompts.d.ts +1051 -42
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1069 -48
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1051 -42
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1071 -47
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1051 -42
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1070 -48
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listidentities.js +2 -2
- package/models/operations/listpromptversions.d.ts +1051 -42
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1070 -47
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrieveidentity.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateidentity.js +2 -2
- package/models/operations/updateprompt.d.ts +2112 -1413
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2200 -1525
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/funcs/promptsDelete.ts +12 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/errors/deleteprompt.ts +67 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +76 -96
- package/src/models/operations/createidentity.ts +2 -2
- package/src/models/operations/createprompt.ts +5179 -3019
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentgetconfig.ts +252 -337
- package/src/models/operations/deploymentinvoke.ts +9 -13
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +2 -2
- package/src/models/operations/getallprompts.ts +3543 -850
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +3463 -786
- package/src/models/operations/getpromptversion.ts +3579 -835
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listidentities.ts +2 -2
- package/src/models/operations/listpromptversions.ts +3644 -864
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrieveidentity.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateidentity.ts +2 -2
- package/src/models/operations/updateprompt.ts +5281 -3301
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import * as components from "../components/index.js";
|
|
4
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
6
|
export type ListPromptVersionsRequest = {
|
|
6
7
|
promptId: string;
|
|
@@ -74,25 +75,25 @@ export declare const ListPromptVersionsResponseFormat4: {
|
|
|
74
75
|
readonly Pcm: "pcm";
|
|
75
76
|
};
|
|
76
77
|
export type ListPromptVersionsResponseFormat4 = ClosedEnum<typeof ListPromptVersionsResponseFormat4>;
|
|
77
|
-
export declare const
|
|
78
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType: {
|
|
78
79
|
readonly Text: "text";
|
|
79
80
|
};
|
|
80
|
-
export type
|
|
81
|
+
export type ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
81
82
|
export type ListPromptVersionsResponseFormat3 = {
|
|
82
|
-
type:
|
|
83
|
+
type: ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
|
|
83
84
|
};
|
|
84
|
-
export declare const
|
|
85
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType: {
|
|
85
86
|
readonly JsonObject: "json_object";
|
|
86
87
|
};
|
|
87
|
-
export type
|
|
88
|
+
export type ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType = ClosedEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
88
89
|
export type ListPromptVersionsResponseFormat2 = {
|
|
89
|
-
type:
|
|
90
|
+
type: ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType;
|
|
90
91
|
};
|
|
91
|
-
export declare const
|
|
92
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200Type: {
|
|
92
93
|
readonly JsonSchema: "json_schema";
|
|
93
94
|
};
|
|
94
|
-
export type
|
|
95
|
-
export type
|
|
95
|
+
export type ListPromptVersionsResponseFormatPromptsResponse200Type = ClosedEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200Type>;
|
|
96
|
+
export type ListPromptVersionsResponseFormatPromptsResponseJsonSchema = {
|
|
96
97
|
name: string;
|
|
97
98
|
description?: string | undefined;
|
|
98
99
|
strict?: boolean | undefined;
|
|
@@ -101,9 +102,9 @@ export type ListPromptVersionsResponseFormatJsonSchema = {
|
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
104
|
export type ListPromptVersionsResponseFormat1 = {
|
|
104
|
-
type:
|
|
105
|
+
type: ListPromptVersionsResponseFormatPromptsResponse200Type;
|
|
105
106
|
displayName?: string | undefined;
|
|
106
|
-
jsonSchema:
|
|
107
|
+
jsonSchema: ListPromptVersionsResponseFormatPromptsResponseJsonSchema;
|
|
107
108
|
};
|
|
108
109
|
/**
|
|
109
110
|
* An object specifying the format that the model must output.
|
|
@@ -116,7 +117,7 @@ export type ListPromptVersionsResponseFormat1 = {
|
|
|
116
117
|
*
|
|
117
118
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
118
119
|
*/
|
|
119
|
-
export type
|
|
120
|
+
export type ListPromptVersionsPromptsResponseFormat = ListPromptVersionsResponseFormat1 | ListPromptVersionsResponseFormat2 | ListPromptVersionsResponseFormat3 | ListPromptVersionsResponseFormat4 | ListPromptVersionsResponseFormat5 | ListPromptVersionsResponseFormat6;
|
|
120
121
|
/**
|
|
121
122
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
122
123
|
*/
|
|
@@ -142,7 +143,7 @@ export type ListPromptVersionsEncodingFormat = ClosedEnum<typeof ListPromptVersi
|
|
|
142
143
|
/**
|
|
143
144
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
144
145
|
*/
|
|
145
|
-
export declare const
|
|
146
|
+
export declare const ListPromptVersionsPromptsReasoningEffort: {
|
|
146
147
|
readonly None: "none";
|
|
147
148
|
readonly Disable: "disable";
|
|
148
149
|
readonly Minimal: "minimal";
|
|
@@ -153,7 +154,7 @@ export declare const ListPromptVersionsReasoningEffort: {
|
|
|
153
154
|
/**
|
|
154
155
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
155
156
|
*/
|
|
156
|
-
export type
|
|
157
|
+
export type ListPromptVersionsPromptsReasoningEffort = ClosedEnum<typeof ListPromptVersionsPromptsReasoningEffort>;
|
|
157
158
|
/**
|
|
158
159
|
* Controls the verbosity of the model output.
|
|
159
160
|
*/
|
|
@@ -252,7 +253,7 @@ export type ListPromptVersionsModelParameters = {
|
|
|
252
253
|
/**
|
|
253
254
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
254
255
|
*/
|
|
255
|
-
reasoningEffort?:
|
|
256
|
+
reasoningEffort?: ListPromptVersionsPromptsReasoningEffort | undefined;
|
|
256
257
|
/**
|
|
257
258
|
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
258
259
|
*/
|
|
@@ -400,11 +401,13 @@ export type ListPromptVersionsMessages = {
|
|
|
400
401
|
toolCallId?: string | null | undefined;
|
|
401
402
|
};
|
|
402
403
|
/**
|
|
403
|
-
* A list of messages compatible with the openAI schema
|
|
404
|
+
* [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
|
|
405
|
+
*
|
|
406
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
404
407
|
*/
|
|
405
408
|
export type ListPromptVersionsPromptConfig = {
|
|
406
409
|
stream?: boolean | undefined;
|
|
407
|
-
model?: string | undefined;
|
|
410
|
+
model?: string | null | undefined;
|
|
408
411
|
/**
|
|
409
412
|
* The id of the resource
|
|
410
413
|
*/
|
|
@@ -417,7 +420,7 @@ export type ListPromptVersionsPromptConfig = {
|
|
|
417
420
|
* Model Parameters: Not all parameters apply to every model
|
|
418
421
|
*/
|
|
419
422
|
modelParameters?: ListPromptVersionsModelParameters | undefined;
|
|
420
|
-
provider?: ListPromptVersionsProvider | undefined;
|
|
423
|
+
provider?: ListPromptVersionsProvider | null | undefined;
|
|
421
424
|
/**
|
|
422
425
|
* The ID of the integration to use
|
|
423
426
|
*/
|
|
@@ -425,6 +428,586 @@ export type ListPromptVersionsPromptConfig = {
|
|
|
425
428
|
version?: string | undefined;
|
|
426
429
|
messages: Array<ListPromptVersionsMessages>;
|
|
427
430
|
};
|
|
431
|
+
/**
|
|
432
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
433
|
+
*/
|
|
434
|
+
export declare const ListPromptVersionsVoice: {
|
|
435
|
+
readonly Alloy: "alloy";
|
|
436
|
+
readonly Echo: "echo";
|
|
437
|
+
readonly Fable: "fable";
|
|
438
|
+
readonly Onyx: "onyx";
|
|
439
|
+
readonly Nova: "nova";
|
|
440
|
+
readonly Shimmer: "shimmer";
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
444
|
+
*/
|
|
445
|
+
export type ListPromptVersionsVoice = ClosedEnum<typeof ListPromptVersionsVoice>;
|
|
446
|
+
/**
|
|
447
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
448
|
+
*/
|
|
449
|
+
export declare const ListPromptVersionsPromptsFormat: {
|
|
450
|
+
readonly Wav: "wav";
|
|
451
|
+
readonly Mp3: "mp3";
|
|
452
|
+
readonly Flac: "flac";
|
|
453
|
+
readonly Opus: "opus";
|
|
454
|
+
readonly Pcm16: "pcm16";
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
458
|
+
*/
|
|
459
|
+
export type ListPromptVersionsPromptsFormat = ClosedEnum<typeof ListPromptVersionsPromptsFormat>;
|
|
460
|
+
/**
|
|
461
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
462
|
+
*/
|
|
463
|
+
export type ListPromptVersionsAudio = {
|
|
464
|
+
/**
|
|
465
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
466
|
+
*/
|
|
467
|
+
voice: ListPromptVersionsVoice;
|
|
468
|
+
/**
|
|
469
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
470
|
+
*/
|
|
471
|
+
format: ListPromptVersionsPromptsFormat;
|
|
472
|
+
};
|
|
473
|
+
export type ListPromptVersionsResponseFormatJsonSchema = {
|
|
474
|
+
/**
|
|
475
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
476
|
+
*/
|
|
477
|
+
description?: string | undefined;
|
|
478
|
+
/**
|
|
479
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
480
|
+
*/
|
|
481
|
+
name: string;
|
|
482
|
+
/**
|
|
483
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
484
|
+
*/
|
|
485
|
+
schema?: any | undefined;
|
|
486
|
+
/**
|
|
487
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
488
|
+
*/
|
|
489
|
+
strict?: boolean | undefined;
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* @remarks
|
|
493
|
+
*
|
|
494
|
+
* JSON Schema response format. Used to generate structured JSON responses
|
|
495
|
+
*/
|
|
496
|
+
export type ListPromptVersionsResponseFormatPromptsJSONSchema = {
|
|
497
|
+
type: "json_schema";
|
|
498
|
+
jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* @remarks
|
|
502
|
+
*
|
|
503
|
+
* JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
|
|
504
|
+
*/
|
|
505
|
+
export type ListPromptVersionsResponseFormatJSONObject = {
|
|
506
|
+
type: "json_object";
|
|
507
|
+
};
|
|
508
|
+
/**
|
|
509
|
+
* @remarks
|
|
510
|
+
*
|
|
511
|
+
* Default response format. Used to generate text responses
|
|
512
|
+
*/
|
|
513
|
+
export type ListPromptVersionsResponseFormatText = {
|
|
514
|
+
type: "text";
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* An object specifying the format that the model must output
|
|
518
|
+
*/
|
|
519
|
+
export type ListPromptVersionsResponseFormat = ListPromptVersionsResponseFormatText | ListPromptVersionsResponseFormatJSONObject | ListPromptVersionsResponseFormatPromptsJSONSchema;
|
|
520
|
+
/**
|
|
521
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
522
|
+
*
|
|
523
|
+
* @remarks
|
|
524
|
+
*
|
|
525
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
526
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
527
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
528
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
529
|
+
*
|
|
530
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
531
|
+
*/
|
|
532
|
+
export declare const ListPromptVersionsReasoningEffort: {
|
|
533
|
+
readonly None: "none";
|
|
534
|
+
readonly Minimal: "minimal";
|
|
535
|
+
readonly Low: "low";
|
|
536
|
+
readonly Medium: "medium";
|
|
537
|
+
readonly High: "high";
|
|
538
|
+
readonly Xhigh: "xhigh";
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
542
|
+
*
|
|
543
|
+
* @remarks
|
|
544
|
+
*
|
|
545
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
546
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
547
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
548
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
549
|
+
*
|
|
550
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
551
|
+
*/
|
|
552
|
+
export type ListPromptVersionsReasoningEffort = ClosedEnum<typeof ListPromptVersionsReasoningEffort>;
|
|
553
|
+
/**
|
|
554
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
555
|
+
*/
|
|
556
|
+
export type ListPromptVersionsStop = string | Array<string>;
|
|
557
|
+
/**
|
|
558
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
559
|
+
*/
|
|
560
|
+
export type ListPromptVersionsStreamOptions = {
|
|
561
|
+
/**
|
|
562
|
+
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
563
|
+
*/
|
|
564
|
+
includeUsage?: boolean | undefined;
|
|
565
|
+
};
|
|
566
|
+
export type ListPromptVersionsThinking = components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema;
|
|
567
|
+
/**
|
|
568
|
+
* The type of the tool. Currently, only function is supported.
|
|
569
|
+
*/
|
|
570
|
+
export declare const ListPromptVersionsToolChoiceType: {
|
|
571
|
+
readonly Function: "function";
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* The type of the tool. Currently, only function is supported.
|
|
575
|
+
*/
|
|
576
|
+
export type ListPromptVersionsToolChoiceType = ClosedEnum<typeof ListPromptVersionsToolChoiceType>;
|
|
577
|
+
export type ListPromptVersionsToolChoiceFunction = {
|
|
578
|
+
/**
|
|
579
|
+
* The name of the function to call.
|
|
580
|
+
*/
|
|
581
|
+
name: string;
|
|
582
|
+
};
|
|
583
|
+
export type ListPromptVersionsToolChoice2 = {
|
|
584
|
+
/**
|
|
585
|
+
* The type of the tool. Currently, only function is supported.
|
|
586
|
+
*/
|
|
587
|
+
type?: ListPromptVersionsToolChoiceType | undefined;
|
|
588
|
+
function: ListPromptVersionsToolChoiceFunction;
|
|
589
|
+
};
|
|
590
|
+
export declare const ListPromptVersionsToolChoice1: {
|
|
591
|
+
readonly None: "none";
|
|
592
|
+
readonly Auto: "auto";
|
|
593
|
+
readonly Required: "required";
|
|
594
|
+
};
|
|
595
|
+
export type ListPromptVersionsToolChoice1 = ClosedEnum<typeof ListPromptVersionsToolChoice1>;
|
|
596
|
+
/**
|
|
597
|
+
* Controls which (if any) tool is called by the model.
|
|
598
|
+
*/
|
|
599
|
+
export type ListPromptVersionsToolChoice = ListPromptVersionsToolChoice2 | ListPromptVersionsToolChoice1;
|
|
600
|
+
export declare const ListPromptVersionsModalities: {
|
|
601
|
+
readonly Text: "text";
|
|
602
|
+
readonly Audio: "audio";
|
|
603
|
+
};
|
|
604
|
+
export type ListPromptVersionsModalities = ClosedEnum<typeof ListPromptVersionsModalities>;
|
|
605
|
+
/**
|
|
606
|
+
* The key of the guardrail.
|
|
607
|
+
*/
|
|
608
|
+
export declare const ListPromptVersionsId1: {
|
|
609
|
+
readonly OrqPiiDetection: "orq_pii_detection";
|
|
610
|
+
readonly OrqSexualModeration: "orq_sexual_moderation";
|
|
611
|
+
readonly OrqHarmfulModeration: "orq_harmful_moderation";
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* The key of the guardrail.
|
|
615
|
+
*/
|
|
616
|
+
export type ListPromptVersionsId1 = ClosedEnum<typeof ListPromptVersionsId1>;
|
|
617
|
+
export type ListPromptVersionsId = ListPromptVersionsId1 | string;
|
|
618
|
+
/**
|
|
619
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
620
|
+
*/
|
|
621
|
+
export declare const ListPromptVersionsExecuteOn: {
|
|
622
|
+
readonly Input: "input";
|
|
623
|
+
readonly Output: "output";
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
627
|
+
*/
|
|
628
|
+
export type ListPromptVersionsExecuteOn = ClosedEnum<typeof ListPromptVersionsExecuteOn>;
|
|
629
|
+
export type ListPromptVersionsGuardrails = {
|
|
630
|
+
id: ListPromptVersionsId1 | string;
|
|
631
|
+
/**
|
|
632
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
633
|
+
*/
|
|
634
|
+
executeOn: ListPromptVersionsExecuteOn;
|
|
635
|
+
};
|
|
636
|
+
export type ListPromptVersionsContentPromptsResponse2002 = components.TextContentPartSchema;
|
|
637
|
+
/**
|
|
638
|
+
* The contents of the tool message.
|
|
639
|
+
*/
|
|
640
|
+
export type ListPromptVersionsMessagesPromptsResponse200Content = string | Array<components.TextContentPartSchema>;
|
|
641
|
+
/**
|
|
642
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
643
|
+
*/
|
|
644
|
+
export declare const ListPromptVersionsMessagesPromptsType: {
|
|
645
|
+
readonly Ephemeral: "ephemeral";
|
|
646
|
+
};
|
|
647
|
+
/**
|
|
648
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
649
|
+
*/
|
|
650
|
+
export type ListPromptVersionsMessagesPromptsType = ClosedEnum<typeof ListPromptVersionsMessagesPromptsType>;
|
|
651
|
+
/**
|
|
652
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
653
|
+
*
|
|
654
|
+
* @remarks
|
|
655
|
+
*
|
|
656
|
+
* - `5m`: 5 minutes
|
|
657
|
+
* - `1h`: 1 hour
|
|
658
|
+
*
|
|
659
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
660
|
+
*/
|
|
661
|
+
export declare const ListPromptVersionsMessagesTtl: {
|
|
662
|
+
readonly Fivem: "5m";
|
|
663
|
+
readonly Oneh: "1h";
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
667
|
+
*
|
|
668
|
+
* @remarks
|
|
669
|
+
*
|
|
670
|
+
* - `5m`: 5 minutes
|
|
671
|
+
* - `1h`: 1 hour
|
|
672
|
+
*
|
|
673
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
674
|
+
*/
|
|
675
|
+
export type ListPromptVersionsMessagesTtl = ClosedEnum<typeof ListPromptVersionsMessagesTtl>;
|
|
676
|
+
export type ListPromptVersionsMessagesCacheControl = {
|
|
677
|
+
/**
|
|
678
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
679
|
+
*/
|
|
680
|
+
type: ListPromptVersionsMessagesPromptsType;
|
|
681
|
+
/**
|
|
682
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
683
|
+
*
|
|
684
|
+
* @remarks
|
|
685
|
+
*
|
|
686
|
+
* - `5m`: 5 minutes
|
|
687
|
+
* - `1h`: 1 hour
|
|
688
|
+
*
|
|
689
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
690
|
+
*/
|
|
691
|
+
ttl?: ListPromptVersionsMessagesTtl | undefined;
|
|
692
|
+
};
|
|
693
|
+
export type ListPromptVersionsMessagesToolMessage = {
|
|
694
|
+
/**
|
|
695
|
+
* The role of the messages author, in this case tool.
|
|
696
|
+
*/
|
|
697
|
+
role: "tool";
|
|
698
|
+
/**
|
|
699
|
+
* The contents of the tool message.
|
|
700
|
+
*/
|
|
701
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
702
|
+
/**
|
|
703
|
+
* Tool call that this message is responding to.
|
|
704
|
+
*/
|
|
705
|
+
toolCallId: string | null;
|
|
706
|
+
cacheControl?: ListPromptVersionsMessagesCacheControl | undefined;
|
|
707
|
+
};
|
|
708
|
+
export type ListPromptVersionsContentPromptsResponse2 = (components.TextContentPartSchema & {
|
|
709
|
+
type: "text";
|
|
710
|
+
}) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema;
|
|
711
|
+
/**
|
|
712
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
713
|
+
*/
|
|
714
|
+
export type ListPromptVersionsMessagesPromptsResponseContent = string | Array<(components.TextContentPartSchema & {
|
|
715
|
+
type: "text";
|
|
716
|
+
}) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema>;
|
|
717
|
+
/**
|
|
718
|
+
* Data about a previous audio response from the model.
|
|
719
|
+
*/
|
|
720
|
+
export type ListPromptVersionsMessagesAudio = {
|
|
721
|
+
/**
|
|
722
|
+
* Unique identifier for a previous audio response from the model.
|
|
723
|
+
*/
|
|
724
|
+
id: string;
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
728
|
+
*/
|
|
729
|
+
export declare const ListPromptVersionsMessagesType: {
|
|
730
|
+
readonly Function: "function";
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
734
|
+
*/
|
|
735
|
+
export type ListPromptVersionsMessagesType = ClosedEnum<typeof ListPromptVersionsMessagesType>;
|
|
736
|
+
export type ListPromptVersionsMessagesFunction = {
|
|
737
|
+
/**
|
|
738
|
+
* The name of the function to call.
|
|
739
|
+
*/
|
|
740
|
+
name?: string | undefined;
|
|
741
|
+
/**
|
|
742
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
743
|
+
*/
|
|
744
|
+
arguments?: string | undefined;
|
|
745
|
+
};
|
|
746
|
+
export type ListPromptVersionsMessagesToolCalls = {
|
|
747
|
+
/**
|
|
748
|
+
* The ID of the tool call.
|
|
749
|
+
*/
|
|
750
|
+
id: string;
|
|
751
|
+
/**
|
|
752
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
753
|
+
*/
|
|
754
|
+
type: ListPromptVersionsMessagesType;
|
|
755
|
+
function: ListPromptVersionsMessagesFunction;
|
|
756
|
+
/**
|
|
757
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
758
|
+
*/
|
|
759
|
+
thoughtSignature?: string | undefined;
|
|
760
|
+
};
|
|
761
|
+
export type ListPromptVersionsMessagesAssistantMessage = {
|
|
762
|
+
/**
|
|
763
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
764
|
+
*/
|
|
765
|
+
content?: string | Array<(components.TextContentPartSchema & {
|
|
766
|
+
type: "text";
|
|
767
|
+
}) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema> | null | undefined;
|
|
768
|
+
/**
|
|
769
|
+
* The refusal message by the assistant.
|
|
770
|
+
*/
|
|
771
|
+
refusal?: string | null | undefined;
|
|
772
|
+
/**
|
|
773
|
+
* The role of the messages author, in this case `assistant`.
|
|
774
|
+
*/
|
|
775
|
+
role: "assistant";
|
|
776
|
+
/**
|
|
777
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
778
|
+
*/
|
|
779
|
+
name?: string | undefined;
|
|
780
|
+
/**
|
|
781
|
+
* Data about a previous audio response from the model.
|
|
782
|
+
*/
|
|
783
|
+
audio?: ListPromptVersionsMessagesAudio | null | undefined;
|
|
784
|
+
/**
|
|
785
|
+
* The tool calls generated by the model, such as function calls.
|
|
786
|
+
*/
|
|
787
|
+
toolCalls?: Array<ListPromptVersionsMessagesToolCalls> | undefined;
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
791
|
+
*/
|
|
792
|
+
export declare const ListPromptVersions2PromptsResponse200ApplicationJSONType: {
|
|
793
|
+
readonly Ephemeral: "ephemeral";
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
797
|
+
*/
|
|
798
|
+
export type ListPromptVersions2PromptsResponse200ApplicationJSONType = ClosedEnum<typeof ListPromptVersions2PromptsResponse200ApplicationJSONType>;
|
|
799
|
+
/**
|
|
800
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
801
|
+
*
|
|
802
|
+
* @remarks
|
|
803
|
+
*
|
|
804
|
+
* - `5m`: 5 minutes
|
|
805
|
+
* - `1h`: 1 hour
|
|
806
|
+
*
|
|
807
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
808
|
+
*/
|
|
809
|
+
export declare const ListPromptVersions2Ttl: {
|
|
810
|
+
readonly Fivem: "5m";
|
|
811
|
+
readonly Oneh: "1h";
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
815
|
+
*
|
|
816
|
+
* @remarks
|
|
817
|
+
*
|
|
818
|
+
* - `5m`: 5 minutes
|
|
819
|
+
* - `1h`: 1 hour
|
|
820
|
+
*
|
|
821
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
822
|
+
*/
|
|
823
|
+
export type ListPromptVersions2Ttl = ClosedEnum<typeof ListPromptVersions2Ttl>;
|
|
824
|
+
export type ListPromptVersions2CacheControl = {
|
|
825
|
+
/**
|
|
826
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
827
|
+
*/
|
|
828
|
+
type: ListPromptVersions2PromptsResponse200ApplicationJSONType;
|
|
829
|
+
/**
|
|
830
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
831
|
+
*
|
|
832
|
+
* @remarks
|
|
833
|
+
*
|
|
834
|
+
* - `5m`: 5 minutes
|
|
835
|
+
* - `1h`: 1 hour
|
|
836
|
+
*
|
|
837
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
838
|
+
*/
|
|
839
|
+
ttl?: ListPromptVersions2Ttl | undefined;
|
|
840
|
+
};
|
|
841
|
+
export type ListPromptVersions24 = {
|
|
842
|
+
/**
|
|
843
|
+
* The type of the content part. Always `file`.
|
|
844
|
+
*/
|
|
845
|
+
type: "file";
|
|
846
|
+
cacheControl?: ListPromptVersions2CacheControl | undefined;
|
|
847
|
+
/**
|
|
848
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
849
|
+
*/
|
|
850
|
+
file: components.FileContentPartSchema;
|
|
851
|
+
};
|
|
852
|
+
export type ListPromptVersionsContentPrompts2 = (components.TextContentPartSchema & {
|
|
853
|
+
type: "text";
|
|
854
|
+
}) | components.ImageContentPartSchema | components.AudioContentPartSchema | ListPromptVersions24;
|
|
855
|
+
/**
|
|
856
|
+
* The contents of the user message.
|
|
857
|
+
*/
|
|
858
|
+
export type ListPromptVersionsMessagesPromptsContent = string | Array<(components.TextContentPartSchema & {
|
|
859
|
+
type: "text";
|
|
860
|
+
}) | components.ImageContentPartSchema | components.AudioContentPartSchema | ListPromptVersions24>;
|
|
861
|
+
export type ListPromptVersionsMessagesUserMessage = {
|
|
862
|
+
/**
|
|
863
|
+
* The role of the messages author, in this case `user`.
|
|
864
|
+
*/
|
|
865
|
+
role: "user";
|
|
866
|
+
/**
|
|
867
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
868
|
+
*/
|
|
869
|
+
name?: string | undefined;
|
|
870
|
+
/**
|
|
871
|
+
* The contents of the user message.
|
|
872
|
+
*/
|
|
873
|
+
content: string | Array<(components.TextContentPartSchema & {
|
|
874
|
+
type: "text";
|
|
875
|
+
}) | components.ImageContentPartSchema | components.AudioContentPartSchema | ListPromptVersions24>;
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* The contents of the system message.
|
|
879
|
+
*/
|
|
880
|
+
export type ListPromptVersionsMessagesContent = string | Array<components.TextContentPartSchema>;
|
|
881
|
+
/**
|
|
882
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
883
|
+
*/
|
|
884
|
+
export type ListPromptVersionsMessagesSystemMessage = {
|
|
885
|
+
/**
|
|
886
|
+
* The role of the messages author, in this case `system`.
|
|
887
|
+
*/
|
|
888
|
+
role: "system";
|
|
889
|
+
/**
|
|
890
|
+
* The contents of the system message.
|
|
891
|
+
*/
|
|
892
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
893
|
+
/**
|
|
894
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
895
|
+
*/
|
|
896
|
+
name?: string | undefined;
|
|
897
|
+
};
|
|
898
|
+
export type ListPromptVersionsPromptsMessages = ListPromptVersionsMessagesSystemMessage | ListPromptVersionsMessagesUserMessage | ListPromptVersionsMessagesAssistantMessage | ListPromptVersionsMessagesToolMessage;
|
|
899
|
+
/**
|
|
900
|
+
* Prompt configuration with model and messages. Use this instead of prompt_config.
|
|
901
|
+
*/
|
|
902
|
+
export type ListPromptVersionsPromptField = {
|
|
903
|
+
/**
|
|
904
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
905
|
+
*/
|
|
906
|
+
audio?: ListPromptVersionsAudio | null | undefined;
|
|
907
|
+
/**
|
|
908
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
909
|
+
*/
|
|
910
|
+
frequencyPenalty?: number | null | undefined;
|
|
911
|
+
/**
|
|
912
|
+
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
913
|
+
*
|
|
914
|
+
* @remarks
|
|
915
|
+
*
|
|
916
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
917
|
+
*/
|
|
918
|
+
maxTokens?: number | null | undefined;
|
|
919
|
+
/**
|
|
920
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
921
|
+
*/
|
|
922
|
+
maxCompletionTokens?: number | null | undefined;
|
|
923
|
+
/**
|
|
924
|
+
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
925
|
+
*/
|
|
926
|
+
logprobs?: boolean | null | undefined;
|
|
927
|
+
/**
|
|
928
|
+
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
929
|
+
*/
|
|
930
|
+
topLogprobs?: number | null | undefined;
|
|
931
|
+
/**
|
|
932
|
+
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
933
|
+
*/
|
|
934
|
+
n?: number | null | undefined;
|
|
935
|
+
/**
|
|
936
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
937
|
+
*/
|
|
938
|
+
presencePenalty?: number | null | undefined;
|
|
939
|
+
/**
|
|
940
|
+
* An object specifying the format that the model must output
|
|
941
|
+
*/
|
|
942
|
+
responseFormat?: ListPromptVersionsResponseFormatText | ListPromptVersionsResponseFormatJSONObject | ListPromptVersionsResponseFormatPromptsJSONSchema | undefined;
|
|
943
|
+
/**
|
|
944
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
945
|
+
*
|
|
946
|
+
* @remarks
|
|
947
|
+
*
|
|
948
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
949
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
950
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
951
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
952
|
+
*
|
|
953
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
954
|
+
*/
|
|
955
|
+
reasoningEffort?: ListPromptVersionsReasoningEffort | undefined;
|
|
956
|
+
/**
|
|
957
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
958
|
+
*/
|
|
959
|
+
verbosity?: string | undefined;
|
|
960
|
+
/**
|
|
961
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
962
|
+
*/
|
|
963
|
+
seed?: number | null | undefined;
|
|
964
|
+
/**
|
|
965
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
966
|
+
*/
|
|
967
|
+
stop?: string | Array<string> | null | undefined;
|
|
968
|
+
/**
|
|
969
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
970
|
+
*/
|
|
971
|
+
streamOptions?: ListPromptVersionsStreamOptions | null | undefined;
|
|
972
|
+
thinking?: components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema | undefined;
|
|
973
|
+
/**
|
|
974
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
975
|
+
*/
|
|
976
|
+
temperature?: number | null | undefined;
|
|
977
|
+
/**
|
|
978
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
979
|
+
*/
|
|
980
|
+
topP?: number | null | undefined;
|
|
981
|
+
/**
|
|
982
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
983
|
+
*/
|
|
984
|
+
topK?: number | null | undefined;
|
|
985
|
+
/**
|
|
986
|
+
* Controls which (if any) tool is called by the model.
|
|
987
|
+
*/
|
|
988
|
+
toolChoice?: ListPromptVersionsToolChoice2 | ListPromptVersionsToolChoice1 | undefined;
|
|
989
|
+
/**
|
|
990
|
+
* Whether to enable parallel function calling during tool use.
|
|
991
|
+
*/
|
|
992
|
+
parallelToolCalls?: boolean | undefined;
|
|
993
|
+
/**
|
|
994
|
+
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
995
|
+
*/
|
|
996
|
+
modalities?: Array<ListPromptVersionsModalities> | null | undefined;
|
|
997
|
+
/**
|
|
998
|
+
* A list of guardrails to apply to the request.
|
|
999
|
+
*/
|
|
1000
|
+
guardrails?: Array<ListPromptVersionsGuardrails> | undefined;
|
|
1001
|
+
/**
|
|
1002
|
+
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
1003
|
+
*/
|
|
1004
|
+
messages?: Array<ListPromptVersionsMessagesSystemMessage | ListPromptVersionsMessagesUserMessage | ListPromptVersionsMessagesAssistantMessage | ListPromptVersionsMessagesToolMessage> | undefined;
|
|
1005
|
+
/**
|
|
1006
|
+
* Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-3-5-sonnet-20241022`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
|
|
1007
|
+
*/
|
|
1008
|
+
model?: string | null | undefined;
|
|
1009
|
+
version?: string | undefined;
|
|
1010
|
+
};
|
|
428
1011
|
export declare const ListPromptVersionsUseCases: {
|
|
429
1012
|
readonly AgentsSimulations: "Agents simulations";
|
|
430
1013
|
readonly Agents: "Agents";
|
|
@@ -483,9 +1066,15 @@ export type ListPromptVersionsData = {
|
|
|
483
1066
|
*/
|
|
484
1067
|
description?: string | null | undefined;
|
|
485
1068
|
/**
|
|
486
|
-
* A list of messages compatible with the openAI schema
|
|
1069
|
+
* [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
|
|
1070
|
+
*
|
|
1071
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
1072
|
+
*/
|
|
1073
|
+
promptConfig?: ListPromptVersionsPromptConfig | undefined;
|
|
1074
|
+
/**
|
|
1075
|
+
* Prompt configuration with model and messages. Use this instead of prompt_config.
|
|
487
1076
|
*/
|
|
488
|
-
|
|
1077
|
+
prompt: ListPromptVersionsPromptField;
|
|
489
1078
|
metadata?: ListPromptVersionsMetadata | undefined;
|
|
490
1079
|
timestamp: string;
|
|
491
1080
|
};
|
|
@@ -535,9 +1124,9 @@ export declare const ListPromptVersionsResponseFormat4$inboundSchema: z.ZodNativ
|
|
|
535
1124
|
/** @internal */
|
|
536
1125
|
export declare const ListPromptVersionsResponseFormat4$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormat4>;
|
|
537
1126
|
/** @internal */
|
|
538
|
-
export declare const
|
|
1127
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
539
1128
|
/** @internal */
|
|
540
|
-
export declare const
|
|
1129
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
541
1130
|
/** @internal */
|
|
542
1131
|
export declare const ListPromptVersionsResponseFormat3$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat3, z.ZodTypeDef, unknown>;
|
|
543
1132
|
/** @internal */
|
|
@@ -549,9 +1138,9 @@ export declare const ListPromptVersionsResponseFormat3$outboundSchema: z.ZodType
|
|
|
549
1138
|
export declare function listPromptVersionsResponseFormat3ToJSON(listPromptVersionsResponseFormat3: ListPromptVersionsResponseFormat3): string;
|
|
550
1139
|
export declare function listPromptVersionsResponseFormat3FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat3, SDKValidationError>;
|
|
551
1140
|
/** @internal */
|
|
552
|
-
export declare const
|
|
1141
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
553
1142
|
/** @internal */
|
|
554
|
-
export declare const
|
|
1143
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
555
1144
|
/** @internal */
|
|
556
1145
|
export declare const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat2, z.ZodTypeDef, unknown>;
|
|
557
1146
|
/** @internal */
|
|
@@ -563,13 +1152,13 @@ export declare const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType
|
|
|
563
1152
|
export declare function listPromptVersionsResponseFormat2ToJSON(listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2): string;
|
|
564
1153
|
export declare function listPromptVersionsResponseFormat2FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError>;
|
|
565
1154
|
/** @internal */
|
|
566
|
-
export declare const
|
|
1155
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200Type>;
|
|
567
1156
|
/** @internal */
|
|
568
|
-
export declare const
|
|
1157
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponse200Type>;
|
|
569
1158
|
/** @internal */
|
|
570
|
-
export declare const
|
|
1159
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema: z.ZodType<ListPromptVersionsResponseFormatPromptsResponseJsonSchema, z.ZodTypeDef, unknown>;
|
|
571
1160
|
/** @internal */
|
|
572
|
-
export type
|
|
1161
|
+
export type ListPromptVersionsResponseFormatPromptsResponseJsonSchema$Outbound = {
|
|
573
1162
|
name: string;
|
|
574
1163
|
description?: string | undefined;
|
|
575
1164
|
strict?: boolean | undefined;
|
|
@@ -578,29 +1167,29 @@ export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
|
|
|
578
1167
|
};
|
|
579
1168
|
};
|
|
580
1169
|
/** @internal */
|
|
581
|
-
export declare const
|
|
582
|
-
export declare function
|
|
583
|
-
export declare function
|
|
1170
|
+
export declare const ListPromptVersionsResponseFormatPromptsResponseJsonSchema$outboundSchema: z.ZodType<ListPromptVersionsResponseFormatPromptsResponseJsonSchema$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatPromptsResponseJsonSchema>;
|
|
1171
|
+
export declare function listPromptVersionsResponseFormatPromptsResponseJsonSchemaToJSON(listPromptVersionsResponseFormatPromptsResponseJsonSchema: ListPromptVersionsResponseFormatPromptsResponseJsonSchema): string;
|
|
1172
|
+
export declare function listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormatPromptsResponseJsonSchema, SDKValidationError>;
|
|
584
1173
|
/** @internal */
|
|
585
1174
|
export declare const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat1, z.ZodTypeDef, unknown>;
|
|
586
1175
|
/** @internal */
|
|
587
1176
|
export type ListPromptVersionsResponseFormat1$Outbound = {
|
|
588
1177
|
type: string;
|
|
589
1178
|
display_name?: string | undefined;
|
|
590
|
-
json_schema:
|
|
1179
|
+
json_schema: ListPromptVersionsResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
591
1180
|
};
|
|
592
1181
|
/** @internal */
|
|
593
1182
|
export declare const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<ListPromptVersionsResponseFormat1$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat1>;
|
|
594
1183
|
export declare function listPromptVersionsResponseFormat1ToJSON(listPromptVersionsResponseFormat1: ListPromptVersionsResponseFormat1): string;
|
|
595
1184
|
export declare function listPromptVersionsResponseFormat1FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat1, SDKValidationError>;
|
|
596
1185
|
/** @internal */
|
|
597
|
-
export declare const
|
|
1186
|
+
export declare const ListPromptVersionsPromptsResponseFormat$inboundSchema: z.ZodType<ListPromptVersionsPromptsResponseFormat, z.ZodTypeDef, unknown>;
|
|
598
1187
|
/** @internal */
|
|
599
|
-
export type
|
|
1188
|
+
export type ListPromptVersionsPromptsResponseFormat$Outbound = ListPromptVersionsResponseFormat1$Outbound | ListPromptVersionsResponseFormat2$Outbound | ListPromptVersionsResponseFormat3$Outbound | string | string | string;
|
|
600
1189
|
/** @internal */
|
|
601
|
-
export declare const
|
|
602
|
-
export declare function
|
|
603
|
-
export declare function
|
|
1190
|
+
export declare const ListPromptVersionsPromptsResponseFormat$outboundSchema: z.ZodType<ListPromptVersionsPromptsResponseFormat$Outbound, z.ZodTypeDef, ListPromptVersionsPromptsResponseFormat>;
|
|
1191
|
+
export declare function listPromptVersionsPromptsResponseFormatToJSON(listPromptVersionsPromptsResponseFormat: ListPromptVersionsPromptsResponseFormat): string;
|
|
1192
|
+
export declare function listPromptVersionsPromptsResponseFormatFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsPromptsResponseFormat, SDKValidationError>;
|
|
604
1193
|
/** @internal */
|
|
605
1194
|
export declare const ListPromptVersionsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPhotoRealVersion>;
|
|
606
1195
|
/** @internal */
|
|
@@ -610,9 +1199,9 @@ export declare const ListPromptVersionsEncodingFormat$inboundSchema: z.ZodNative
|
|
|
610
1199
|
/** @internal */
|
|
611
1200
|
export declare const ListPromptVersionsEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsEncodingFormat>;
|
|
612
1201
|
/** @internal */
|
|
613
|
-
export declare const
|
|
1202
|
+
export declare const ListPromptVersionsPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPromptsReasoningEffort>;
|
|
614
1203
|
/** @internal */
|
|
615
|
-
export declare const
|
|
1204
|
+
export declare const ListPromptVersionsPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPromptsReasoningEffort>;
|
|
616
1205
|
/** @internal */
|
|
617
1206
|
export declare const ListPromptVersionsVerbosity$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsVerbosity>;
|
|
618
1207
|
/** @internal */
|
|
@@ -777,11 +1366,11 @@ export declare const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<Lis
|
|
|
777
1366
|
/** @internal */
|
|
778
1367
|
export type ListPromptVersionsPromptConfig$Outbound = {
|
|
779
1368
|
stream?: boolean | undefined;
|
|
780
|
-
model?: string | undefined;
|
|
1369
|
+
model?: string | null | undefined;
|
|
781
1370
|
model_db_id?: string | null | undefined;
|
|
782
1371
|
model_type?: string | null | undefined;
|
|
783
1372
|
model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
|
|
784
|
-
provider?: string | undefined;
|
|
1373
|
+
provider?: string | null | undefined;
|
|
785
1374
|
integration_id?: string | null | undefined;
|
|
786
1375
|
version?: string | undefined;
|
|
787
1376
|
messages: Array<ListPromptVersionsMessages$Outbound>;
|
|
@@ -791,6 +1380,425 @@ export declare const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<Li
|
|
|
791
1380
|
export declare function listPromptVersionsPromptConfigToJSON(listPromptVersionsPromptConfig: ListPromptVersionsPromptConfig): string;
|
|
792
1381
|
export declare function listPromptVersionsPromptConfigFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsPromptConfig, SDKValidationError>;
|
|
793
1382
|
/** @internal */
|
|
1383
|
+
export declare const ListPromptVersionsVoice$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsVoice>;
|
|
1384
|
+
/** @internal */
|
|
1385
|
+
export declare const ListPromptVersionsVoice$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsVoice>;
|
|
1386
|
+
/** @internal */
|
|
1387
|
+
export declare const ListPromptVersionsPromptsFormat$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPromptsFormat>;
|
|
1388
|
+
/** @internal */
|
|
1389
|
+
export declare const ListPromptVersionsPromptsFormat$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsPromptsFormat>;
|
|
1390
|
+
/** @internal */
|
|
1391
|
+
export declare const ListPromptVersionsAudio$inboundSchema: z.ZodType<ListPromptVersionsAudio, z.ZodTypeDef, unknown>;
|
|
1392
|
+
/** @internal */
|
|
1393
|
+
export type ListPromptVersionsAudio$Outbound = {
|
|
1394
|
+
voice: string;
|
|
1395
|
+
format: string;
|
|
1396
|
+
};
|
|
1397
|
+
/** @internal */
|
|
1398
|
+
export declare const ListPromptVersionsAudio$outboundSchema: z.ZodType<ListPromptVersionsAudio$Outbound, z.ZodTypeDef, ListPromptVersionsAudio>;
|
|
1399
|
+
export declare function listPromptVersionsAudioToJSON(listPromptVersionsAudio: ListPromptVersionsAudio): string;
|
|
1400
|
+
export declare function listPromptVersionsAudioFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsAudio, SDKValidationError>;
|
|
1401
|
+
/** @internal */
|
|
1402
|
+
export declare const ListPromptVersionsResponseFormatJsonSchema$inboundSchema: z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1403
|
+
/** @internal */
|
|
1404
|
+
export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
|
|
1405
|
+
description?: string | undefined;
|
|
1406
|
+
name: string;
|
|
1407
|
+
schema?: any | undefined;
|
|
1408
|
+
strict: boolean;
|
|
1409
|
+
};
|
|
1410
|
+
/** @internal */
|
|
1411
|
+
export declare const ListPromptVersionsResponseFormatJsonSchema$outboundSchema: z.ZodType<ListPromptVersionsResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatJsonSchema>;
|
|
1412
|
+
export declare function listPromptVersionsResponseFormatJsonSchemaToJSON(listPromptVersionsResponseFormatJsonSchema: ListPromptVersionsResponseFormatJsonSchema): string;
|
|
1413
|
+
export declare function listPromptVersionsResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormatJsonSchema, SDKValidationError>;
|
|
1414
|
+
/** @internal */
|
|
1415
|
+
export declare const ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema: z.ZodType<ListPromptVersionsResponseFormatPromptsJSONSchema, z.ZodTypeDef, unknown>;
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export type ListPromptVersionsResponseFormatPromptsJSONSchema$Outbound = {
|
|
1418
|
+
type: "json_schema";
|
|
1419
|
+
json_schema: ListPromptVersionsResponseFormatJsonSchema$Outbound;
|
|
1420
|
+
};
|
|
1421
|
+
/** @internal */
|
|
1422
|
+
export declare const ListPromptVersionsResponseFormatPromptsJSONSchema$outboundSchema: z.ZodType<ListPromptVersionsResponseFormatPromptsJSONSchema$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatPromptsJSONSchema>;
|
|
1423
|
+
export declare function listPromptVersionsResponseFormatPromptsJSONSchemaToJSON(listPromptVersionsResponseFormatPromptsJSONSchema: ListPromptVersionsResponseFormatPromptsJSONSchema): string;
|
|
1424
|
+
export declare function listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormatPromptsJSONSchema, SDKValidationError>;
|
|
1425
|
+
/** @internal */
|
|
1426
|
+
export declare const ListPromptVersionsResponseFormatJSONObject$inboundSchema: z.ZodType<ListPromptVersionsResponseFormatJSONObject, z.ZodTypeDef, unknown>;
|
|
1427
|
+
/** @internal */
|
|
1428
|
+
export type ListPromptVersionsResponseFormatJSONObject$Outbound = {
|
|
1429
|
+
type: "json_object";
|
|
1430
|
+
};
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export declare const ListPromptVersionsResponseFormatJSONObject$outboundSchema: z.ZodType<ListPromptVersionsResponseFormatJSONObject$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatJSONObject>;
|
|
1433
|
+
export declare function listPromptVersionsResponseFormatJSONObjectToJSON(listPromptVersionsResponseFormatJSONObject: ListPromptVersionsResponseFormatJSONObject): string;
|
|
1434
|
+
export declare function listPromptVersionsResponseFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormatJSONObject, SDKValidationError>;
|
|
1435
|
+
/** @internal */
|
|
1436
|
+
export declare const ListPromptVersionsResponseFormatText$inboundSchema: z.ZodType<ListPromptVersionsResponseFormatText, z.ZodTypeDef, unknown>;
|
|
1437
|
+
/** @internal */
|
|
1438
|
+
export type ListPromptVersionsResponseFormatText$Outbound = {
|
|
1439
|
+
type: "text";
|
|
1440
|
+
};
|
|
1441
|
+
/** @internal */
|
|
1442
|
+
export declare const ListPromptVersionsResponseFormatText$outboundSchema: z.ZodType<ListPromptVersionsResponseFormatText$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormatText>;
|
|
1443
|
+
export declare function listPromptVersionsResponseFormatTextToJSON(listPromptVersionsResponseFormatText: ListPromptVersionsResponseFormatText): string;
|
|
1444
|
+
export declare function listPromptVersionsResponseFormatTextFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormatText, SDKValidationError>;
|
|
1445
|
+
/** @internal */
|
|
1446
|
+
export declare const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<ListPromptVersionsResponseFormat, z.ZodTypeDef, unknown>;
|
|
1447
|
+
/** @internal */
|
|
1448
|
+
export type ListPromptVersionsResponseFormat$Outbound = ListPromptVersionsResponseFormatText$Outbound | ListPromptVersionsResponseFormatJSONObject$Outbound | ListPromptVersionsResponseFormatPromptsJSONSchema$Outbound;
|
|
1449
|
+
/** @internal */
|
|
1450
|
+
export declare const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<ListPromptVersionsResponseFormat$Outbound, z.ZodTypeDef, ListPromptVersionsResponseFormat>;
|
|
1451
|
+
export declare function listPromptVersionsResponseFormatToJSON(listPromptVersionsResponseFormat: ListPromptVersionsResponseFormat): string;
|
|
1452
|
+
export declare function listPromptVersionsResponseFormatFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsResponseFormat, SDKValidationError>;
|
|
1453
|
+
/** @internal */
|
|
1454
|
+
export declare const ListPromptVersionsReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsReasoningEffort>;
|
|
1455
|
+
/** @internal */
|
|
1456
|
+
export declare const ListPromptVersionsReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsReasoningEffort>;
|
|
1457
|
+
/** @internal */
|
|
1458
|
+
export declare const ListPromptVersionsStop$inboundSchema: z.ZodType<ListPromptVersionsStop, z.ZodTypeDef, unknown>;
|
|
1459
|
+
/** @internal */
|
|
1460
|
+
export type ListPromptVersionsStop$Outbound = string | Array<string>;
|
|
1461
|
+
/** @internal */
|
|
1462
|
+
export declare const ListPromptVersionsStop$outboundSchema: z.ZodType<ListPromptVersionsStop$Outbound, z.ZodTypeDef, ListPromptVersionsStop>;
|
|
1463
|
+
export declare function listPromptVersionsStopToJSON(listPromptVersionsStop: ListPromptVersionsStop): string;
|
|
1464
|
+
export declare function listPromptVersionsStopFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsStop, SDKValidationError>;
|
|
1465
|
+
/** @internal */
|
|
1466
|
+
export declare const ListPromptVersionsStreamOptions$inboundSchema: z.ZodType<ListPromptVersionsStreamOptions, z.ZodTypeDef, unknown>;
|
|
1467
|
+
/** @internal */
|
|
1468
|
+
export type ListPromptVersionsStreamOptions$Outbound = {
|
|
1469
|
+
include_usage?: boolean | undefined;
|
|
1470
|
+
};
|
|
1471
|
+
/** @internal */
|
|
1472
|
+
export declare const ListPromptVersionsStreamOptions$outboundSchema: z.ZodType<ListPromptVersionsStreamOptions$Outbound, z.ZodTypeDef, ListPromptVersionsStreamOptions>;
|
|
1473
|
+
export declare function listPromptVersionsStreamOptionsToJSON(listPromptVersionsStreamOptions: ListPromptVersionsStreamOptions): string;
|
|
1474
|
+
export declare function listPromptVersionsStreamOptionsFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsStreamOptions, SDKValidationError>;
|
|
1475
|
+
/** @internal */
|
|
1476
|
+
export declare const ListPromptVersionsThinking$inboundSchema: z.ZodType<ListPromptVersionsThinking, z.ZodTypeDef, unknown>;
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export type ListPromptVersionsThinking$Outbound = components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound;
|
|
1479
|
+
/** @internal */
|
|
1480
|
+
export declare const ListPromptVersionsThinking$outboundSchema: z.ZodType<ListPromptVersionsThinking$Outbound, z.ZodTypeDef, ListPromptVersionsThinking>;
|
|
1481
|
+
export declare function listPromptVersionsThinkingToJSON(listPromptVersionsThinking: ListPromptVersionsThinking): string;
|
|
1482
|
+
export declare function listPromptVersionsThinkingFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsThinking, SDKValidationError>;
|
|
1483
|
+
/** @internal */
|
|
1484
|
+
export declare const ListPromptVersionsToolChoiceType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsToolChoiceType>;
|
|
1485
|
+
/** @internal */
|
|
1486
|
+
export declare const ListPromptVersionsToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsToolChoiceType>;
|
|
1487
|
+
/** @internal */
|
|
1488
|
+
export declare const ListPromptVersionsToolChoiceFunction$inboundSchema: z.ZodType<ListPromptVersionsToolChoiceFunction, z.ZodTypeDef, unknown>;
|
|
1489
|
+
/** @internal */
|
|
1490
|
+
export type ListPromptVersionsToolChoiceFunction$Outbound = {
|
|
1491
|
+
name: string;
|
|
1492
|
+
};
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export declare const ListPromptVersionsToolChoiceFunction$outboundSchema: z.ZodType<ListPromptVersionsToolChoiceFunction$Outbound, z.ZodTypeDef, ListPromptVersionsToolChoiceFunction>;
|
|
1495
|
+
export declare function listPromptVersionsToolChoiceFunctionToJSON(listPromptVersionsToolChoiceFunction: ListPromptVersionsToolChoiceFunction): string;
|
|
1496
|
+
export declare function listPromptVersionsToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsToolChoiceFunction, SDKValidationError>;
|
|
1497
|
+
/** @internal */
|
|
1498
|
+
export declare const ListPromptVersionsToolChoice2$inboundSchema: z.ZodType<ListPromptVersionsToolChoice2, z.ZodTypeDef, unknown>;
|
|
1499
|
+
/** @internal */
|
|
1500
|
+
export type ListPromptVersionsToolChoice2$Outbound = {
|
|
1501
|
+
type?: string | undefined;
|
|
1502
|
+
function: ListPromptVersionsToolChoiceFunction$Outbound;
|
|
1503
|
+
};
|
|
1504
|
+
/** @internal */
|
|
1505
|
+
export declare const ListPromptVersionsToolChoice2$outboundSchema: z.ZodType<ListPromptVersionsToolChoice2$Outbound, z.ZodTypeDef, ListPromptVersionsToolChoice2>;
|
|
1506
|
+
export declare function listPromptVersionsToolChoice2ToJSON(listPromptVersionsToolChoice2: ListPromptVersionsToolChoice2): string;
|
|
1507
|
+
export declare function listPromptVersionsToolChoice2FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsToolChoice2, SDKValidationError>;
|
|
1508
|
+
/** @internal */
|
|
1509
|
+
export declare const ListPromptVersionsToolChoice1$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsToolChoice1>;
|
|
1510
|
+
/** @internal */
|
|
1511
|
+
export declare const ListPromptVersionsToolChoice1$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsToolChoice1>;
|
|
1512
|
+
/** @internal */
|
|
1513
|
+
export declare const ListPromptVersionsToolChoice$inboundSchema: z.ZodType<ListPromptVersionsToolChoice, z.ZodTypeDef, unknown>;
|
|
1514
|
+
/** @internal */
|
|
1515
|
+
export type ListPromptVersionsToolChoice$Outbound = ListPromptVersionsToolChoice2$Outbound | string;
|
|
1516
|
+
/** @internal */
|
|
1517
|
+
export declare const ListPromptVersionsToolChoice$outboundSchema: z.ZodType<ListPromptVersionsToolChoice$Outbound, z.ZodTypeDef, ListPromptVersionsToolChoice>;
|
|
1518
|
+
export declare function listPromptVersionsToolChoiceToJSON(listPromptVersionsToolChoice: ListPromptVersionsToolChoice): string;
|
|
1519
|
+
export declare function listPromptVersionsToolChoiceFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsToolChoice, SDKValidationError>;
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
export declare const ListPromptVersionsModalities$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsModalities>;
|
|
1522
|
+
/** @internal */
|
|
1523
|
+
export declare const ListPromptVersionsModalities$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsModalities>;
|
|
1524
|
+
/** @internal */
|
|
1525
|
+
export declare const ListPromptVersionsId1$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsId1>;
|
|
1526
|
+
/** @internal */
|
|
1527
|
+
export declare const ListPromptVersionsId1$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsId1>;
|
|
1528
|
+
/** @internal */
|
|
1529
|
+
export declare const ListPromptVersionsId$inboundSchema: z.ZodType<ListPromptVersionsId, z.ZodTypeDef, unknown>;
|
|
1530
|
+
/** @internal */
|
|
1531
|
+
export type ListPromptVersionsId$Outbound = string | string;
|
|
1532
|
+
/** @internal */
|
|
1533
|
+
export declare const ListPromptVersionsId$outboundSchema: z.ZodType<ListPromptVersionsId$Outbound, z.ZodTypeDef, ListPromptVersionsId>;
|
|
1534
|
+
export declare function listPromptVersionsIdToJSON(listPromptVersionsId: ListPromptVersionsId): string;
|
|
1535
|
+
export declare function listPromptVersionsIdFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsId, SDKValidationError>;
|
|
1536
|
+
/** @internal */
|
|
1537
|
+
export declare const ListPromptVersionsExecuteOn$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsExecuteOn>;
|
|
1538
|
+
/** @internal */
|
|
1539
|
+
export declare const ListPromptVersionsExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsExecuteOn>;
|
|
1540
|
+
/** @internal */
|
|
1541
|
+
export declare const ListPromptVersionsGuardrails$inboundSchema: z.ZodType<ListPromptVersionsGuardrails, z.ZodTypeDef, unknown>;
|
|
1542
|
+
/** @internal */
|
|
1543
|
+
export type ListPromptVersionsGuardrails$Outbound = {
|
|
1544
|
+
id: string | string;
|
|
1545
|
+
execute_on: string;
|
|
1546
|
+
};
|
|
1547
|
+
/** @internal */
|
|
1548
|
+
export declare const ListPromptVersionsGuardrails$outboundSchema: z.ZodType<ListPromptVersionsGuardrails$Outbound, z.ZodTypeDef, ListPromptVersionsGuardrails>;
|
|
1549
|
+
export declare function listPromptVersionsGuardrailsToJSON(listPromptVersionsGuardrails: ListPromptVersionsGuardrails): string;
|
|
1550
|
+
export declare function listPromptVersionsGuardrailsFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsGuardrails, SDKValidationError>;
|
|
1551
|
+
/** @internal */
|
|
1552
|
+
export declare const ListPromptVersionsContentPromptsResponse2002$inboundSchema: z.ZodType<ListPromptVersionsContentPromptsResponse2002, z.ZodTypeDef, unknown>;
|
|
1553
|
+
/** @internal */
|
|
1554
|
+
export type ListPromptVersionsContentPromptsResponse2002$Outbound = components.TextContentPartSchema$Outbound;
|
|
1555
|
+
/** @internal */
|
|
1556
|
+
export declare const ListPromptVersionsContentPromptsResponse2002$outboundSchema: z.ZodType<ListPromptVersionsContentPromptsResponse2002$Outbound, z.ZodTypeDef, ListPromptVersionsContentPromptsResponse2002>;
|
|
1557
|
+
export declare function listPromptVersionsContentPromptsResponse2002ToJSON(listPromptVersionsContentPromptsResponse2002: ListPromptVersionsContentPromptsResponse2002): string;
|
|
1558
|
+
export declare function listPromptVersionsContentPromptsResponse2002FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsContentPromptsResponse2002, SDKValidationError>;
|
|
1559
|
+
/** @internal */
|
|
1560
|
+
export declare const ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema: z.ZodType<ListPromptVersionsMessagesPromptsResponse200Content, z.ZodTypeDef, unknown>;
|
|
1561
|
+
/** @internal */
|
|
1562
|
+
export type ListPromptVersionsMessagesPromptsResponse200Content$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
|
|
1563
|
+
/** @internal */
|
|
1564
|
+
export declare const ListPromptVersionsMessagesPromptsResponse200Content$outboundSchema: z.ZodType<ListPromptVersionsMessagesPromptsResponse200Content$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesPromptsResponse200Content>;
|
|
1565
|
+
export declare function listPromptVersionsMessagesPromptsResponse200ContentToJSON(listPromptVersionsMessagesPromptsResponse200Content: ListPromptVersionsMessagesPromptsResponse200Content): string;
|
|
1566
|
+
export declare function listPromptVersionsMessagesPromptsResponse200ContentFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesPromptsResponse200Content, SDKValidationError>;
|
|
1567
|
+
/** @internal */
|
|
1568
|
+
export declare const ListPromptVersionsMessagesPromptsType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsMessagesPromptsType>;
|
|
1569
|
+
/** @internal */
|
|
1570
|
+
export declare const ListPromptVersionsMessagesPromptsType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsMessagesPromptsType>;
|
|
1571
|
+
/** @internal */
|
|
1572
|
+
export declare const ListPromptVersionsMessagesTtl$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsMessagesTtl>;
|
|
1573
|
+
/** @internal */
|
|
1574
|
+
export declare const ListPromptVersionsMessagesTtl$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsMessagesTtl>;
|
|
1575
|
+
/** @internal */
|
|
1576
|
+
export declare const ListPromptVersionsMessagesCacheControl$inboundSchema: z.ZodType<ListPromptVersionsMessagesCacheControl, z.ZodTypeDef, unknown>;
|
|
1577
|
+
/** @internal */
|
|
1578
|
+
export type ListPromptVersionsMessagesCacheControl$Outbound = {
|
|
1579
|
+
type: string;
|
|
1580
|
+
ttl: string;
|
|
1581
|
+
};
|
|
1582
|
+
/** @internal */
|
|
1583
|
+
export declare const ListPromptVersionsMessagesCacheControl$outboundSchema: z.ZodType<ListPromptVersionsMessagesCacheControl$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesCacheControl>;
|
|
1584
|
+
export declare function listPromptVersionsMessagesCacheControlToJSON(listPromptVersionsMessagesCacheControl: ListPromptVersionsMessagesCacheControl): string;
|
|
1585
|
+
export declare function listPromptVersionsMessagesCacheControlFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesCacheControl, SDKValidationError>;
|
|
1586
|
+
/** @internal */
|
|
1587
|
+
export declare const ListPromptVersionsMessagesToolMessage$inboundSchema: z.ZodType<ListPromptVersionsMessagesToolMessage, z.ZodTypeDef, unknown>;
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export type ListPromptVersionsMessagesToolMessage$Outbound = {
|
|
1590
|
+
role: "tool";
|
|
1591
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1592
|
+
tool_call_id: string | null;
|
|
1593
|
+
cache_control?: ListPromptVersionsMessagesCacheControl$Outbound | undefined;
|
|
1594
|
+
};
|
|
1595
|
+
/** @internal */
|
|
1596
|
+
export declare const ListPromptVersionsMessagesToolMessage$outboundSchema: z.ZodType<ListPromptVersionsMessagesToolMessage$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesToolMessage>;
|
|
1597
|
+
export declare function listPromptVersionsMessagesToolMessageToJSON(listPromptVersionsMessagesToolMessage: ListPromptVersionsMessagesToolMessage): string;
|
|
1598
|
+
export declare function listPromptVersionsMessagesToolMessageFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesToolMessage, SDKValidationError>;
|
|
1599
|
+
/** @internal */
|
|
1600
|
+
export declare const ListPromptVersionsContentPromptsResponse2$inboundSchema: z.ZodType<ListPromptVersionsContentPromptsResponse2, z.ZodTypeDef, unknown>;
|
|
1601
|
+
/** @internal */
|
|
1602
|
+
export type ListPromptVersionsContentPromptsResponse2$Outbound = (components.TextContentPartSchema$Outbound & {
|
|
1603
|
+
type: "text";
|
|
1604
|
+
}) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound;
|
|
1605
|
+
/** @internal */
|
|
1606
|
+
export declare const ListPromptVersionsContentPromptsResponse2$outboundSchema: z.ZodType<ListPromptVersionsContentPromptsResponse2$Outbound, z.ZodTypeDef, ListPromptVersionsContentPromptsResponse2>;
|
|
1607
|
+
export declare function listPromptVersionsContentPromptsResponse2ToJSON(listPromptVersionsContentPromptsResponse2: ListPromptVersionsContentPromptsResponse2): string;
|
|
1608
|
+
export declare function listPromptVersionsContentPromptsResponse2FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsContentPromptsResponse2, SDKValidationError>;
|
|
1609
|
+
/** @internal */
|
|
1610
|
+
export declare const ListPromptVersionsMessagesPromptsResponseContent$inboundSchema: z.ZodType<ListPromptVersionsMessagesPromptsResponseContent, z.ZodTypeDef, unknown>;
|
|
1611
|
+
/** @internal */
|
|
1612
|
+
export type ListPromptVersionsMessagesPromptsResponseContent$Outbound = string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1613
|
+
type: "text";
|
|
1614
|
+
}) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound>;
|
|
1615
|
+
/** @internal */
|
|
1616
|
+
export declare const ListPromptVersionsMessagesPromptsResponseContent$outboundSchema: z.ZodType<ListPromptVersionsMessagesPromptsResponseContent$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesPromptsResponseContent>;
|
|
1617
|
+
export declare function listPromptVersionsMessagesPromptsResponseContentToJSON(listPromptVersionsMessagesPromptsResponseContent: ListPromptVersionsMessagesPromptsResponseContent): string;
|
|
1618
|
+
export declare function listPromptVersionsMessagesPromptsResponseContentFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesPromptsResponseContent, SDKValidationError>;
|
|
1619
|
+
/** @internal */
|
|
1620
|
+
export declare const ListPromptVersionsMessagesAudio$inboundSchema: z.ZodType<ListPromptVersionsMessagesAudio, z.ZodTypeDef, unknown>;
|
|
1621
|
+
/** @internal */
|
|
1622
|
+
export type ListPromptVersionsMessagesAudio$Outbound = {
|
|
1623
|
+
id: string;
|
|
1624
|
+
};
|
|
1625
|
+
/** @internal */
|
|
1626
|
+
export declare const ListPromptVersionsMessagesAudio$outboundSchema: z.ZodType<ListPromptVersionsMessagesAudio$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesAudio>;
|
|
1627
|
+
export declare function listPromptVersionsMessagesAudioToJSON(listPromptVersionsMessagesAudio: ListPromptVersionsMessagesAudio): string;
|
|
1628
|
+
export declare function listPromptVersionsMessagesAudioFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesAudio, SDKValidationError>;
|
|
1629
|
+
/** @internal */
|
|
1630
|
+
export declare const ListPromptVersionsMessagesType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsMessagesType>;
|
|
1631
|
+
/** @internal */
|
|
1632
|
+
export declare const ListPromptVersionsMessagesType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsMessagesType>;
|
|
1633
|
+
/** @internal */
|
|
1634
|
+
export declare const ListPromptVersionsMessagesFunction$inboundSchema: z.ZodType<ListPromptVersionsMessagesFunction, z.ZodTypeDef, unknown>;
|
|
1635
|
+
/** @internal */
|
|
1636
|
+
export type ListPromptVersionsMessagesFunction$Outbound = {
|
|
1637
|
+
name?: string | undefined;
|
|
1638
|
+
arguments?: string | undefined;
|
|
1639
|
+
};
|
|
1640
|
+
/** @internal */
|
|
1641
|
+
export declare const ListPromptVersionsMessagesFunction$outboundSchema: z.ZodType<ListPromptVersionsMessagesFunction$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesFunction>;
|
|
1642
|
+
export declare function listPromptVersionsMessagesFunctionToJSON(listPromptVersionsMessagesFunction: ListPromptVersionsMessagesFunction): string;
|
|
1643
|
+
export declare function listPromptVersionsMessagesFunctionFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesFunction, SDKValidationError>;
|
|
1644
|
+
/** @internal */
|
|
1645
|
+
export declare const ListPromptVersionsMessagesToolCalls$inboundSchema: z.ZodType<ListPromptVersionsMessagesToolCalls, z.ZodTypeDef, unknown>;
|
|
1646
|
+
/** @internal */
|
|
1647
|
+
export type ListPromptVersionsMessagesToolCalls$Outbound = {
|
|
1648
|
+
id: string;
|
|
1649
|
+
type: string;
|
|
1650
|
+
function: ListPromptVersionsMessagesFunction$Outbound;
|
|
1651
|
+
thought_signature?: string | undefined;
|
|
1652
|
+
};
|
|
1653
|
+
/** @internal */
|
|
1654
|
+
export declare const ListPromptVersionsMessagesToolCalls$outboundSchema: z.ZodType<ListPromptVersionsMessagesToolCalls$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesToolCalls>;
|
|
1655
|
+
export declare function listPromptVersionsMessagesToolCallsToJSON(listPromptVersionsMessagesToolCalls: ListPromptVersionsMessagesToolCalls): string;
|
|
1656
|
+
export declare function listPromptVersionsMessagesToolCallsFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesToolCalls, SDKValidationError>;
|
|
1657
|
+
/** @internal */
|
|
1658
|
+
export declare const ListPromptVersionsMessagesAssistantMessage$inboundSchema: z.ZodType<ListPromptVersionsMessagesAssistantMessage, z.ZodTypeDef, unknown>;
|
|
1659
|
+
/** @internal */
|
|
1660
|
+
export type ListPromptVersionsMessagesAssistantMessage$Outbound = {
|
|
1661
|
+
content?: string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1662
|
+
type: "text";
|
|
1663
|
+
}) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound> | null | undefined;
|
|
1664
|
+
refusal?: string | null | undefined;
|
|
1665
|
+
role: "assistant";
|
|
1666
|
+
name?: string | undefined;
|
|
1667
|
+
audio?: ListPromptVersionsMessagesAudio$Outbound | null | undefined;
|
|
1668
|
+
tool_calls?: Array<ListPromptVersionsMessagesToolCalls$Outbound> | undefined;
|
|
1669
|
+
};
|
|
1670
|
+
/** @internal */
|
|
1671
|
+
export declare const ListPromptVersionsMessagesAssistantMessage$outboundSchema: z.ZodType<ListPromptVersionsMessagesAssistantMessage$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesAssistantMessage>;
|
|
1672
|
+
export declare function listPromptVersionsMessagesAssistantMessageToJSON(listPromptVersionsMessagesAssistantMessage: ListPromptVersionsMessagesAssistantMessage): string;
|
|
1673
|
+
export declare function listPromptVersionsMessagesAssistantMessageFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesAssistantMessage, SDKValidationError>;
|
|
1674
|
+
/** @internal */
|
|
1675
|
+
export declare const ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponse200ApplicationJSONType>;
|
|
1676
|
+
/** @internal */
|
|
1677
|
+
export declare const ListPromptVersions2PromptsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponse200ApplicationJSONType>;
|
|
1678
|
+
/** @internal */
|
|
1679
|
+
export declare const ListPromptVersions2Ttl$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2Ttl>;
|
|
1680
|
+
/** @internal */
|
|
1681
|
+
export declare const ListPromptVersions2Ttl$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersions2Ttl>;
|
|
1682
|
+
/** @internal */
|
|
1683
|
+
export declare const ListPromptVersions2CacheControl$inboundSchema: z.ZodType<ListPromptVersions2CacheControl, z.ZodTypeDef, unknown>;
|
|
1684
|
+
/** @internal */
|
|
1685
|
+
export type ListPromptVersions2CacheControl$Outbound = {
|
|
1686
|
+
type: string;
|
|
1687
|
+
ttl: string;
|
|
1688
|
+
};
|
|
1689
|
+
/** @internal */
|
|
1690
|
+
export declare const ListPromptVersions2CacheControl$outboundSchema: z.ZodType<ListPromptVersions2CacheControl$Outbound, z.ZodTypeDef, ListPromptVersions2CacheControl>;
|
|
1691
|
+
export declare function listPromptVersions2CacheControlToJSON(listPromptVersions2CacheControl: ListPromptVersions2CacheControl): string;
|
|
1692
|
+
export declare function listPromptVersions2CacheControlFromJSON(jsonString: string): SafeParseResult<ListPromptVersions2CacheControl, SDKValidationError>;
|
|
1693
|
+
/** @internal */
|
|
1694
|
+
export declare const ListPromptVersions24$inboundSchema: z.ZodType<ListPromptVersions24, z.ZodTypeDef, unknown>;
|
|
1695
|
+
/** @internal */
|
|
1696
|
+
export type ListPromptVersions24$Outbound = {
|
|
1697
|
+
type: "file";
|
|
1698
|
+
cache_control?: ListPromptVersions2CacheControl$Outbound | undefined;
|
|
1699
|
+
file: components.FileContentPartSchema$Outbound;
|
|
1700
|
+
};
|
|
1701
|
+
/** @internal */
|
|
1702
|
+
export declare const ListPromptVersions24$outboundSchema: z.ZodType<ListPromptVersions24$Outbound, z.ZodTypeDef, ListPromptVersions24>;
|
|
1703
|
+
export declare function listPromptVersions24ToJSON(listPromptVersions24: ListPromptVersions24): string;
|
|
1704
|
+
export declare function listPromptVersions24FromJSON(jsonString: string): SafeParseResult<ListPromptVersions24, SDKValidationError>;
|
|
1705
|
+
/** @internal */
|
|
1706
|
+
export declare const ListPromptVersionsContentPrompts2$inboundSchema: z.ZodType<ListPromptVersionsContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1707
|
+
/** @internal */
|
|
1708
|
+
export type ListPromptVersionsContentPrompts2$Outbound = (components.TextContentPartSchema$Outbound & {
|
|
1709
|
+
type: "text";
|
|
1710
|
+
}) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | ListPromptVersions24$Outbound;
|
|
1711
|
+
/** @internal */
|
|
1712
|
+
export declare const ListPromptVersionsContentPrompts2$outboundSchema: z.ZodType<ListPromptVersionsContentPrompts2$Outbound, z.ZodTypeDef, ListPromptVersionsContentPrompts2>;
|
|
1713
|
+
export declare function listPromptVersionsContentPrompts2ToJSON(listPromptVersionsContentPrompts2: ListPromptVersionsContentPrompts2): string;
|
|
1714
|
+
export declare function listPromptVersionsContentPrompts2FromJSON(jsonString: string): SafeParseResult<ListPromptVersionsContentPrompts2, SDKValidationError>;
|
|
1715
|
+
/** @internal */
|
|
1716
|
+
export declare const ListPromptVersionsMessagesPromptsContent$inboundSchema: z.ZodType<ListPromptVersionsMessagesPromptsContent, z.ZodTypeDef, unknown>;
|
|
1717
|
+
/** @internal */
|
|
1718
|
+
export type ListPromptVersionsMessagesPromptsContent$Outbound = string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1719
|
+
type: "text";
|
|
1720
|
+
}) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | ListPromptVersions24$Outbound>;
|
|
1721
|
+
/** @internal */
|
|
1722
|
+
export declare const ListPromptVersionsMessagesPromptsContent$outboundSchema: z.ZodType<ListPromptVersionsMessagesPromptsContent$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesPromptsContent>;
|
|
1723
|
+
export declare function listPromptVersionsMessagesPromptsContentToJSON(listPromptVersionsMessagesPromptsContent: ListPromptVersionsMessagesPromptsContent): string;
|
|
1724
|
+
export declare function listPromptVersionsMessagesPromptsContentFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesPromptsContent, SDKValidationError>;
|
|
1725
|
+
/** @internal */
|
|
1726
|
+
export declare const ListPromptVersionsMessagesUserMessage$inboundSchema: z.ZodType<ListPromptVersionsMessagesUserMessage, z.ZodTypeDef, unknown>;
|
|
1727
|
+
/** @internal */
|
|
1728
|
+
export type ListPromptVersionsMessagesUserMessage$Outbound = {
|
|
1729
|
+
role: "user";
|
|
1730
|
+
name?: string | undefined;
|
|
1731
|
+
content: string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1732
|
+
type: "text";
|
|
1733
|
+
}) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | ListPromptVersions24$Outbound>;
|
|
1734
|
+
};
|
|
1735
|
+
/** @internal */
|
|
1736
|
+
export declare const ListPromptVersionsMessagesUserMessage$outboundSchema: z.ZodType<ListPromptVersionsMessagesUserMessage$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesUserMessage>;
|
|
1737
|
+
export declare function listPromptVersionsMessagesUserMessageToJSON(listPromptVersionsMessagesUserMessage: ListPromptVersionsMessagesUserMessage): string;
|
|
1738
|
+
export declare function listPromptVersionsMessagesUserMessageFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesUserMessage, SDKValidationError>;
|
|
1739
|
+
/** @internal */
|
|
1740
|
+
export declare const ListPromptVersionsMessagesContent$inboundSchema: z.ZodType<ListPromptVersionsMessagesContent, z.ZodTypeDef, unknown>;
|
|
1741
|
+
/** @internal */
|
|
1742
|
+
export type ListPromptVersionsMessagesContent$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
|
|
1743
|
+
/** @internal */
|
|
1744
|
+
export declare const ListPromptVersionsMessagesContent$outboundSchema: z.ZodType<ListPromptVersionsMessagesContent$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesContent>;
|
|
1745
|
+
export declare function listPromptVersionsMessagesContentToJSON(listPromptVersionsMessagesContent: ListPromptVersionsMessagesContent): string;
|
|
1746
|
+
export declare function listPromptVersionsMessagesContentFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesContent, SDKValidationError>;
|
|
1747
|
+
/** @internal */
|
|
1748
|
+
export declare const ListPromptVersionsMessagesSystemMessage$inboundSchema: z.ZodType<ListPromptVersionsMessagesSystemMessage, z.ZodTypeDef, unknown>;
|
|
1749
|
+
/** @internal */
|
|
1750
|
+
export type ListPromptVersionsMessagesSystemMessage$Outbound = {
|
|
1751
|
+
role: "system";
|
|
1752
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1753
|
+
name?: string | undefined;
|
|
1754
|
+
};
|
|
1755
|
+
/** @internal */
|
|
1756
|
+
export declare const ListPromptVersionsMessagesSystemMessage$outboundSchema: z.ZodType<ListPromptVersionsMessagesSystemMessage$Outbound, z.ZodTypeDef, ListPromptVersionsMessagesSystemMessage>;
|
|
1757
|
+
export declare function listPromptVersionsMessagesSystemMessageToJSON(listPromptVersionsMessagesSystemMessage: ListPromptVersionsMessagesSystemMessage): string;
|
|
1758
|
+
export declare function listPromptVersionsMessagesSystemMessageFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsMessagesSystemMessage, SDKValidationError>;
|
|
1759
|
+
/** @internal */
|
|
1760
|
+
export declare const ListPromptVersionsPromptsMessages$inboundSchema: z.ZodType<ListPromptVersionsPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1761
|
+
/** @internal */
|
|
1762
|
+
export type ListPromptVersionsPromptsMessages$Outbound = ListPromptVersionsMessagesSystemMessage$Outbound | ListPromptVersionsMessagesUserMessage$Outbound | ListPromptVersionsMessagesAssistantMessage$Outbound | ListPromptVersionsMessagesToolMessage$Outbound;
|
|
1763
|
+
/** @internal */
|
|
1764
|
+
export declare const ListPromptVersionsPromptsMessages$outboundSchema: z.ZodType<ListPromptVersionsPromptsMessages$Outbound, z.ZodTypeDef, ListPromptVersionsPromptsMessages>;
|
|
1765
|
+
export declare function listPromptVersionsPromptsMessagesToJSON(listPromptVersionsPromptsMessages: ListPromptVersionsPromptsMessages): string;
|
|
1766
|
+
export declare function listPromptVersionsPromptsMessagesFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsPromptsMessages, SDKValidationError>;
|
|
1767
|
+
/** @internal */
|
|
1768
|
+
export declare const ListPromptVersionsPromptField$inboundSchema: z.ZodType<ListPromptVersionsPromptField, z.ZodTypeDef, unknown>;
|
|
1769
|
+
/** @internal */
|
|
1770
|
+
export type ListPromptVersionsPromptField$Outbound = {
|
|
1771
|
+
audio?: ListPromptVersionsAudio$Outbound | null | undefined;
|
|
1772
|
+
frequency_penalty?: number | null | undefined;
|
|
1773
|
+
max_tokens?: number | null | undefined;
|
|
1774
|
+
max_completion_tokens?: number | null | undefined;
|
|
1775
|
+
logprobs?: boolean | null | undefined;
|
|
1776
|
+
top_logprobs?: number | null | undefined;
|
|
1777
|
+
n?: number | null | undefined;
|
|
1778
|
+
presence_penalty?: number | null | undefined;
|
|
1779
|
+
response_format?: ListPromptVersionsResponseFormatText$Outbound | ListPromptVersionsResponseFormatJSONObject$Outbound | ListPromptVersionsResponseFormatPromptsJSONSchema$Outbound | undefined;
|
|
1780
|
+
reasoning_effort?: string | undefined;
|
|
1781
|
+
verbosity?: string | undefined;
|
|
1782
|
+
seed?: number | null | undefined;
|
|
1783
|
+
stop?: string | Array<string> | null | undefined;
|
|
1784
|
+
stream_options?: ListPromptVersionsStreamOptions$Outbound | null | undefined;
|
|
1785
|
+
thinking?: components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound | undefined;
|
|
1786
|
+
temperature?: number | null | undefined;
|
|
1787
|
+
top_p?: number | null | undefined;
|
|
1788
|
+
top_k?: number | null | undefined;
|
|
1789
|
+
tool_choice?: ListPromptVersionsToolChoice2$Outbound | string | undefined;
|
|
1790
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1791
|
+
modalities?: Array<string> | null | undefined;
|
|
1792
|
+
guardrails?: Array<ListPromptVersionsGuardrails$Outbound> | undefined;
|
|
1793
|
+
messages?: Array<ListPromptVersionsMessagesSystemMessage$Outbound | ListPromptVersionsMessagesUserMessage$Outbound | ListPromptVersionsMessagesAssistantMessage$Outbound | ListPromptVersionsMessagesToolMessage$Outbound> | undefined;
|
|
1794
|
+
model?: string | null | undefined;
|
|
1795
|
+
version?: string | undefined;
|
|
1796
|
+
};
|
|
1797
|
+
/** @internal */
|
|
1798
|
+
export declare const ListPromptVersionsPromptField$outboundSchema: z.ZodType<ListPromptVersionsPromptField$Outbound, z.ZodTypeDef, ListPromptVersionsPromptField>;
|
|
1799
|
+
export declare function listPromptVersionsPromptFieldToJSON(listPromptVersionsPromptField: ListPromptVersionsPromptField): string;
|
|
1800
|
+
export declare function listPromptVersionsPromptFieldFromJSON(jsonString: string): SafeParseResult<ListPromptVersionsPromptField, SDKValidationError>;
|
|
1801
|
+
/** @internal */
|
|
794
1802
|
export declare const ListPromptVersionsUseCases$inboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsUseCases>;
|
|
795
1803
|
/** @internal */
|
|
796
1804
|
export declare const ListPromptVersionsUseCases$outboundSchema: z.ZodNativeEnum<typeof ListPromptVersionsUseCases>;
|
|
@@ -817,7 +1825,8 @@ export type ListPromptVersionsData$Outbound = {
|
|
|
817
1825
|
created_by_id?: string | null | undefined;
|
|
818
1826
|
updated_by_id?: string | null | undefined;
|
|
819
1827
|
description?: string | null | undefined;
|
|
820
|
-
prompt_config
|
|
1828
|
+
prompt_config?: ListPromptVersionsPromptConfig$Outbound | undefined;
|
|
1829
|
+
prompt: ListPromptVersionsPromptField$Outbound;
|
|
821
1830
|
metadata?: ListPromptVersionsMetadata$Outbound | undefined;
|
|
822
1831
|
timestamp: string;
|
|
823
1832
|
};
|