@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.45
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 +4769 -1624
- 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 +2 -2
- package/lib/config.js +2 -2
- 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 +2 -2
- 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 GetOnePromptRequest = {
|
|
6
7
|
/**
|
|
@@ -65,25 +66,25 @@ export declare const GetOnePromptResponseFormat4: {
|
|
|
65
66
|
readonly Pcm: "pcm";
|
|
66
67
|
};
|
|
67
68
|
export type GetOnePromptResponseFormat4 = ClosedEnum<typeof GetOnePromptResponseFormat4>;
|
|
68
|
-
export declare const
|
|
69
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType: {
|
|
69
70
|
readonly Text: "text";
|
|
70
71
|
};
|
|
71
|
-
export type
|
|
72
|
+
export type GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
72
73
|
export type GetOnePromptResponseFormat3 = {
|
|
73
|
-
type:
|
|
74
|
+
type: GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
|
|
74
75
|
};
|
|
75
|
-
export declare const
|
|
76
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType: {
|
|
76
77
|
readonly JsonObject: "json_object";
|
|
77
78
|
};
|
|
78
|
-
export type
|
|
79
|
+
export type GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType = ClosedEnum<typeof GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
79
80
|
export type GetOnePromptResponseFormat2 = {
|
|
80
|
-
type:
|
|
81
|
+
type: GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType;
|
|
81
82
|
};
|
|
82
|
-
export declare const
|
|
83
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200Type: {
|
|
83
84
|
readonly JsonSchema: "json_schema";
|
|
84
85
|
};
|
|
85
|
-
export type
|
|
86
|
-
export type
|
|
86
|
+
export type GetOnePromptResponseFormatPromptsResponse200Type = ClosedEnum<typeof GetOnePromptResponseFormatPromptsResponse200Type>;
|
|
87
|
+
export type GetOnePromptResponseFormatPromptsResponseJsonSchema = {
|
|
87
88
|
name: string;
|
|
88
89
|
description?: string | undefined;
|
|
89
90
|
strict?: boolean | undefined;
|
|
@@ -92,9 +93,9 @@ export type GetOnePromptResponseFormatJsonSchema = {
|
|
|
92
93
|
};
|
|
93
94
|
};
|
|
94
95
|
export type GetOnePromptResponseFormat1 = {
|
|
95
|
-
type:
|
|
96
|
+
type: GetOnePromptResponseFormatPromptsResponse200Type;
|
|
96
97
|
displayName?: string | undefined;
|
|
97
|
-
jsonSchema:
|
|
98
|
+
jsonSchema: GetOnePromptResponseFormatPromptsResponseJsonSchema;
|
|
98
99
|
};
|
|
99
100
|
/**
|
|
100
101
|
* An object specifying the format that the model must output.
|
|
@@ -107,7 +108,7 @@ export type GetOnePromptResponseFormat1 = {
|
|
|
107
108
|
*
|
|
108
109
|
* 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.
|
|
109
110
|
*/
|
|
110
|
-
export type
|
|
111
|
+
export type GetOnePromptPromptsResponseFormat = GetOnePromptResponseFormat1 | GetOnePromptResponseFormat2 | GetOnePromptResponseFormat3 | GetOnePromptResponseFormat4 | GetOnePromptResponseFormat5 | GetOnePromptResponseFormat6;
|
|
111
112
|
/**
|
|
112
113
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
113
114
|
*/
|
|
@@ -133,7 +134,7 @@ export type GetOnePromptEncodingFormat = ClosedEnum<typeof GetOnePromptEncodingF
|
|
|
133
134
|
/**
|
|
134
135
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
135
136
|
*/
|
|
136
|
-
export declare const
|
|
137
|
+
export declare const GetOnePromptPromptsReasoningEffort: {
|
|
137
138
|
readonly None: "none";
|
|
138
139
|
readonly Disable: "disable";
|
|
139
140
|
readonly Minimal: "minimal";
|
|
@@ -144,7 +145,7 @@ export declare const GetOnePromptReasoningEffort: {
|
|
|
144
145
|
/**
|
|
145
146
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
146
147
|
*/
|
|
147
|
-
export type
|
|
148
|
+
export type GetOnePromptPromptsReasoningEffort = ClosedEnum<typeof GetOnePromptPromptsReasoningEffort>;
|
|
148
149
|
/**
|
|
149
150
|
* Controls the verbosity of the model output.
|
|
150
151
|
*/
|
|
@@ -243,7 +244,7 @@ export type GetOnePromptModelParameters = {
|
|
|
243
244
|
/**
|
|
244
245
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
245
246
|
*/
|
|
246
|
-
reasoningEffort?:
|
|
247
|
+
reasoningEffort?: GetOnePromptPromptsReasoningEffort | undefined;
|
|
247
248
|
/**
|
|
248
249
|
* 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`
|
|
249
250
|
*/
|
|
@@ -391,11 +392,13 @@ export type GetOnePromptMessages = {
|
|
|
391
392
|
toolCallId?: string | null | undefined;
|
|
392
393
|
};
|
|
393
394
|
/**
|
|
394
|
-
* A list of messages compatible with the openAI schema
|
|
395
|
+
* [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
|
|
396
|
+
*
|
|
397
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
395
398
|
*/
|
|
396
399
|
export type GetOnePromptPromptConfig = {
|
|
397
400
|
stream?: boolean | undefined;
|
|
398
|
-
model?: string | undefined;
|
|
401
|
+
model?: string | null | undefined;
|
|
399
402
|
/**
|
|
400
403
|
* The id of the resource
|
|
401
404
|
*/
|
|
@@ -408,7 +411,7 @@ export type GetOnePromptPromptConfig = {
|
|
|
408
411
|
* Model Parameters: Not all parameters apply to every model
|
|
409
412
|
*/
|
|
410
413
|
modelParameters?: GetOnePromptModelParameters | undefined;
|
|
411
|
-
provider?: GetOnePromptProvider | undefined;
|
|
414
|
+
provider?: GetOnePromptProvider | null | undefined;
|
|
412
415
|
/**
|
|
413
416
|
* The ID of the integration to use
|
|
414
417
|
*/
|
|
@@ -416,6 +419,586 @@ export type GetOnePromptPromptConfig = {
|
|
|
416
419
|
version?: string | undefined;
|
|
417
420
|
messages: Array<GetOnePromptMessages>;
|
|
418
421
|
};
|
|
422
|
+
/**
|
|
423
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
424
|
+
*/
|
|
425
|
+
export declare const GetOnePromptVoice: {
|
|
426
|
+
readonly Alloy: "alloy";
|
|
427
|
+
readonly Echo: "echo";
|
|
428
|
+
readonly Fable: "fable";
|
|
429
|
+
readonly Onyx: "onyx";
|
|
430
|
+
readonly Nova: "nova";
|
|
431
|
+
readonly Shimmer: "shimmer";
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
435
|
+
*/
|
|
436
|
+
export type GetOnePromptVoice = ClosedEnum<typeof GetOnePromptVoice>;
|
|
437
|
+
/**
|
|
438
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
439
|
+
*/
|
|
440
|
+
export declare const GetOnePromptPromptsFormat: {
|
|
441
|
+
readonly Wav: "wav";
|
|
442
|
+
readonly Mp3: "mp3";
|
|
443
|
+
readonly Flac: "flac";
|
|
444
|
+
readonly Opus: "opus";
|
|
445
|
+
readonly Pcm16: "pcm16";
|
|
446
|
+
};
|
|
447
|
+
/**
|
|
448
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
449
|
+
*/
|
|
450
|
+
export type GetOnePromptPromptsFormat = ClosedEnum<typeof GetOnePromptPromptsFormat>;
|
|
451
|
+
/**
|
|
452
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
453
|
+
*/
|
|
454
|
+
export type GetOnePromptAudio = {
|
|
455
|
+
/**
|
|
456
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
457
|
+
*/
|
|
458
|
+
voice: GetOnePromptVoice;
|
|
459
|
+
/**
|
|
460
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
461
|
+
*/
|
|
462
|
+
format: GetOnePromptPromptsFormat;
|
|
463
|
+
};
|
|
464
|
+
export type GetOnePromptResponseFormatJsonSchema = {
|
|
465
|
+
/**
|
|
466
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
467
|
+
*/
|
|
468
|
+
description?: string | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* 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.
|
|
471
|
+
*/
|
|
472
|
+
name: string;
|
|
473
|
+
/**
|
|
474
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
475
|
+
*/
|
|
476
|
+
schema?: any | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* 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.
|
|
479
|
+
*/
|
|
480
|
+
strict?: boolean | undefined;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* @remarks
|
|
484
|
+
*
|
|
485
|
+
* JSON Schema response format. Used to generate structured JSON responses
|
|
486
|
+
*/
|
|
487
|
+
export type GetOnePromptResponseFormatPromptsJSONSchema = {
|
|
488
|
+
type: "json_schema";
|
|
489
|
+
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* @remarks
|
|
493
|
+
*
|
|
494
|
+
* 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.
|
|
495
|
+
*/
|
|
496
|
+
export type GetOnePromptResponseFormatJSONObject = {
|
|
497
|
+
type: "json_object";
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* @remarks
|
|
501
|
+
*
|
|
502
|
+
* Default response format. Used to generate text responses
|
|
503
|
+
*/
|
|
504
|
+
export type GetOnePromptResponseFormatText = {
|
|
505
|
+
type: "text";
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* An object specifying the format that the model must output
|
|
509
|
+
*/
|
|
510
|
+
export type GetOnePromptResponseFormat = GetOnePromptResponseFormatText | GetOnePromptResponseFormatJSONObject | GetOnePromptResponseFormatPromptsJSONSchema;
|
|
511
|
+
/**
|
|
512
|
+
* 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.
|
|
513
|
+
*
|
|
514
|
+
* @remarks
|
|
515
|
+
*
|
|
516
|
+
* - `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.
|
|
517
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
518
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
519
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
520
|
+
*
|
|
521
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
522
|
+
*/
|
|
523
|
+
export declare const GetOnePromptReasoningEffort: {
|
|
524
|
+
readonly None: "none";
|
|
525
|
+
readonly Minimal: "minimal";
|
|
526
|
+
readonly Low: "low";
|
|
527
|
+
readonly Medium: "medium";
|
|
528
|
+
readonly High: "high";
|
|
529
|
+
readonly Xhigh: "xhigh";
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* 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.
|
|
533
|
+
*
|
|
534
|
+
* @remarks
|
|
535
|
+
*
|
|
536
|
+
* - `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.
|
|
537
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
538
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
539
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
540
|
+
*
|
|
541
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
542
|
+
*/
|
|
543
|
+
export type GetOnePromptReasoningEffort = ClosedEnum<typeof GetOnePromptReasoningEffort>;
|
|
544
|
+
/**
|
|
545
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
546
|
+
*/
|
|
547
|
+
export type GetOnePromptStop = string | Array<string>;
|
|
548
|
+
/**
|
|
549
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
550
|
+
*/
|
|
551
|
+
export type GetOnePromptStreamOptions = {
|
|
552
|
+
/**
|
|
553
|
+
* 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.
|
|
554
|
+
*/
|
|
555
|
+
includeUsage?: boolean | undefined;
|
|
556
|
+
};
|
|
557
|
+
export type GetOnePromptThinking = components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema;
|
|
558
|
+
/**
|
|
559
|
+
* The type of the tool. Currently, only function is supported.
|
|
560
|
+
*/
|
|
561
|
+
export declare const GetOnePromptToolChoiceType: {
|
|
562
|
+
readonly Function: "function";
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* The type of the tool. Currently, only function is supported.
|
|
566
|
+
*/
|
|
567
|
+
export type GetOnePromptToolChoiceType = ClosedEnum<typeof GetOnePromptToolChoiceType>;
|
|
568
|
+
export type GetOnePromptToolChoiceFunction = {
|
|
569
|
+
/**
|
|
570
|
+
* The name of the function to call.
|
|
571
|
+
*/
|
|
572
|
+
name: string;
|
|
573
|
+
};
|
|
574
|
+
export type GetOnePromptToolChoice2 = {
|
|
575
|
+
/**
|
|
576
|
+
* The type of the tool. Currently, only function is supported.
|
|
577
|
+
*/
|
|
578
|
+
type?: GetOnePromptToolChoiceType | undefined;
|
|
579
|
+
function: GetOnePromptToolChoiceFunction;
|
|
580
|
+
};
|
|
581
|
+
export declare const GetOnePromptToolChoice1: {
|
|
582
|
+
readonly None: "none";
|
|
583
|
+
readonly Auto: "auto";
|
|
584
|
+
readonly Required: "required";
|
|
585
|
+
};
|
|
586
|
+
export type GetOnePromptToolChoice1 = ClosedEnum<typeof GetOnePromptToolChoice1>;
|
|
587
|
+
/**
|
|
588
|
+
* Controls which (if any) tool is called by the model.
|
|
589
|
+
*/
|
|
590
|
+
export type GetOnePromptToolChoice = GetOnePromptToolChoice2 | GetOnePromptToolChoice1;
|
|
591
|
+
export declare const GetOnePromptModalities: {
|
|
592
|
+
readonly Text: "text";
|
|
593
|
+
readonly Audio: "audio";
|
|
594
|
+
};
|
|
595
|
+
export type GetOnePromptModalities = ClosedEnum<typeof GetOnePromptModalities>;
|
|
596
|
+
/**
|
|
597
|
+
* The key of the guardrail.
|
|
598
|
+
*/
|
|
599
|
+
export declare const GetOnePromptId1: {
|
|
600
|
+
readonly OrqPiiDetection: "orq_pii_detection";
|
|
601
|
+
readonly OrqSexualModeration: "orq_sexual_moderation";
|
|
602
|
+
readonly OrqHarmfulModeration: "orq_harmful_moderation";
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* The key of the guardrail.
|
|
606
|
+
*/
|
|
607
|
+
export type GetOnePromptId1 = ClosedEnum<typeof GetOnePromptId1>;
|
|
608
|
+
export type GetOnePromptId = GetOnePromptId1 | string;
|
|
609
|
+
/**
|
|
610
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
611
|
+
*/
|
|
612
|
+
export declare const GetOnePromptExecuteOn: {
|
|
613
|
+
readonly Input: "input";
|
|
614
|
+
readonly Output: "output";
|
|
615
|
+
};
|
|
616
|
+
/**
|
|
617
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
618
|
+
*/
|
|
619
|
+
export type GetOnePromptExecuteOn = ClosedEnum<typeof GetOnePromptExecuteOn>;
|
|
620
|
+
export type GetOnePromptGuardrails = {
|
|
621
|
+
id: GetOnePromptId1 | string;
|
|
622
|
+
/**
|
|
623
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
624
|
+
*/
|
|
625
|
+
executeOn: GetOnePromptExecuteOn;
|
|
626
|
+
};
|
|
627
|
+
export type GetOnePromptContentPromptsResponse2002 = components.TextContentPartSchema;
|
|
628
|
+
/**
|
|
629
|
+
* The contents of the tool message.
|
|
630
|
+
*/
|
|
631
|
+
export type GetOnePromptMessagesPromptsResponse200Content = string | Array<components.TextContentPartSchema>;
|
|
632
|
+
/**
|
|
633
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
634
|
+
*/
|
|
635
|
+
export declare const GetOnePromptMessagesPromptsType: {
|
|
636
|
+
readonly Ephemeral: "ephemeral";
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
640
|
+
*/
|
|
641
|
+
export type GetOnePromptMessagesPromptsType = ClosedEnum<typeof GetOnePromptMessagesPromptsType>;
|
|
642
|
+
/**
|
|
643
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
644
|
+
*
|
|
645
|
+
* @remarks
|
|
646
|
+
*
|
|
647
|
+
* - `5m`: 5 minutes
|
|
648
|
+
* - `1h`: 1 hour
|
|
649
|
+
*
|
|
650
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
651
|
+
*/
|
|
652
|
+
export declare const GetOnePromptMessagesTtl: {
|
|
653
|
+
readonly Fivem: "5m";
|
|
654
|
+
readonly Oneh: "1h";
|
|
655
|
+
};
|
|
656
|
+
/**
|
|
657
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
658
|
+
*
|
|
659
|
+
* @remarks
|
|
660
|
+
*
|
|
661
|
+
* - `5m`: 5 minutes
|
|
662
|
+
* - `1h`: 1 hour
|
|
663
|
+
*
|
|
664
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
665
|
+
*/
|
|
666
|
+
export type GetOnePromptMessagesTtl = ClosedEnum<typeof GetOnePromptMessagesTtl>;
|
|
667
|
+
export type GetOnePromptMessagesCacheControl = {
|
|
668
|
+
/**
|
|
669
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
670
|
+
*/
|
|
671
|
+
type: GetOnePromptMessagesPromptsType;
|
|
672
|
+
/**
|
|
673
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
674
|
+
*
|
|
675
|
+
* @remarks
|
|
676
|
+
*
|
|
677
|
+
* - `5m`: 5 minutes
|
|
678
|
+
* - `1h`: 1 hour
|
|
679
|
+
*
|
|
680
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
681
|
+
*/
|
|
682
|
+
ttl?: GetOnePromptMessagesTtl | undefined;
|
|
683
|
+
};
|
|
684
|
+
export type GetOnePromptMessagesToolMessage = {
|
|
685
|
+
/**
|
|
686
|
+
* The role of the messages author, in this case tool.
|
|
687
|
+
*/
|
|
688
|
+
role: "tool";
|
|
689
|
+
/**
|
|
690
|
+
* The contents of the tool message.
|
|
691
|
+
*/
|
|
692
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
693
|
+
/**
|
|
694
|
+
* Tool call that this message is responding to.
|
|
695
|
+
*/
|
|
696
|
+
toolCallId: string | null;
|
|
697
|
+
cacheControl?: GetOnePromptMessagesCacheControl | undefined;
|
|
698
|
+
};
|
|
699
|
+
export type GetOnePromptContentPromptsResponse2 = (components.TextContentPartSchema & {
|
|
700
|
+
type: "text";
|
|
701
|
+
}) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema;
|
|
702
|
+
/**
|
|
703
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
704
|
+
*/
|
|
705
|
+
export type GetOnePromptMessagesPromptsResponseContent = string | Array<(components.TextContentPartSchema & {
|
|
706
|
+
type: "text";
|
|
707
|
+
}) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema>;
|
|
708
|
+
/**
|
|
709
|
+
* Data about a previous audio response from the model.
|
|
710
|
+
*/
|
|
711
|
+
export type GetOnePromptMessagesAudio = {
|
|
712
|
+
/**
|
|
713
|
+
* Unique identifier for a previous audio response from the model.
|
|
714
|
+
*/
|
|
715
|
+
id: string;
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
719
|
+
*/
|
|
720
|
+
export declare const GetOnePromptMessagesType: {
|
|
721
|
+
readonly Function: "function";
|
|
722
|
+
};
|
|
723
|
+
/**
|
|
724
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
725
|
+
*/
|
|
726
|
+
export type GetOnePromptMessagesType = ClosedEnum<typeof GetOnePromptMessagesType>;
|
|
727
|
+
export type GetOnePromptMessagesFunction = {
|
|
728
|
+
/**
|
|
729
|
+
* The name of the function to call.
|
|
730
|
+
*/
|
|
731
|
+
name?: string | undefined;
|
|
732
|
+
/**
|
|
733
|
+
* 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.
|
|
734
|
+
*/
|
|
735
|
+
arguments?: string | undefined;
|
|
736
|
+
};
|
|
737
|
+
export type GetOnePromptMessagesToolCalls = {
|
|
738
|
+
/**
|
|
739
|
+
* The ID of the tool call.
|
|
740
|
+
*/
|
|
741
|
+
id: string;
|
|
742
|
+
/**
|
|
743
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
744
|
+
*/
|
|
745
|
+
type: GetOnePromptMessagesType;
|
|
746
|
+
function: GetOnePromptMessagesFunction;
|
|
747
|
+
/**
|
|
748
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
749
|
+
*/
|
|
750
|
+
thoughtSignature?: string | undefined;
|
|
751
|
+
};
|
|
752
|
+
export type GetOnePromptMessagesAssistantMessage = {
|
|
753
|
+
/**
|
|
754
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
755
|
+
*/
|
|
756
|
+
content?: string | Array<(components.TextContentPartSchema & {
|
|
757
|
+
type: "text";
|
|
758
|
+
}) | components.RefusalPartSchema | components.ReasoningPartSchema | components.RedactedReasoningPartSchema> | null | undefined;
|
|
759
|
+
/**
|
|
760
|
+
* The refusal message by the assistant.
|
|
761
|
+
*/
|
|
762
|
+
refusal?: string | null | undefined;
|
|
763
|
+
/**
|
|
764
|
+
* The role of the messages author, in this case `assistant`.
|
|
765
|
+
*/
|
|
766
|
+
role: "assistant";
|
|
767
|
+
/**
|
|
768
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
769
|
+
*/
|
|
770
|
+
name?: string | undefined;
|
|
771
|
+
/**
|
|
772
|
+
* Data about a previous audio response from the model.
|
|
773
|
+
*/
|
|
774
|
+
audio?: GetOnePromptMessagesAudio | null | undefined;
|
|
775
|
+
/**
|
|
776
|
+
* The tool calls generated by the model, such as function calls.
|
|
777
|
+
*/
|
|
778
|
+
toolCalls?: Array<GetOnePromptMessagesToolCalls> | undefined;
|
|
779
|
+
};
|
|
780
|
+
/**
|
|
781
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
782
|
+
*/
|
|
783
|
+
export declare const GetOnePrompt2PromptsResponse200ApplicationJSONType: {
|
|
784
|
+
readonly Ephemeral: "ephemeral";
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
788
|
+
*/
|
|
789
|
+
export type GetOnePrompt2PromptsResponse200ApplicationJSONType = ClosedEnum<typeof GetOnePrompt2PromptsResponse200ApplicationJSONType>;
|
|
790
|
+
/**
|
|
791
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
792
|
+
*
|
|
793
|
+
* @remarks
|
|
794
|
+
*
|
|
795
|
+
* - `5m`: 5 minutes
|
|
796
|
+
* - `1h`: 1 hour
|
|
797
|
+
*
|
|
798
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
799
|
+
*/
|
|
800
|
+
export declare const GetOnePrompt2Ttl: {
|
|
801
|
+
readonly Fivem: "5m";
|
|
802
|
+
readonly Oneh: "1h";
|
|
803
|
+
};
|
|
804
|
+
/**
|
|
805
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
806
|
+
*
|
|
807
|
+
* @remarks
|
|
808
|
+
*
|
|
809
|
+
* - `5m`: 5 minutes
|
|
810
|
+
* - `1h`: 1 hour
|
|
811
|
+
*
|
|
812
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
813
|
+
*/
|
|
814
|
+
export type GetOnePrompt2Ttl = ClosedEnum<typeof GetOnePrompt2Ttl>;
|
|
815
|
+
export type GetOnePrompt2CacheControl = {
|
|
816
|
+
/**
|
|
817
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
818
|
+
*/
|
|
819
|
+
type: GetOnePrompt2PromptsResponse200ApplicationJSONType;
|
|
820
|
+
/**
|
|
821
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
822
|
+
*
|
|
823
|
+
* @remarks
|
|
824
|
+
*
|
|
825
|
+
* - `5m`: 5 minutes
|
|
826
|
+
* - `1h`: 1 hour
|
|
827
|
+
*
|
|
828
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
829
|
+
*/
|
|
830
|
+
ttl?: GetOnePrompt2Ttl | undefined;
|
|
831
|
+
};
|
|
832
|
+
export type GetOnePrompt24 = {
|
|
833
|
+
/**
|
|
834
|
+
* The type of the content part. Always `file`.
|
|
835
|
+
*/
|
|
836
|
+
type: "file";
|
|
837
|
+
cacheControl?: GetOnePrompt2CacheControl | undefined;
|
|
838
|
+
/**
|
|
839
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
840
|
+
*/
|
|
841
|
+
file: components.FileContentPartSchema;
|
|
842
|
+
};
|
|
843
|
+
export type GetOnePromptContentPrompts2 = (components.TextContentPartSchema & {
|
|
844
|
+
type: "text";
|
|
845
|
+
}) | components.ImageContentPartSchema | components.AudioContentPartSchema | GetOnePrompt24;
|
|
846
|
+
/**
|
|
847
|
+
* The contents of the user message.
|
|
848
|
+
*/
|
|
849
|
+
export type GetOnePromptMessagesPromptsContent = string | Array<(components.TextContentPartSchema & {
|
|
850
|
+
type: "text";
|
|
851
|
+
}) | components.ImageContentPartSchema | components.AudioContentPartSchema | GetOnePrompt24>;
|
|
852
|
+
export type GetOnePromptMessagesUserMessage = {
|
|
853
|
+
/**
|
|
854
|
+
* The role of the messages author, in this case `user`.
|
|
855
|
+
*/
|
|
856
|
+
role: "user";
|
|
857
|
+
/**
|
|
858
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
859
|
+
*/
|
|
860
|
+
name?: string | undefined;
|
|
861
|
+
/**
|
|
862
|
+
* The contents of the user message.
|
|
863
|
+
*/
|
|
864
|
+
content: string | Array<(components.TextContentPartSchema & {
|
|
865
|
+
type: "text";
|
|
866
|
+
}) | components.ImageContentPartSchema | components.AudioContentPartSchema | GetOnePrompt24>;
|
|
867
|
+
};
|
|
868
|
+
/**
|
|
869
|
+
* The contents of the system message.
|
|
870
|
+
*/
|
|
871
|
+
export type GetOnePromptMessagesContent = string | Array<components.TextContentPartSchema>;
|
|
872
|
+
/**
|
|
873
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
874
|
+
*/
|
|
875
|
+
export type GetOnePromptMessagesSystemMessage = {
|
|
876
|
+
/**
|
|
877
|
+
* The role of the messages author, in this case `system`.
|
|
878
|
+
*/
|
|
879
|
+
role: "system";
|
|
880
|
+
/**
|
|
881
|
+
* The contents of the system message.
|
|
882
|
+
*/
|
|
883
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
884
|
+
/**
|
|
885
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
886
|
+
*/
|
|
887
|
+
name?: string | undefined;
|
|
888
|
+
};
|
|
889
|
+
export type GetOnePromptPromptsMessages = GetOnePromptMessagesSystemMessage | GetOnePromptMessagesUserMessage | GetOnePromptMessagesAssistantMessage | GetOnePromptMessagesToolMessage;
|
|
890
|
+
/**
|
|
891
|
+
* Prompt configuration with model and messages. Use this instead of prompt_config.
|
|
892
|
+
*/
|
|
893
|
+
export type GetOnePromptPromptField = {
|
|
894
|
+
/**
|
|
895
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
896
|
+
*/
|
|
897
|
+
audio?: GetOnePromptAudio | null | undefined;
|
|
898
|
+
/**
|
|
899
|
+
* 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.
|
|
900
|
+
*/
|
|
901
|
+
frequencyPenalty?: number | null | undefined;
|
|
902
|
+
/**
|
|
903
|
+
* `[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.
|
|
904
|
+
*
|
|
905
|
+
* @remarks
|
|
906
|
+
*
|
|
907
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
908
|
+
*/
|
|
909
|
+
maxTokens?: number | null | undefined;
|
|
910
|
+
/**
|
|
911
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
912
|
+
*/
|
|
913
|
+
maxCompletionTokens?: number | null | undefined;
|
|
914
|
+
/**
|
|
915
|
+
* 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.
|
|
916
|
+
*/
|
|
917
|
+
logprobs?: boolean | null | undefined;
|
|
918
|
+
/**
|
|
919
|
+
* 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.
|
|
920
|
+
*/
|
|
921
|
+
topLogprobs?: number | null | undefined;
|
|
922
|
+
/**
|
|
923
|
+
* 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.
|
|
924
|
+
*/
|
|
925
|
+
n?: number | null | undefined;
|
|
926
|
+
/**
|
|
927
|
+
* 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.
|
|
928
|
+
*/
|
|
929
|
+
presencePenalty?: number | null | undefined;
|
|
930
|
+
/**
|
|
931
|
+
* An object specifying the format that the model must output
|
|
932
|
+
*/
|
|
933
|
+
responseFormat?: GetOnePromptResponseFormatText | GetOnePromptResponseFormatJSONObject | GetOnePromptResponseFormatPromptsJSONSchema | undefined;
|
|
934
|
+
/**
|
|
935
|
+
* 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.
|
|
936
|
+
*
|
|
937
|
+
* @remarks
|
|
938
|
+
*
|
|
939
|
+
* - `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.
|
|
940
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
941
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
942
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
943
|
+
*
|
|
944
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
945
|
+
*/
|
|
946
|
+
reasoningEffort?: GetOnePromptReasoningEffort | undefined;
|
|
947
|
+
/**
|
|
948
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
949
|
+
*/
|
|
950
|
+
verbosity?: string | undefined;
|
|
951
|
+
/**
|
|
952
|
+
* 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.
|
|
953
|
+
*/
|
|
954
|
+
seed?: number | null | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
957
|
+
*/
|
|
958
|
+
stop?: string | Array<string> | null | undefined;
|
|
959
|
+
/**
|
|
960
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
961
|
+
*/
|
|
962
|
+
streamOptions?: GetOnePromptStreamOptions | null | undefined;
|
|
963
|
+
thinking?: components.ThinkingConfigDisabledSchema | components.ThinkingConfigEnabledSchema | undefined;
|
|
964
|
+
/**
|
|
965
|
+
* 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.
|
|
966
|
+
*/
|
|
967
|
+
temperature?: number | null | undefined;
|
|
968
|
+
/**
|
|
969
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
970
|
+
*/
|
|
971
|
+
topP?: number | null | undefined;
|
|
972
|
+
/**
|
|
973
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
974
|
+
*/
|
|
975
|
+
topK?: number | null | undefined;
|
|
976
|
+
/**
|
|
977
|
+
* Controls which (if any) tool is called by the model.
|
|
978
|
+
*/
|
|
979
|
+
toolChoice?: GetOnePromptToolChoice2 | GetOnePromptToolChoice1 | undefined;
|
|
980
|
+
/**
|
|
981
|
+
* Whether to enable parallel function calling during tool use.
|
|
982
|
+
*/
|
|
983
|
+
parallelToolCalls?: boolean | undefined;
|
|
984
|
+
/**
|
|
985
|
+
* 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"].
|
|
986
|
+
*/
|
|
987
|
+
modalities?: Array<GetOnePromptModalities> | null | undefined;
|
|
988
|
+
/**
|
|
989
|
+
* A list of guardrails to apply to the request.
|
|
990
|
+
*/
|
|
991
|
+
guardrails?: Array<GetOnePromptGuardrails> | undefined;
|
|
992
|
+
/**
|
|
993
|
+
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
994
|
+
*/
|
|
995
|
+
messages?: Array<GetOnePromptMessagesSystemMessage | GetOnePromptMessagesUserMessage | GetOnePromptMessagesAssistantMessage | GetOnePromptMessagesToolMessage> | undefined;
|
|
996
|
+
/**
|
|
997
|
+
* 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}`.
|
|
998
|
+
*/
|
|
999
|
+
model?: string | null | undefined;
|
|
1000
|
+
version?: string | undefined;
|
|
1001
|
+
};
|
|
419
1002
|
export declare const GetOnePromptUseCases: {
|
|
420
1003
|
readonly AgentsSimulations: "Agents simulations";
|
|
421
1004
|
readonly Agents: "Agents";
|
|
@@ -486,9 +1069,15 @@ export type GetOnePromptPrompt = {
|
|
|
486
1069
|
*/
|
|
487
1070
|
description?: string | null | undefined;
|
|
488
1071
|
/**
|
|
489
|
-
* A list of messages compatible with the openAI schema
|
|
1072
|
+
* [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
|
|
1073
|
+
*
|
|
1074
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
1075
|
+
*/
|
|
1076
|
+
promptConfig?: GetOnePromptPromptConfig | undefined;
|
|
1077
|
+
/**
|
|
1078
|
+
* Prompt configuration with model and messages. Use this instead of prompt_config.
|
|
490
1079
|
*/
|
|
491
|
-
|
|
1080
|
+
prompt: GetOnePromptPromptField;
|
|
492
1081
|
metadata?: GetOnePromptMetadata | undefined;
|
|
493
1082
|
};
|
|
494
1083
|
/** @internal */
|
|
@@ -526,9 +1115,9 @@ export declare const GetOnePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
|
526
1115
|
/** @internal */
|
|
527
1116
|
export declare const GetOnePromptResponseFormat4$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormat4>;
|
|
528
1117
|
/** @internal */
|
|
529
|
-
export declare const
|
|
1118
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
530
1119
|
/** @internal */
|
|
531
|
-
export declare const
|
|
1120
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
532
1121
|
/** @internal */
|
|
533
1122
|
export declare const GetOnePromptResponseFormat3$inboundSchema: z.ZodType<GetOnePromptResponseFormat3, z.ZodTypeDef, unknown>;
|
|
534
1123
|
/** @internal */
|
|
@@ -540,9 +1129,9 @@ export declare const GetOnePromptResponseFormat3$outboundSchema: z.ZodType<GetOn
|
|
|
540
1129
|
export declare function getOnePromptResponseFormat3ToJSON(getOnePromptResponseFormat3: GetOnePromptResponseFormat3): string;
|
|
541
1130
|
export declare function getOnePromptResponseFormat3FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat3, SDKValidationError>;
|
|
542
1131
|
/** @internal */
|
|
543
|
-
export declare const
|
|
1132
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
544
1133
|
/** @internal */
|
|
545
|
-
export declare const
|
|
1134
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
546
1135
|
/** @internal */
|
|
547
1136
|
export declare const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<GetOnePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
548
1137
|
/** @internal */
|
|
@@ -554,13 +1143,13 @@ export declare const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<GetOn
|
|
|
554
1143
|
export declare function getOnePromptResponseFormat2ToJSON(getOnePromptResponseFormat2: GetOnePromptResponseFormat2): string;
|
|
555
1144
|
export declare function getOnePromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError>;
|
|
556
1145
|
/** @internal */
|
|
557
|
-
export declare const
|
|
1146
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponse200Type>;
|
|
558
1147
|
/** @internal */
|
|
559
|
-
export declare const
|
|
1148
|
+
export declare const GetOnePromptResponseFormatPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponse200Type>;
|
|
560
1149
|
/** @internal */
|
|
561
|
-
export declare const
|
|
1150
|
+
export declare const GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema: z.ZodType<GetOnePromptResponseFormatPromptsResponseJsonSchema, z.ZodTypeDef, unknown>;
|
|
562
1151
|
/** @internal */
|
|
563
|
-
export type
|
|
1152
|
+
export type GetOnePromptResponseFormatPromptsResponseJsonSchema$Outbound = {
|
|
564
1153
|
name: string;
|
|
565
1154
|
description?: string | undefined;
|
|
566
1155
|
strict?: boolean | undefined;
|
|
@@ -569,29 +1158,29 @@ export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
|
569
1158
|
};
|
|
570
1159
|
};
|
|
571
1160
|
/** @internal */
|
|
572
|
-
export declare const
|
|
573
|
-
export declare function
|
|
574
|
-
export declare function
|
|
1161
|
+
export declare const GetOnePromptResponseFormatPromptsResponseJsonSchema$outboundSchema: z.ZodType<GetOnePromptResponseFormatPromptsResponseJsonSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatPromptsResponseJsonSchema>;
|
|
1162
|
+
export declare function getOnePromptResponseFormatPromptsResponseJsonSchemaToJSON(getOnePromptResponseFormatPromptsResponseJsonSchema: GetOnePromptResponseFormatPromptsResponseJsonSchema): string;
|
|
1163
|
+
export declare function getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatPromptsResponseJsonSchema, SDKValidationError>;
|
|
575
1164
|
/** @internal */
|
|
576
1165
|
export declare const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<GetOnePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
577
1166
|
/** @internal */
|
|
578
1167
|
export type GetOnePromptResponseFormat1$Outbound = {
|
|
579
1168
|
type: string;
|
|
580
1169
|
display_name?: string | undefined;
|
|
581
|
-
json_schema:
|
|
1170
|
+
json_schema: GetOnePromptResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
582
1171
|
};
|
|
583
1172
|
/** @internal */
|
|
584
1173
|
export declare const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<GetOnePromptResponseFormat1$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat1>;
|
|
585
1174
|
export declare function getOnePromptResponseFormat1ToJSON(getOnePromptResponseFormat1: GetOnePromptResponseFormat1): string;
|
|
586
1175
|
export declare function getOnePromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat1, SDKValidationError>;
|
|
587
1176
|
/** @internal */
|
|
588
|
-
export declare const
|
|
1177
|
+
export declare const GetOnePromptPromptsResponseFormat$inboundSchema: z.ZodType<GetOnePromptPromptsResponseFormat, z.ZodTypeDef, unknown>;
|
|
589
1178
|
/** @internal */
|
|
590
|
-
export type
|
|
1179
|
+
export type GetOnePromptPromptsResponseFormat$Outbound = GetOnePromptResponseFormat1$Outbound | GetOnePromptResponseFormat2$Outbound | GetOnePromptResponseFormat3$Outbound | string | string | string;
|
|
591
1180
|
/** @internal */
|
|
592
|
-
export declare const
|
|
593
|
-
export declare function
|
|
594
|
-
export declare function
|
|
1181
|
+
export declare const GetOnePromptPromptsResponseFormat$outboundSchema: z.ZodType<GetOnePromptPromptsResponseFormat$Outbound, z.ZodTypeDef, GetOnePromptPromptsResponseFormat>;
|
|
1182
|
+
export declare function getOnePromptPromptsResponseFormatToJSON(getOnePromptPromptsResponseFormat: GetOnePromptPromptsResponseFormat): string;
|
|
1183
|
+
export declare function getOnePromptPromptsResponseFormatFromJSON(jsonString: string): SafeParseResult<GetOnePromptPromptsResponseFormat, SDKValidationError>;
|
|
595
1184
|
/** @internal */
|
|
596
1185
|
export declare const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPhotoRealVersion>;
|
|
597
1186
|
/** @internal */
|
|
@@ -601,9 +1190,9 @@ export declare const GetOnePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<t
|
|
|
601
1190
|
/** @internal */
|
|
602
1191
|
export declare const GetOnePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptEncodingFormat>;
|
|
603
1192
|
/** @internal */
|
|
604
|
-
export declare const
|
|
1193
|
+
export declare const GetOnePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsReasoningEffort>;
|
|
605
1194
|
/** @internal */
|
|
606
|
-
export declare const
|
|
1195
|
+
export declare const GetOnePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsReasoningEffort>;
|
|
607
1196
|
/** @internal */
|
|
608
1197
|
export declare const GetOnePromptVerbosity$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptVerbosity>;
|
|
609
1198
|
/** @internal */
|
|
@@ -768,11 +1357,11 @@ export declare const GetOnePromptPromptConfig$inboundSchema: z.ZodType<GetOnePro
|
|
|
768
1357
|
/** @internal */
|
|
769
1358
|
export type GetOnePromptPromptConfig$Outbound = {
|
|
770
1359
|
stream?: boolean | undefined;
|
|
771
|
-
model?: string | undefined;
|
|
1360
|
+
model?: string | null | undefined;
|
|
772
1361
|
model_db_id?: string | null | undefined;
|
|
773
1362
|
model_type?: string | null | undefined;
|
|
774
1363
|
model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
|
|
775
|
-
provider?: string | undefined;
|
|
1364
|
+
provider?: string | null | undefined;
|
|
776
1365
|
integration_id?: string | null | undefined;
|
|
777
1366
|
version?: string | undefined;
|
|
778
1367
|
messages: Array<GetOnePromptMessages$Outbound>;
|
|
@@ -782,6 +1371,425 @@ export declare const GetOnePromptPromptConfig$outboundSchema: z.ZodType<GetOnePr
|
|
|
782
1371
|
export declare function getOnePromptPromptConfigToJSON(getOnePromptPromptConfig: GetOnePromptPromptConfig): string;
|
|
783
1372
|
export declare function getOnePromptPromptConfigFromJSON(jsonString: string): SafeParseResult<GetOnePromptPromptConfig, SDKValidationError>;
|
|
784
1373
|
/** @internal */
|
|
1374
|
+
export declare const GetOnePromptVoice$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptVoice>;
|
|
1375
|
+
/** @internal */
|
|
1376
|
+
export declare const GetOnePromptVoice$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptVoice>;
|
|
1377
|
+
/** @internal */
|
|
1378
|
+
export declare const GetOnePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsFormat>;
|
|
1379
|
+
/** @internal */
|
|
1380
|
+
export declare const GetOnePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsFormat>;
|
|
1381
|
+
/** @internal */
|
|
1382
|
+
export declare const GetOnePromptAudio$inboundSchema: z.ZodType<GetOnePromptAudio, z.ZodTypeDef, unknown>;
|
|
1383
|
+
/** @internal */
|
|
1384
|
+
export type GetOnePromptAudio$Outbound = {
|
|
1385
|
+
voice: string;
|
|
1386
|
+
format: string;
|
|
1387
|
+
};
|
|
1388
|
+
/** @internal */
|
|
1389
|
+
export declare const GetOnePromptAudio$outboundSchema: z.ZodType<GetOnePromptAudio$Outbound, z.ZodTypeDef, GetOnePromptAudio>;
|
|
1390
|
+
export declare function getOnePromptAudioToJSON(getOnePromptAudio: GetOnePromptAudio): string;
|
|
1391
|
+
export declare function getOnePromptAudioFromJSON(jsonString: string): SafeParseResult<GetOnePromptAudio, SDKValidationError>;
|
|
1392
|
+
/** @internal */
|
|
1393
|
+
export declare const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1394
|
+
/** @internal */
|
|
1395
|
+
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
1396
|
+
description?: string | undefined;
|
|
1397
|
+
name: string;
|
|
1398
|
+
schema?: any | undefined;
|
|
1399
|
+
strict: boolean;
|
|
1400
|
+
};
|
|
1401
|
+
/** @internal */
|
|
1402
|
+
export declare const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatJsonSchema>;
|
|
1403
|
+
export declare function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema): string;
|
|
1404
|
+
export declare function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1405
|
+
/** @internal */
|
|
1406
|
+
export declare const GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema: z.ZodType<GetOnePromptResponseFormatPromptsJSONSchema, z.ZodTypeDef, unknown>;
|
|
1407
|
+
/** @internal */
|
|
1408
|
+
export type GetOnePromptResponseFormatPromptsJSONSchema$Outbound = {
|
|
1409
|
+
type: "json_schema";
|
|
1410
|
+
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
1411
|
+
};
|
|
1412
|
+
/** @internal */
|
|
1413
|
+
export declare const GetOnePromptResponseFormatPromptsJSONSchema$outboundSchema: z.ZodType<GetOnePromptResponseFormatPromptsJSONSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatPromptsJSONSchema>;
|
|
1414
|
+
export declare function getOnePromptResponseFormatPromptsJSONSchemaToJSON(getOnePromptResponseFormatPromptsJSONSchema: GetOnePromptResponseFormatPromptsJSONSchema): string;
|
|
1415
|
+
export declare function getOnePromptResponseFormatPromptsJSONSchemaFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatPromptsJSONSchema, SDKValidationError>;
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export declare const GetOnePromptResponseFormatJSONObject$inboundSchema: z.ZodType<GetOnePromptResponseFormatJSONObject, z.ZodTypeDef, unknown>;
|
|
1418
|
+
/** @internal */
|
|
1419
|
+
export type GetOnePromptResponseFormatJSONObject$Outbound = {
|
|
1420
|
+
type: "json_object";
|
|
1421
|
+
};
|
|
1422
|
+
/** @internal */
|
|
1423
|
+
export declare const GetOnePromptResponseFormatJSONObject$outboundSchema: z.ZodType<GetOnePromptResponseFormatJSONObject$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatJSONObject>;
|
|
1424
|
+
export declare function getOnePromptResponseFormatJSONObjectToJSON(getOnePromptResponseFormatJSONObject: GetOnePromptResponseFormatJSONObject): string;
|
|
1425
|
+
export declare function getOnePromptResponseFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatJSONObject, SDKValidationError>;
|
|
1426
|
+
/** @internal */
|
|
1427
|
+
export declare const GetOnePromptResponseFormatText$inboundSchema: z.ZodType<GetOnePromptResponseFormatText, z.ZodTypeDef, unknown>;
|
|
1428
|
+
/** @internal */
|
|
1429
|
+
export type GetOnePromptResponseFormatText$Outbound = {
|
|
1430
|
+
type: "text";
|
|
1431
|
+
};
|
|
1432
|
+
/** @internal */
|
|
1433
|
+
export declare const GetOnePromptResponseFormatText$outboundSchema: z.ZodType<GetOnePromptResponseFormatText$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatText>;
|
|
1434
|
+
export declare function getOnePromptResponseFormatTextToJSON(getOnePromptResponseFormatText: GetOnePromptResponseFormatText): string;
|
|
1435
|
+
export declare function getOnePromptResponseFormatTextFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatText, SDKValidationError>;
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export declare const GetOnePromptResponseFormat$inboundSchema: z.ZodType<GetOnePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1438
|
+
/** @internal */
|
|
1439
|
+
export type GetOnePromptResponseFormat$Outbound = GetOnePromptResponseFormatText$Outbound | GetOnePromptResponseFormatJSONObject$Outbound | GetOnePromptResponseFormatPromptsJSONSchema$Outbound;
|
|
1440
|
+
/** @internal */
|
|
1441
|
+
export declare const GetOnePromptResponseFormat$outboundSchema: z.ZodType<GetOnePromptResponseFormat$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat>;
|
|
1442
|
+
export declare function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat: GetOnePromptResponseFormat): string;
|
|
1443
|
+
export declare function getOnePromptResponseFormatFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat, SDKValidationError>;
|
|
1444
|
+
/** @internal */
|
|
1445
|
+
export declare const GetOnePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptReasoningEffort>;
|
|
1446
|
+
/** @internal */
|
|
1447
|
+
export declare const GetOnePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptReasoningEffort>;
|
|
1448
|
+
/** @internal */
|
|
1449
|
+
export declare const GetOnePromptStop$inboundSchema: z.ZodType<GetOnePromptStop, z.ZodTypeDef, unknown>;
|
|
1450
|
+
/** @internal */
|
|
1451
|
+
export type GetOnePromptStop$Outbound = string | Array<string>;
|
|
1452
|
+
/** @internal */
|
|
1453
|
+
export declare const GetOnePromptStop$outboundSchema: z.ZodType<GetOnePromptStop$Outbound, z.ZodTypeDef, GetOnePromptStop>;
|
|
1454
|
+
export declare function getOnePromptStopToJSON(getOnePromptStop: GetOnePromptStop): string;
|
|
1455
|
+
export declare function getOnePromptStopFromJSON(jsonString: string): SafeParseResult<GetOnePromptStop, SDKValidationError>;
|
|
1456
|
+
/** @internal */
|
|
1457
|
+
export declare const GetOnePromptStreamOptions$inboundSchema: z.ZodType<GetOnePromptStreamOptions, z.ZodTypeDef, unknown>;
|
|
1458
|
+
/** @internal */
|
|
1459
|
+
export type GetOnePromptStreamOptions$Outbound = {
|
|
1460
|
+
include_usage?: boolean | undefined;
|
|
1461
|
+
};
|
|
1462
|
+
/** @internal */
|
|
1463
|
+
export declare const GetOnePromptStreamOptions$outboundSchema: z.ZodType<GetOnePromptStreamOptions$Outbound, z.ZodTypeDef, GetOnePromptStreamOptions>;
|
|
1464
|
+
export declare function getOnePromptStreamOptionsToJSON(getOnePromptStreamOptions: GetOnePromptStreamOptions): string;
|
|
1465
|
+
export declare function getOnePromptStreamOptionsFromJSON(jsonString: string): SafeParseResult<GetOnePromptStreamOptions, SDKValidationError>;
|
|
1466
|
+
/** @internal */
|
|
1467
|
+
export declare const GetOnePromptThinking$inboundSchema: z.ZodType<GetOnePromptThinking, z.ZodTypeDef, unknown>;
|
|
1468
|
+
/** @internal */
|
|
1469
|
+
export type GetOnePromptThinking$Outbound = components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound;
|
|
1470
|
+
/** @internal */
|
|
1471
|
+
export declare const GetOnePromptThinking$outboundSchema: z.ZodType<GetOnePromptThinking$Outbound, z.ZodTypeDef, GetOnePromptThinking>;
|
|
1472
|
+
export declare function getOnePromptThinkingToJSON(getOnePromptThinking: GetOnePromptThinking): string;
|
|
1473
|
+
export declare function getOnePromptThinkingFromJSON(jsonString: string): SafeParseResult<GetOnePromptThinking, SDKValidationError>;
|
|
1474
|
+
/** @internal */
|
|
1475
|
+
export declare const GetOnePromptToolChoiceType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptToolChoiceType>;
|
|
1476
|
+
/** @internal */
|
|
1477
|
+
export declare const GetOnePromptToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptToolChoiceType>;
|
|
1478
|
+
/** @internal */
|
|
1479
|
+
export declare const GetOnePromptToolChoiceFunction$inboundSchema: z.ZodType<GetOnePromptToolChoiceFunction, z.ZodTypeDef, unknown>;
|
|
1480
|
+
/** @internal */
|
|
1481
|
+
export type GetOnePromptToolChoiceFunction$Outbound = {
|
|
1482
|
+
name: string;
|
|
1483
|
+
};
|
|
1484
|
+
/** @internal */
|
|
1485
|
+
export declare const GetOnePromptToolChoiceFunction$outboundSchema: z.ZodType<GetOnePromptToolChoiceFunction$Outbound, z.ZodTypeDef, GetOnePromptToolChoiceFunction>;
|
|
1486
|
+
export declare function getOnePromptToolChoiceFunctionToJSON(getOnePromptToolChoiceFunction: GetOnePromptToolChoiceFunction): string;
|
|
1487
|
+
export declare function getOnePromptToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<GetOnePromptToolChoiceFunction, SDKValidationError>;
|
|
1488
|
+
/** @internal */
|
|
1489
|
+
export declare const GetOnePromptToolChoice2$inboundSchema: z.ZodType<GetOnePromptToolChoice2, z.ZodTypeDef, unknown>;
|
|
1490
|
+
/** @internal */
|
|
1491
|
+
export type GetOnePromptToolChoice2$Outbound = {
|
|
1492
|
+
type?: string | undefined;
|
|
1493
|
+
function: GetOnePromptToolChoiceFunction$Outbound;
|
|
1494
|
+
};
|
|
1495
|
+
/** @internal */
|
|
1496
|
+
export declare const GetOnePromptToolChoice2$outboundSchema: z.ZodType<GetOnePromptToolChoice2$Outbound, z.ZodTypeDef, GetOnePromptToolChoice2>;
|
|
1497
|
+
export declare function getOnePromptToolChoice2ToJSON(getOnePromptToolChoice2: GetOnePromptToolChoice2): string;
|
|
1498
|
+
export declare function getOnePromptToolChoice2FromJSON(jsonString: string): SafeParseResult<GetOnePromptToolChoice2, SDKValidationError>;
|
|
1499
|
+
/** @internal */
|
|
1500
|
+
export declare const GetOnePromptToolChoice1$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptToolChoice1>;
|
|
1501
|
+
/** @internal */
|
|
1502
|
+
export declare const GetOnePromptToolChoice1$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptToolChoice1>;
|
|
1503
|
+
/** @internal */
|
|
1504
|
+
export declare const GetOnePromptToolChoice$inboundSchema: z.ZodType<GetOnePromptToolChoice, z.ZodTypeDef, unknown>;
|
|
1505
|
+
/** @internal */
|
|
1506
|
+
export type GetOnePromptToolChoice$Outbound = GetOnePromptToolChoice2$Outbound | string;
|
|
1507
|
+
/** @internal */
|
|
1508
|
+
export declare const GetOnePromptToolChoice$outboundSchema: z.ZodType<GetOnePromptToolChoice$Outbound, z.ZodTypeDef, GetOnePromptToolChoice>;
|
|
1509
|
+
export declare function getOnePromptToolChoiceToJSON(getOnePromptToolChoice: GetOnePromptToolChoice): string;
|
|
1510
|
+
export declare function getOnePromptToolChoiceFromJSON(jsonString: string): SafeParseResult<GetOnePromptToolChoice, SDKValidationError>;
|
|
1511
|
+
/** @internal */
|
|
1512
|
+
export declare const GetOnePromptModalities$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptModalities>;
|
|
1513
|
+
/** @internal */
|
|
1514
|
+
export declare const GetOnePromptModalities$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptModalities>;
|
|
1515
|
+
/** @internal */
|
|
1516
|
+
export declare const GetOnePromptId1$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptId1>;
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export declare const GetOnePromptId1$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptId1>;
|
|
1519
|
+
/** @internal */
|
|
1520
|
+
export declare const GetOnePromptId$inboundSchema: z.ZodType<GetOnePromptId, z.ZodTypeDef, unknown>;
|
|
1521
|
+
/** @internal */
|
|
1522
|
+
export type GetOnePromptId$Outbound = string | string;
|
|
1523
|
+
/** @internal */
|
|
1524
|
+
export declare const GetOnePromptId$outboundSchema: z.ZodType<GetOnePromptId$Outbound, z.ZodTypeDef, GetOnePromptId>;
|
|
1525
|
+
export declare function getOnePromptIdToJSON(getOnePromptId: GetOnePromptId): string;
|
|
1526
|
+
export declare function getOnePromptIdFromJSON(jsonString: string): SafeParseResult<GetOnePromptId, SDKValidationError>;
|
|
1527
|
+
/** @internal */
|
|
1528
|
+
export declare const GetOnePromptExecuteOn$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptExecuteOn>;
|
|
1529
|
+
/** @internal */
|
|
1530
|
+
export declare const GetOnePromptExecuteOn$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptExecuteOn>;
|
|
1531
|
+
/** @internal */
|
|
1532
|
+
export declare const GetOnePromptGuardrails$inboundSchema: z.ZodType<GetOnePromptGuardrails, z.ZodTypeDef, unknown>;
|
|
1533
|
+
/** @internal */
|
|
1534
|
+
export type GetOnePromptGuardrails$Outbound = {
|
|
1535
|
+
id: string | string;
|
|
1536
|
+
execute_on: string;
|
|
1537
|
+
};
|
|
1538
|
+
/** @internal */
|
|
1539
|
+
export declare const GetOnePromptGuardrails$outboundSchema: z.ZodType<GetOnePromptGuardrails$Outbound, z.ZodTypeDef, GetOnePromptGuardrails>;
|
|
1540
|
+
export declare function getOnePromptGuardrailsToJSON(getOnePromptGuardrails: GetOnePromptGuardrails): string;
|
|
1541
|
+
export declare function getOnePromptGuardrailsFromJSON(jsonString: string): SafeParseResult<GetOnePromptGuardrails, SDKValidationError>;
|
|
1542
|
+
/** @internal */
|
|
1543
|
+
export declare const GetOnePromptContentPromptsResponse2002$inboundSchema: z.ZodType<GetOnePromptContentPromptsResponse2002, z.ZodTypeDef, unknown>;
|
|
1544
|
+
/** @internal */
|
|
1545
|
+
export type GetOnePromptContentPromptsResponse2002$Outbound = components.TextContentPartSchema$Outbound;
|
|
1546
|
+
/** @internal */
|
|
1547
|
+
export declare const GetOnePromptContentPromptsResponse2002$outboundSchema: z.ZodType<GetOnePromptContentPromptsResponse2002$Outbound, z.ZodTypeDef, GetOnePromptContentPromptsResponse2002>;
|
|
1548
|
+
export declare function getOnePromptContentPromptsResponse2002ToJSON(getOnePromptContentPromptsResponse2002: GetOnePromptContentPromptsResponse2002): string;
|
|
1549
|
+
export declare function getOnePromptContentPromptsResponse2002FromJSON(jsonString: string): SafeParseResult<GetOnePromptContentPromptsResponse2002, SDKValidationError>;
|
|
1550
|
+
/** @internal */
|
|
1551
|
+
export declare const GetOnePromptMessagesPromptsResponse200Content$inboundSchema: z.ZodType<GetOnePromptMessagesPromptsResponse200Content, z.ZodTypeDef, unknown>;
|
|
1552
|
+
/** @internal */
|
|
1553
|
+
export type GetOnePromptMessagesPromptsResponse200Content$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
|
|
1554
|
+
/** @internal */
|
|
1555
|
+
export declare const GetOnePromptMessagesPromptsResponse200Content$outboundSchema: z.ZodType<GetOnePromptMessagesPromptsResponse200Content$Outbound, z.ZodTypeDef, GetOnePromptMessagesPromptsResponse200Content>;
|
|
1556
|
+
export declare function getOnePromptMessagesPromptsResponse200ContentToJSON(getOnePromptMessagesPromptsResponse200Content: GetOnePromptMessagesPromptsResponse200Content): string;
|
|
1557
|
+
export declare function getOnePromptMessagesPromptsResponse200ContentFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesPromptsResponse200Content, SDKValidationError>;
|
|
1558
|
+
/** @internal */
|
|
1559
|
+
export declare const GetOnePromptMessagesPromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptMessagesPromptsType>;
|
|
1560
|
+
/** @internal */
|
|
1561
|
+
export declare const GetOnePromptMessagesPromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptMessagesPromptsType>;
|
|
1562
|
+
/** @internal */
|
|
1563
|
+
export declare const GetOnePromptMessagesTtl$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptMessagesTtl>;
|
|
1564
|
+
/** @internal */
|
|
1565
|
+
export declare const GetOnePromptMessagesTtl$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptMessagesTtl>;
|
|
1566
|
+
/** @internal */
|
|
1567
|
+
export declare const GetOnePromptMessagesCacheControl$inboundSchema: z.ZodType<GetOnePromptMessagesCacheControl, z.ZodTypeDef, unknown>;
|
|
1568
|
+
/** @internal */
|
|
1569
|
+
export type GetOnePromptMessagesCacheControl$Outbound = {
|
|
1570
|
+
type: string;
|
|
1571
|
+
ttl: string;
|
|
1572
|
+
};
|
|
1573
|
+
/** @internal */
|
|
1574
|
+
export declare const GetOnePromptMessagesCacheControl$outboundSchema: z.ZodType<GetOnePromptMessagesCacheControl$Outbound, z.ZodTypeDef, GetOnePromptMessagesCacheControl>;
|
|
1575
|
+
export declare function getOnePromptMessagesCacheControlToJSON(getOnePromptMessagesCacheControl: GetOnePromptMessagesCacheControl): string;
|
|
1576
|
+
export declare function getOnePromptMessagesCacheControlFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesCacheControl, SDKValidationError>;
|
|
1577
|
+
/** @internal */
|
|
1578
|
+
export declare const GetOnePromptMessagesToolMessage$inboundSchema: z.ZodType<GetOnePromptMessagesToolMessage, z.ZodTypeDef, unknown>;
|
|
1579
|
+
/** @internal */
|
|
1580
|
+
export type GetOnePromptMessagesToolMessage$Outbound = {
|
|
1581
|
+
role: "tool";
|
|
1582
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1583
|
+
tool_call_id: string | null;
|
|
1584
|
+
cache_control?: GetOnePromptMessagesCacheControl$Outbound | undefined;
|
|
1585
|
+
};
|
|
1586
|
+
/** @internal */
|
|
1587
|
+
export declare const GetOnePromptMessagesToolMessage$outboundSchema: z.ZodType<GetOnePromptMessagesToolMessage$Outbound, z.ZodTypeDef, GetOnePromptMessagesToolMessage>;
|
|
1588
|
+
export declare function getOnePromptMessagesToolMessageToJSON(getOnePromptMessagesToolMessage: GetOnePromptMessagesToolMessage): string;
|
|
1589
|
+
export declare function getOnePromptMessagesToolMessageFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesToolMessage, SDKValidationError>;
|
|
1590
|
+
/** @internal */
|
|
1591
|
+
export declare const GetOnePromptContentPromptsResponse2$inboundSchema: z.ZodType<GetOnePromptContentPromptsResponse2, z.ZodTypeDef, unknown>;
|
|
1592
|
+
/** @internal */
|
|
1593
|
+
export type GetOnePromptContentPromptsResponse2$Outbound = (components.TextContentPartSchema$Outbound & {
|
|
1594
|
+
type: "text";
|
|
1595
|
+
}) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound;
|
|
1596
|
+
/** @internal */
|
|
1597
|
+
export declare const GetOnePromptContentPromptsResponse2$outboundSchema: z.ZodType<GetOnePromptContentPromptsResponse2$Outbound, z.ZodTypeDef, GetOnePromptContentPromptsResponse2>;
|
|
1598
|
+
export declare function getOnePromptContentPromptsResponse2ToJSON(getOnePromptContentPromptsResponse2: GetOnePromptContentPromptsResponse2): string;
|
|
1599
|
+
export declare function getOnePromptContentPromptsResponse2FromJSON(jsonString: string): SafeParseResult<GetOnePromptContentPromptsResponse2, SDKValidationError>;
|
|
1600
|
+
/** @internal */
|
|
1601
|
+
export declare const GetOnePromptMessagesPromptsResponseContent$inboundSchema: z.ZodType<GetOnePromptMessagesPromptsResponseContent, z.ZodTypeDef, unknown>;
|
|
1602
|
+
/** @internal */
|
|
1603
|
+
export type GetOnePromptMessagesPromptsResponseContent$Outbound = string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1604
|
+
type: "text";
|
|
1605
|
+
}) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound>;
|
|
1606
|
+
/** @internal */
|
|
1607
|
+
export declare const GetOnePromptMessagesPromptsResponseContent$outboundSchema: z.ZodType<GetOnePromptMessagesPromptsResponseContent$Outbound, z.ZodTypeDef, GetOnePromptMessagesPromptsResponseContent>;
|
|
1608
|
+
export declare function getOnePromptMessagesPromptsResponseContentToJSON(getOnePromptMessagesPromptsResponseContent: GetOnePromptMessagesPromptsResponseContent): string;
|
|
1609
|
+
export declare function getOnePromptMessagesPromptsResponseContentFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesPromptsResponseContent, SDKValidationError>;
|
|
1610
|
+
/** @internal */
|
|
1611
|
+
export declare const GetOnePromptMessagesAudio$inboundSchema: z.ZodType<GetOnePromptMessagesAudio, z.ZodTypeDef, unknown>;
|
|
1612
|
+
/** @internal */
|
|
1613
|
+
export type GetOnePromptMessagesAudio$Outbound = {
|
|
1614
|
+
id: string;
|
|
1615
|
+
};
|
|
1616
|
+
/** @internal */
|
|
1617
|
+
export declare const GetOnePromptMessagesAudio$outboundSchema: z.ZodType<GetOnePromptMessagesAudio$Outbound, z.ZodTypeDef, GetOnePromptMessagesAudio>;
|
|
1618
|
+
export declare function getOnePromptMessagesAudioToJSON(getOnePromptMessagesAudio: GetOnePromptMessagesAudio): string;
|
|
1619
|
+
export declare function getOnePromptMessagesAudioFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesAudio, SDKValidationError>;
|
|
1620
|
+
/** @internal */
|
|
1621
|
+
export declare const GetOnePromptMessagesType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptMessagesType>;
|
|
1622
|
+
/** @internal */
|
|
1623
|
+
export declare const GetOnePromptMessagesType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptMessagesType>;
|
|
1624
|
+
/** @internal */
|
|
1625
|
+
export declare const GetOnePromptMessagesFunction$inboundSchema: z.ZodType<GetOnePromptMessagesFunction, z.ZodTypeDef, unknown>;
|
|
1626
|
+
/** @internal */
|
|
1627
|
+
export type GetOnePromptMessagesFunction$Outbound = {
|
|
1628
|
+
name?: string | undefined;
|
|
1629
|
+
arguments?: string | undefined;
|
|
1630
|
+
};
|
|
1631
|
+
/** @internal */
|
|
1632
|
+
export declare const GetOnePromptMessagesFunction$outboundSchema: z.ZodType<GetOnePromptMessagesFunction$Outbound, z.ZodTypeDef, GetOnePromptMessagesFunction>;
|
|
1633
|
+
export declare function getOnePromptMessagesFunctionToJSON(getOnePromptMessagesFunction: GetOnePromptMessagesFunction): string;
|
|
1634
|
+
export declare function getOnePromptMessagesFunctionFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesFunction, SDKValidationError>;
|
|
1635
|
+
/** @internal */
|
|
1636
|
+
export declare const GetOnePromptMessagesToolCalls$inboundSchema: z.ZodType<GetOnePromptMessagesToolCalls, z.ZodTypeDef, unknown>;
|
|
1637
|
+
/** @internal */
|
|
1638
|
+
export type GetOnePromptMessagesToolCalls$Outbound = {
|
|
1639
|
+
id: string;
|
|
1640
|
+
type: string;
|
|
1641
|
+
function: GetOnePromptMessagesFunction$Outbound;
|
|
1642
|
+
thought_signature?: string | undefined;
|
|
1643
|
+
};
|
|
1644
|
+
/** @internal */
|
|
1645
|
+
export declare const GetOnePromptMessagesToolCalls$outboundSchema: z.ZodType<GetOnePromptMessagesToolCalls$Outbound, z.ZodTypeDef, GetOnePromptMessagesToolCalls>;
|
|
1646
|
+
export declare function getOnePromptMessagesToolCallsToJSON(getOnePromptMessagesToolCalls: GetOnePromptMessagesToolCalls): string;
|
|
1647
|
+
export declare function getOnePromptMessagesToolCallsFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesToolCalls, SDKValidationError>;
|
|
1648
|
+
/** @internal */
|
|
1649
|
+
export declare const GetOnePromptMessagesAssistantMessage$inboundSchema: z.ZodType<GetOnePromptMessagesAssistantMessage, z.ZodTypeDef, unknown>;
|
|
1650
|
+
/** @internal */
|
|
1651
|
+
export type GetOnePromptMessagesAssistantMessage$Outbound = {
|
|
1652
|
+
content?: string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1653
|
+
type: "text";
|
|
1654
|
+
}) | components.RefusalPartSchema$Outbound | components.ReasoningPartSchema$Outbound | components.RedactedReasoningPartSchema$Outbound> | null | undefined;
|
|
1655
|
+
refusal?: string | null | undefined;
|
|
1656
|
+
role: "assistant";
|
|
1657
|
+
name?: string | undefined;
|
|
1658
|
+
audio?: GetOnePromptMessagesAudio$Outbound | null | undefined;
|
|
1659
|
+
tool_calls?: Array<GetOnePromptMessagesToolCalls$Outbound> | undefined;
|
|
1660
|
+
};
|
|
1661
|
+
/** @internal */
|
|
1662
|
+
export declare const GetOnePromptMessagesAssistantMessage$outboundSchema: z.ZodType<GetOnePromptMessagesAssistantMessage$Outbound, z.ZodTypeDef, GetOnePromptMessagesAssistantMessage>;
|
|
1663
|
+
export declare function getOnePromptMessagesAssistantMessageToJSON(getOnePromptMessagesAssistantMessage: GetOnePromptMessagesAssistantMessage): string;
|
|
1664
|
+
export declare function getOnePromptMessagesAssistantMessageFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesAssistantMessage, SDKValidationError>;
|
|
1665
|
+
/** @internal */
|
|
1666
|
+
export declare const GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2PromptsResponse200ApplicationJSONType>;
|
|
1667
|
+
/** @internal */
|
|
1668
|
+
export declare const GetOnePrompt2PromptsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2PromptsResponse200ApplicationJSONType>;
|
|
1669
|
+
/** @internal */
|
|
1670
|
+
export declare const GetOnePrompt2Ttl$inboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2Ttl>;
|
|
1671
|
+
/** @internal */
|
|
1672
|
+
export declare const GetOnePrompt2Ttl$outboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2Ttl>;
|
|
1673
|
+
/** @internal */
|
|
1674
|
+
export declare const GetOnePrompt2CacheControl$inboundSchema: z.ZodType<GetOnePrompt2CacheControl, z.ZodTypeDef, unknown>;
|
|
1675
|
+
/** @internal */
|
|
1676
|
+
export type GetOnePrompt2CacheControl$Outbound = {
|
|
1677
|
+
type: string;
|
|
1678
|
+
ttl: string;
|
|
1679
|
+
};
|
|
1680
|
+
/** @internal */
|
|
1681
|
+
export declare const GetOnePrompt2CacheControl$outboundSchema: z.ZodType<GetOnePrompt2CacheControl$Outbound, z.ZodTypeDef, GetOnePrompt2CacheControl>;
|
|
1682
|
+
export declare function getOnePrompt2CacheControlToJSON(getOnePrompt2CacheControl: GetOnePrompt2CacheControl): string;
|
|
1683
|
+
export declare function getOnePrompt2CacheControlFromJSON(jsonString: string): SafeParseResult<GetOnePrompt2CacheControl, SDKValidationError>;
|
|
1684
|
+
/** @internal */
|
|
1685
|
+
export declare const GetOnePrompt24$inboundSchema: z.ZodType<GetOnePrompt24, z.ZodTypeDef, unknown>;
|
|
1686
|
+
/** @internal */
|
|
1687
|
+
export type GetOnePrompt24$Outbound = {
|
|
1688
|
+
type: "file";
|
|
1689
|
+
cache_control?: GetOnePrompt2CacheControl$Outbound | undefined;
|
|
1690
|
+
file: components.FileContentPartSchema$Outbound;
|
|
1691
|
+
};
|
|
1692
|
+
/** @internal */
|
|
1693
|
+
export declare const GetOnePrompt24$outboundSchema: z.ZodType<GetOnePrompt24$Outbound, z.ZodTypeDef, GetOnePrompt24>;
|
|
1694
|
+
export declare function getOnePrompt24ToJSON(getOnePrompt24: GetOnePrompt24): string;
|
|
1695
|
+
export declare function getOnePrompt24FromJSON(jsonString: string): SafeParseResult<GetOnePrompt24, SDKValidationError>;
|
|
1696
|
+
/** @internal */
|
|
1697
|
+
export declare const GetOnePromptContentPrompts2$inboundSchema: z.ZodType<GetOnePromptContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1698
|
+
/** @internal */
|
|
1699
|
+
export type GetOnePromptContentPrompts2$Outbound = (components.TextContentPartSchema$Outbound & {
|
|
1700
|
+
type: "text";
|
|
1701
|
+
}) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | GetOnePrompt24$Outbound;
|
|
1702
|
+
/** @internal */
|
|
1703
|
+
export declare const GetOnePromptContentPrompts2$outboundSchema: z.ZodType<GetOnePromptContentPrompts2$Outbound, z.ZodTypeDef, GetOnePromptContentPrompts2>;
|
|
1704
|
+
export declare function getOnePromptContentPrompts2ToJSON(getOnePromptContentPrompts2: GetOnePromptContentPrompts2): string;
|
|
1705
|
+
export declare function getOnePromptContentPrompts2FromJSON(jsonString: string): SafeParseResult<GetOnePromptContentPrompts2, SDKValidationError>;
|
|
1706
|
+
/** @internal */
|
|
1707
|
+
export declare const GetOnePromptMessagesPromptsContent$inboundSchema: z.ZodType<GetOnePromptMessagesPromptsContent, z.ZodTypeDef, unknown>;
|
|
1708
|
+
/** @internal */
|
|
1709
|
+
export type GetOnePromptMessagesPromptsContent$Outbound = string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1710
|
+
type: "text";
|
|
1711
|
+
}) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | GetOnePrompt24$Outbound>;
|
|
1712
|
+
/** @internal */
|
|
1713
|
+
export declare const GetOnePromptMessagesPromptsContent$outboundSchema: z.ZodType<GetOnePromptMessagesPromptsContent$Outbound, z.ZodTypeDef, GetOnePromptMessagesPromptsContent>;
|
|
1714
|
+
export declare function getOnePromptMessagesPromptsContentToJSON(getOnePromptMessagesPromptsContent: GetOnePromptMessagesPromptsContent): string;
|
|
1715
|
+
export declare function getOnePromptMessagesPromptsContentFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesPromptsContent, SDKValidationError>;
|
|
1716
|
+
/** @internal */
|
|
1717
|
+
export declare const GetOnePromptMessagesUserMessage$inboundSchema: z.ZodType<GetOnePromptMessagesUserMessage, z.ZodTypeDef, unknown>;
|
|
1718
|
+
/** @internal */
|
|
1719
|
+
export type GetOnePromptMessagesUserMessage$Outbound = {
|
|
1720
|
+
role: "user";
|
|
1721
|
+
name?: string | undefined;
|
|
1722
|
+
content: string | Array<(components.TextContentPartSchema$Outbound & {
|
|
1723
|
+
type: "text";
|
|
1724
|
+
}) | components.ImageContentPartSchema$Outbound | components.AudioContentPartSchema$Outbound | GetOnePrompt24$Outbound>;
|
|
1725
|
+
};
|
|
1726
|
+
/** @internal */
|
|
1727
|
+
export declare const GetOnePromptMessagesUserMessage$outboundSchema: z.ZodType<GetOnePromptMessagesUserMessage$Outbound, z.ZodTypeDef, GetOnePromptMessagesUserMessage>;
|
|
1728
|
+
export declare function getOnePromptMessagesUserMessageToJSON(getOnePromptMessagesUserMessage: GetOnePromptMessagesUserMessage): string;
|
|
1729
|
+
export declare function getOnePromptMessagesUserMessageFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesUserMessage, SDKValidationError>;
|
|
1730
|
+
/** @internal */
|
|
1731
|
+
export declare const GetOnePromptMessagesContent$inboundSchema: z.ZodType<GetOnePromptMessagesContent, z.ZodTypeDef, unknown>;
|
|
1732
|
+
/** @internal */
|
|
1733
|
+
export type GetOnePromptMessagesContent$Outbound = string | Array<components.TextContentPartSchema$Outbound>;
|
|
1734
|
+
/** @internal */
|
|
1735
|
+
export declare const GetOnePromptMessagesContent$outboundSchema: z.ZodType<GetOnePromptMessagesContent$Outbound, z.ZodTypeDef, GetOnePromptMessagesContent>;
|
|
1736
|
+
export declare function getOnePromptMessagesContentToJSON(getOnePromptMessagesContent: GetOnePromptMessagesContent): string;
|
|
1737
|
+
export declare function getOnePromptMessagesContentFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesContent, SDKValidationError>;
|
|
1738
|
+
/** @internal */
|
|
1739
|
+
export declare const GetOnePromptMessagesSystemMessage$inboundSchema: z.ZodType<GetOnePromptMessagesSystemMessage, z.ZodTypeDef, unknown>;
|
|
1740
|
+
/** @internal */
|
|
1741
|
+
export type GetOnePromptMessagesSystemMessage$Outbound = {
|
|
1742
|
+
role: "system";
|
|
1743
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1744
|
+
name?: string | undefined;
|
|
1745
|
+
};
|
|
1746
|
+
/** @internal */
|
|
1747
|
+
export declare const GetOnePromptMessagesSystemMessage$outboundSchema: z.ZodType<GetOnePromptMessagesSystemMessage$Outbound, z.ZodTypeDef, GetOnePromptMessagesSystemMessage>;
|
|
1748
|
+
export declare function getOnePromptMessagesSystemMessageToJSON(getOnePromptMessagesSystemMessage: GetOnePromptMessagesSystemMessage): string;
|
|
1749
|
+
export declare function getOnePromptMessagesSystemMessageFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessagesSystemMessage, SDKValidationError>;
|
|
1750
|
+
/** @internal */
|
|
1751
|
+
export declare const GetOnePromptPromptsMessages$inboundSchema: z.ZodType<GetOnePromptPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1752
|
+
/** @internal */
|
|
1753
|
+
export type GetOnePromptPromptsMessages$Outbound = GetOnePromptMessagesSystemMessage$Outbound | GetOnePromptMessagesUserMessage$Outbound | GetOnePromptMessagesAssistantMessage$Outbound | GetOnePromptMessagesToolMessage$Outbound;
|
|
1754
|
+
/** @internal */
|
|
1755
|
+
export declare const GetOnePromptPromptsMessages$outboundSchema: z.ZodType<GetOnePromptPromptsMessages$Outbound, z.ZodTypeDef, GetOnePromptPromptsMessages>;
|
|
1756
|
+
export declare function getOnePromptPromptsMessagesToJSON(getOnePromptPromptsMessages: GetOnePromptPromptsMessages): string;
|
|
1757
|
+
export declare function getOnePromptPromptsMessagesFromJSON(jsonString: string): SafeParseResult<GetOnePromptPromptsMessages, SDKValidationError>;
|
|
1758
|
+
/** @internal */
|
|
1759
|
+
export declare const GetOnePromptPromptField$inboundSchema: z.ZodType<GetOnePromptPromptField, z.ZodTypeDef, unknown>;
|
|
1760
|
+
/** @internal */
|
|
1761
|
+
export type GetOnePromptPromptField$Outbound = {
|
|
1762
|
+
audio?: GetOnePromptAudio$Outbound | null | undefined;
|
|
1763
|
+
frequency_penalty?: number | null | undefined;
|
|
1764
|
+
max_tokens?: number | null | undefined;
|
|
1765
|
+
max_completion_tokens?: number | null | undefined;
|
|
1766
|
+
logprobs?: boolean | null | undefined;
|
|
1767
|
+
top_logprobs?: number | null | undefined;
|
|
1768
|
+
n?: number | null | undefined;
|
|
1769
|
+
presence_penalty?: number | null | undefined;
|
|
1770
|
+
response_format?: GetOnePromptResponseFormatText$Outbound | GetOnePromptResponseFormatJSONObject$Outbound | GetOnePromptResponseFormatPromptsJSONSchema$Outbound | undefined;
|
|
1771
|
+
reasoning_effort?: string | undefined;
|
|
1772
|
+
verbosity?: string | undefined;
|
|
1773
|
+
seed?: number | null | undefined;
|
|
1774
|
+
stop?: string | Array<string> | null | undefined;
|
|
1775
|
+
stream_options?: GetOnePromptStreamOptions$Outbound | null | undefined;
|
|
1776
|
+
thinking?: components.ThinkingConfigDisabledSchema$Outbound | components.ThinkingConfigEnabledSchema$Outbound | undefined;
|
|
1777
|
+
temperature?: number | null | undefined;
|
|
1778
|
+
top_p?: number | null | undefined;
|
|
1779
|
+
top_k?: number | null | undefined;
|
|
1780
|
+
tool_choice?: GetOnePromptToolChoice2$Outbound | string | undefined;
|
|
1781
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1782
|
+
modalities?: Array<string> | null | undefined;
|
|
1783
|
+
guardrails?: Array<GetOnePromptGuardrails$Outbound> | undefined;
|
|
1784
|
+
messages?: Array<GetOnePromptMessagesSystemMessage$Outbound | GetOnePromptMessagesUserMessage$Outbound | GetOnePromptMessagesAssistantMessage$Outbound | GetOnePromptMessagesToolMessage$Outbound> | undefined;
|
|
1785
|
+
model?: string | null | undefined;
|
|
1786
|
+
version?: string | undefined;
|
|
1787
|
+
};
|
|
1788
|
+
/** @internal */
|
|
1789
|
+
export declare const GetOnePromptPromptField$outboundSchema: z.ZodType<GetOnePromptPromptField$Outbound, z.ZodTypeDef, GetOnePromptPromptField>;
|
|
1790
|
+
export declare function getOnePromptPromptFieldToJSON(getOnePromptPromptField: GetOnePromptPromptField): string;
|
|
1791
|
+
export declare function getOnePromptPromptFieldFromJSON(jsonString: string): SafeParseResult<GetOnePromptPromptField, SDKValidationError>;
|
|
1792
|
+
/** @internal */
|
|
785
1793
|
export declare const GetOnePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptUseCases>;
|
|
786
1794
|
/** @internal */
|
|
787
1795
|
export declare const GetOnePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptUseCases>;
|
|
@@ -814,7 +1822,8 @@ export type GetOnePromptPrompt$Outbound = {
|
|
|
814
1822
|
updated_by_id?: string | null | undefined;
|
|
815
1823
|
display_name: string;
|
|
816
1824
|
description?: string | null | undefined;
|
|
817
|
-
prompt_config
|
|
1825
|
+
prompt_config?: GetOnePromptPromptConfig$Outbound | undefined;
|
|
1826
|
+
prompt: GetOnePromptPromptField$Outbound;
|
|
818
1827
|
metadata?: GetOnePromptMetadata$Outbound | undefined;
|
|
819
1828
|
};
|
|
820
1829
|
/** @internal */
|