@orq-ai/node 4.5.0-rc.24 → 4.5.0-rc.26

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.
Files changed (123) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/createagentresponse.d.ts +5 -0
  5. package/models/components/createagentresponse.d.ts.map +1 -1
  6. package/models/components/createagentresponse.js +2 -0
  7. package/models/components/createagentresponse.js.map +1 -1
  8. package/models/components/index.d.ts +1 -0
  9. package/models/components/index.d.ts.map +1 -1
  10. package/models/components/index.js +1 -0
  11. package/models/components/index.js.map +1 -1
  12. package/models/components/partdoneevent.js +1 -1
  13. package/models/components/reasoningpart.js +1 -1
  14. package/models/components/responsedoneevent.d.ts +5 -0
  15. package/models/components/responsedoneevent.d.ts.map +1 -1
  16. package/models/components/responsedoneevent.js +2 -0
  17. package/models/components/responsedoneevent.js.map +1 -1
  18. package/models/components/responsestartedevent.d.ts +5 -0
  19. package/models/components/responsestartedevent.d.ts.map +1 -1
  20. package/models/components/responsestartedevent.js +2 -0
  21. package/models/components/responsestartedevent.js.map +1 -1
  22. package/models/components/telemetry.d.ts +20 -0
  23. package/models/components/telemetry.d.ts.map +1 -0
  24. package/models/components/telemetry.js +57 -0
  25. package/models/components/telemetry.js.map +1 -0
  26. package/models/operations/createagentrequest.d.ts +16 -460
  27. package/models/operations/createagentrequest.d.ts.map +1 -1
  28. package/models/operations/createagentrequest.js +21 -299
  29. package/models/operations/createagentrequest.js.map +1 -1
  30. package/models/operations/createcontact.js +1 -1
  31. package/models/operations/createdataset.js +1 -1
  32. package/models/operations/createdatasetitem.js +4 -4
  33. package/models/operations/createdatasource.js +1 -1
  34. package/models/operations/createeval.js +16 -16
  35. package/models/operations/createidentity.js +1 -1
  36. package/models/operations/createprompt.d.ts +30 -30
  37. package/models/operations/createprompt.d.ts.map +1 -1
  38. package/models/operations/createprompt.js +31 -29
  39. package/models/operations/createprompt.js.map +1 -1
  40. package/models/operations/createtool.js +6 -6
  41. package/models/operations/fileget.js +1 -1
  42. package/models/operations/filelist.js +1 -1
  43. package/models/operations/fileupload.js +1 -1
  44. package/models/operations/getalltools.js +6 -6
  45. package/models/operations/getevals.js +16 -16
  46. package/models/operations/listagents.d.ts +0 -202
  47. package/models/operations/listagents.d.ts.map +1 -1
  48. package/models/operations/listagents.js +2 -139
  49. package/models/operations/listagents.js.map +1 -1
  50. package/models/operations/listdatasetdatapoints.js +4 -4
  51. package/models/operations/listdatasets.js +1 -1
  52. package/models/operations/listdatasources.js +1 -1
  53. package/models/operations/listidentities.js +1 -1
  54. package/models/operations/retrieveagentrequest.d.ts +0 -202
  55. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  56. package/models/operations/retrieveagentrequest.js +2 -140
  57. package/models/operations/retrieveagentrequest.js.map +1 -1
  58. package/models/operations/retrievedatapoint.js +4 -4
  59. package/models/operations/retrievedataset.js +1 -1
  60. package/models/operations/retrievedatasource.js +1 -1
  61. package/models/operations/retrieveidentity.js +1 -1
  62. package/models/operations/retrievetool.js +6 -6
  63. package/models/operations/runagent.d.ts +12 -254
  64. package/models/operations/runagent.d.ts.map +1 -1
  65. package/models/operations/runagent.js +16 -153
  66. package/models/operations/runagent.js.map +1 -1
  67. package/models/operations/streamrunagent.d.ts +12 -254
  68. package/models/operations/streamrunagent.d.ts.map +1 -1
  69. package/models/operations/streamrunagent.js +15 -152
  70. package/models/operations/streamrunagent.js.map +1 -1
  71. package/models/operations/updateagent.d.ts +16 -460
  72. package/models/operations/updateagent.d.ts.map +1 -1
  73. package/models/operations/updateagent.js +21 -298
  74. package/models/operations/updateagent.js.map +1 -1
  75. package/models/operations/updatedatapoint.js +4 -4
  76. package/models/operations/updatedataset.js +1 -1
  77. package/models/operations/updatedatasource.js +1 -1
  78. package/models/operations/updateeval.js +16 -16
  79. package/models/operations/updateidentity.js +1 -1
  80. package/models/operations/updatetool.js +7 -7
  81. package/package.json +1 -1
  82. package/src/lib/config.ts +2 -2
  83. package/src/models/components/createagentresponse.ts +6 -0
  84. package/src/models/components/index.ts +1 -0
  85. package/src/models/components/partdoneevent.ts +1 -1
  86. package/src/models/components/reasoningpart.ts +1 -1
  87. package/src/models/components/responsedoneevent.ts +6 -0
  88. package/src/models/components/responsestartedevent.ts +6 -0
  89. package/src/models/components/telemetry.ts +48 -0
  90. package/src/models/operations/createagentrequest.ts +49 -860
  91. package/src/models/operations/createcontact.ts +1 -1
  92. package/src/models/operations/createdataset.ts +1 -1
  93. package/src/models/operations/createdatasetitem.ts +4 -4
  94. package/src/models/operations/createdatasource.ts +1 -1
  95. package/src/models/operations/createeval.ts +16 -16
  96. package/src/models/operations/createidentity.ts +1 -1
  97. package/src/models/operations/createprompt.ts +55 -66
  98. package/src/models/operations/createtool.ts +6 -6
  99. package/src/models/operations/fileget.ts +1 -1
  100. package/src/models/operations/filelist.ts +1 -1
  101. package/src/models/operations/fileupload.ts +1 -1
  102. package/src/models/operations/getalltools.ts +6 -6
  103. package/src/models/operations/getevals.ts +16 -16
  104. package/src/models/operations/listagents.ts +0 -393
  105. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  106. package/src/models/operations/listdatasets.ts +1 -1
  107. package/src/models/operations/listdatasources.ts +1 -1
  108. package/src/models/operations/listidentities.ts +1 -1
  109. package/src/models/operations/retrieveagentrequest.ts +0 -402
  110. package/src/models/operations/retrievedatapoint.ts +4 -4
  111. package/src/models/operations/retrievedataset.ts +1 -1
  112. package/src/models/operations/retrievedatasource.ts +1 -1
  113. package/src/models/operations/retrieveidentity.ts +1 -1
  114. package/src/models/operations/retrievetool.ts +6 -6
  115. package/src/models/operations/runagent.ts +35 -473
  116. package/src/models/operations/streamrunagent.ts +35 -492
  117. package/src/models/operations/updateagent.ts +36 -874
  118. package/src/models/operations/updatedatapoint.ts +4 -4
  119. package/src/models/operations/updatedataset.ts +1 -1
  120. package/src/models/operations/updatedatasource.ts +1 -1
  121. package/src/models/operations/updateeval.ts +16 -16
  122. package/src/models/operations/updateidentity.ts +1 -1
  123. package/src/models/operations/updatetool.ts +7 -7
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1270
1270
  ),
1271
1271
  reviewed_by_id: z.string(),
1272
1272
  reviewed_at: z.string().datetime({ offset: true }).default(
1273
- "2026-03-04T05:31:59.882Z",
1273
+ "2026-03-04T12:47:51.680Z",
1274
1274
  ).transform(v => new Date(v)),
1275
1275
  type: z.literal("string_array"),
1276
1276
  values: z.array(z.string()),
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1320
1320
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
1321
1321
  reviewed_by_id: z.string(),
1322
1322
  reviewed_at: z.string().datetime({ offset: true }).default(
1323
- "2026-03-04T05:31:59.882Z",
1323
+ "2026-03-04T12:47:51.679Z",
1324
1324
  ).transform(v => new Date(v)),
1325
1325
  type: z.literal("number"),
1326
1326
  value: z.number(),
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
1369
1369
  .default("orq"),
1370
1370
  reviewed_by_id: z.string(),
1371
1371
  reviewed_at: z.string().datetime({ offset: true }).default(
1372
- "2026-03-04T05:31:59.881Z",
1372
+ "2026-03-04T12:47:51.679Z",
1373
1373
  ).transform(v => new Date(v)),
1374
1374
  type: z.literal("string"),
1375
1375
  value: z.string(),
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
1448
1448
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1449
1449
  .optional(),
1450
1450
  updated: z.string().datetime({ offset: true }).default(
1451
- "2026-03-04T05:31:45.405Z",
1451
+ "2026-03-04T12:47:35.808Z",
1452
1452
  ).transform(v => new Date(v)),
1453
1453
  }).transform((v) => {
1454
1454
  return remap$(v, {
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
156
156
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
157
157
  .optional(),
158
158
  updated: z.string().datetime({ offset: true }).default(
159
- "2026-03-04T05:31:45.405Z",
159
+ "2026-03-04T12:47:35.808Z",
160
160
  ).transform(v => new Date(v)),
161
161
  }).transform((v) => {
162
162
  return remap$(v, {
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
176
176
  z.ZodTypeDef,
177
177
  unknown
178
178
  > = z.object({
179
- _id: z.string().default("01KJVN9RXH3XMMK50W07S7D8HB"),
179
+ _id: z.string().default("01KJWE7VSE8E12Y2JRHWM5NEFB"),
180
180
  display_name: z.string(),
181
181
  description: z.string().optional(),
182
182
  status: ListDatasourcesStatus$inboundSchema,
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
227
227
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
228
228
  .optional(),
229
229
  updated: z.string().datetime({ offset: true }).default(
230
- "2026-03-04T05:31:45.405Z",
230
+ "2026-03-04T12:47:35.808Z",
231
231
  ).transform(v => new Date(v)),
232
232
  metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
233
233
  }).transform((v) => {
@@ -176,55 +176,6 @@ export type RetrieveAgentRequestSettings = {
176
176
  guardrails?: Array<RetrieveAgentRequestGuardrails> | undefined;
177
177
  };
178
178
 
179
- /**
180
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
181
- */
182
- export const RetrieveAgentRequestVoice = {
183
- Alloy: "alloy",
184
- Echo: "echo",
185
- Fable: "fable",
186
- Onyx: "onyx",
187
- Nova: "nova",
188
- Shimmer: "shimmer",
189
- } as const;
190
- /**
191
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
192
- */
193
- export type RetrieveAgentRequestVoice = ClosedEnum<
194
- typeof RetrieveAgentRequestVoice
195
- >;
196
-
197
- /**
198
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
199
- */
200
- export const RetrieveAgentRequestFormat = {
201
- Wav: "wav",
202
- Mp3: "mp3",
203
- Flac: "flac",
204
- Opus: "opus",
205
- Pcm16: "pcm16",
206
- } as const;
207
- /**
208
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
209
- */
210
- export type RetrieveAgentRequestFormat = ClosedEnum<
211
- typeof RetrieveAgentRequestFormat
212
- >;
213
-
214
- /**
215
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
216
- */
217
- export type RetrieveAgentRequestAudio = {
218
- /**
219
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
220
- */
221
- voice: RetrieveAgentRequestVoice;
222
- /**
223
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
224
- */
225
- format: RetrieveAgentRequestFormat;
226
- };
227
-
228
179
  export type RetrieveAgentRequestResponseFormatJsonSchema = {
229
180
  /**
230
181
  * A description of what the response format is for, used by the model to determine how to respond in the format.
@@ -321,16 +272,6 @@ export type RetrieveAgentRequestReasoningEffort = ClosedEnum<
321
272
  */
322
273
  export type RetrieveAgentRequestStop = string | Array<string>;
323
274
 
324
- /**
325
- * Options for streaming response. Only set this when you set stream: true.
326
- */
327
- export type RetrieveAgentRequestStreamOptions = {
328
- /**
329
- * 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.
330
- */
331
- includeUsage?: boolean | undefined;
332
- };
333
-
334
275
  export type RetrieveAgentRequestThinking =
335
276
  | components.ThinkingConfigDisabledSchema
336
277
  | components.ThinkingConfigEnabledSchema;
@@ -433,20 +374,6 @@ export type RetrieveAgentRequestFallbacks = {
433
374
  model: string;
434
375
  };
435
376
 
436
- /**
437
- * Retry configuration for the request
438
- */
439
- export type RetrieveAgentRequestAgentsRetry = {
440
- /**
441
- * Number of retry attempts (1-5)
442
- */
443
- count: number;
444
- /**
445
- * HTTP status codes that trigger retry logic
446
- */
447
- onCodes?: Array<number> | undefined;
448
- };
449
-
450
377
  export const RetrieveAgentRequestType = {
451
378
  ExactMatch: "exact_match",
452
379
  } as const;
@@ -512,10 +439,6 @@ export type RetrieveAgentRequestParameters = {
512
439
  * The name to display on the trace. If not specified, the default system name will be used.
513
440
  */
514
441
  name?: string | undefined;
515
- /**
516
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
517
- */
518
- audio?: RetrieveAgentRequestAudio | null | undefined;
519
442
  /**
520
443
  * 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.
521
444
  */
@@ -532,18 +455,6 @@ export type RetrieveAgentRequestParameters = {
532
455
  * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
533
456
  */
534
457
  maxCompletionTokens?: number | null | undefined;
535
- /**
536
- * 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.
537
- */
538
- logprobs?: boolean | null | undefined;
539
- /**
540
- * 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.
541
- */
542
- topLogprobs?: number | null | undefined;
543
- /**
544
- * 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.
545
- */
546
- n?: number | null | undefined;
547
458
  /**
548
459
  * 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.
549
460
  */
@@ -581,10 +492,6 @@ export type RetrieveAgentRequestParameters = {
581
492
  * Up to 4 sequences where the API will stop generating further tokens.
582
493
  */
583
494
  stop?: string | Array<string> | null | undefined;
584
- /**
585
- * Options for streaming response. Only set this when you set stream: true.
586
- */
587
- streamOptions?: RetrieveAgentRequestStreamOptions | null | undefined;
588
495
  thinking?:
589
496
  | components.ThinkingConfigDisabledSchema
590
497
  | components.ThinkingConfigEnabledSchema
@@ -624,10 +531,6 @@ export type RetrieveAgentRequestParameters = {
624
531
  * Array of fallback models to use if primary model fails
625
532
  */
626
533
  fallbacks?: Array<RetrieveAgentRequestFallbacks> | undefined;
627
- /**
628
- * Retry configuration for the request
629
- */
630
- retry?: RetrieveAgentRequestAgentsRetry | undefined;
631
534
  /**
632
535
  * Cache configuration for the request.
633
536
  */
@@ -656,55 +559,6 @@ export type RetrieveAgentRequestRetry = {
656
559
  onCodes?: Array<number> | undefined;
657
560
  };
658
561
 
659
- /**
660
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
661
- */
662
- export const RetrieveAgentRequestFallbackModelConfigurationVoice = {
663
- Alloy: "alloy",
664
- Echo: "echo",
665
- Fable: "fable",
666
- Onyx: "onyx",
667
- Nova: "nova",
668
- Shimmer: "shimmer",
669
- } as const;
670
- /**
671
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
672
- */
673
- export type RetrieveAgentRequestFallbackModelConfigurationVoice = ClosedEnum<
674
- typeof RetrieveAgentRequestFallbackModelConfigurationVoice
675
- >;
676
-
677
- /**
678
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
679
- */
680
- export const RetrieveAgentRequestFallbackModelConfigurationFormat = {
681
- Wav: "wav",
682
- Mp3: "mp3",
683
- Flac: "flac",
684
- Opus: "opus",
685
- Pcm16: "pcm16",
686
- } as const;
687
- /**
688
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
689
- */
690
- export type RetrieveAgentRequestFallbackModelConfigurationFormat = ClosedEnum<
691
- typeof RetrieveAgentRequestFallbackModelConfigurationFormat
692
- >;
693
-
694
- /**
695
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
696
- */
697
- export type RetrieveAgentRequestFallbackModelConfigurationAudio = {
698
- /**
699
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
700
- */
701
- voice: RetrieveAgentRequestFallbackModelConfigurationVoice;
702
- /**
703
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
704
- */
705
- format: RetrieveAgentRequestFallbackModelConfigurationFormat;
706
- };
707
-
708
562
  export type RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema = {
709
563
  /**
710
564
  * A description of what the response format is for, used by the model to determine how to respond in the format.
@@ -804,16 +658,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationStop =
804
658
  | string
805
659
  | Array<string>;
806
660
 
807
- /**
808
- * Options for streaming response. Only set this when you set stream: true.
809
- */
810
- export type RetrieveAgentRequestFallbackModelConfigurationStreamOptions = {
811
- /**
812
- * 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.
813
- */
814
- includeUsage?: boolean | undefined;
815
- };
816
-
817
661
  export type RetrieveAgentRequestFallbackModelConfigurationThinking =
818
662
  | components.ThinkingConfigDisabledSchema
819
663
  | components.ThinkingConfigEnabledSchema;
@@ -916,20 +760,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationFallbacks = {
916
760
  model: string;
917
761
  };
918
762
 
919
- /**
920
- * Retry configuration for the request
921
- */
922
- export type RetrieveAgentRequestFallbackModelConfigurationAgentsRetry = {
923
- /**
924
- * Number of retry attempts (1-5)
925
- */
926
- count: number;
927
- /**
928
- * HTTP status codes that trigger retry logic
929
- */
930
- onCodes?: Array<number> | undefined;
931
- };
932
-
933
763
  export const RetrieveAgentRequestFallbackModelConfigurationType = {
934
764
  ExactMatch: "exact_match",
935
765
  } as const;
@@ -995,13 +825,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
995
825
  * The name to display on the trace. If not specified, the default system name will be used.
996
826
  */
997
827
  name?: string | undefined;
998
- /**
999
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
1000
- */
1001
- audio?:
1002
- | RetrieveAgentRequestFallbackModelConfigurationAudio
1003
- | null
1004
- | undefined;
1005
828
  /**
1006
829
  * 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.
1007
830
  */
@@ -1018,18 +841,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
1018
841
  * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1019
842
  */
1020
843
  maxCompletionTokens?: number | null | undefined;
1021
- /**
1022
- * 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.
1023
- */
1024
- logprobs?: boolean | null | undefined;
1025
- /**
1026
- * 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.
1027
- */
1028
- topLogprobs?: number | null | undefined;
1029
- /**
1030
- * 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.
1031
- */
1032
- n?: number | null | undefined;
1033
844
  /**
1034
845
  * 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.
1035
846
  */
@@ -1069,13 +880,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
1069
880
  * Up to 4 sequences where the API will stop generating further tokens.
1070
881
  */
1071
882
  stop?: string | Array<string> | null | undefined;
1072
- /**
1073
- * Options for streaming response. Only set this when you set stream: true.
1074
- */
1075
- streamOptions?:
1076
- | RetrieveAgentRequestFallbackModelConfigurationStreamOptions
1077
- | null
1078
- | undefined;
1079
883
  thinking?:
1080
884
  | components.ThinkingConfigDisabledSchema
1081
885
  | components.ThinkingConfigEnabledSchema
@@ -1122,10 +926,6 @@ export type RetrieveAgentRequestFallbackModelConfigurationParameters = {
1122
926
  fallbacks?:
1123
927
  | Array<RetrieveAgentRequestFallbackModelConfigurationFallbacks>
1124
928
  | undefined;
1125
- /**
1126
- * Retry configuration for the request
1127
- */
1128
- retry?: RetrieveAgentRequestFallbackModelConfigurationAgentsRetry | undefined;
1129
929
  /**
1130
930
  * Cache configuration for the request.
1131
931
  */
@@ -1490,36 +1290,6 @@ export function retrieveAgentRequestSettingsFromJSON(
1490
1290
  );
1491
1291
  }
1492
1292
 
1493
- /** @internal */
1494
- export const RetrieveAgentRequestVoice$inboundSchema: z.ZodNativeEnum<
1495
- typeof RetrieveAgentRequestVoice
1496
- > = z.nativeEnum(RetrieveAgentRequestVoice);
1497
-
1498
- /** @internal */
1499
- export const RetrieveAgentRequestFormat$inboundSchema: z.ZodNativeEnum<
1500
- typeof RetrieveAgentRequestFormat
1501
- > = z.nativeEnum(RetrieveAgentRequestFormat);
1502
-
1503
- /** @internal */
1504
- export const RetrieveAgentRequestAudio$inboundSchema: z.ZodType<
1505
- RetrieveAgentRequestAudio,
1506
- z.ZodTypeDef,
1507
- unknown
1508
- > = z.object({
1509
- voice: RetrieveAgentRequestVoice$inboundSchema,
1510
- format: RetrieveAgentRequestFormat$inboundSchema,
1511
- });
1512
-
1513
- export function retrieveAgentRequestAudioFromJSON(
1514
- jsonString: string,
1515
- ): SafeParseResult<RetrieveAgentRequestAudio, SDKValidationError> {
1516
- return safeParse(
1517
- jsonString,
1518
- (x) => RetrieveAgentRequestAudio$inboundSchema.parse(JSON.parse(x)),
1519
- `Failed to parse 'RetrieveAgentRequestAudio' from JSON`,
1520
- );
1521
- }
1522
-
1523
1293
  /** @internal */
1524
1294
  export const RetrieveAgentRequestResponseFormatJsonSchema$inboundSchema:
1525
1295
  z.ZodType<
@@ -1674,29 +1444,6 @@ export function retrieveAgentRequestStopFromJSON(
1674
1444
  );
1675
1445
  }
1676
1446
 
1677
- /** @internal */
1678
- export const RetrieveAgentRequestStreamOptions$inboundSchema: z.ZodType<
1679
- RetrieveAgentRequestStreamOptions,
1680
- z.ZodTypeDef,
1681
- unknown
1682
- > = z.object({
1683
- include_usage: z.boolean().optional(),
1684
- }).transform((v) => {
1685
- return remap$(v, {
1686
- "include_usage": "includeUsage",
1687
- });
1688
- });
1689
-
1690
- export function retrieveAgentRequestStreamOptionsFromJSON(
1691
- jsonString: string,
1692
- ): SafeParseResult<RetrieveAgentRequestStreamOptions, SDKValidationError> {
1693
- return safeParse(
1694
- jsonString,
1695
- (x) => RetrieveAgentRequestStreamOptions$inboundSchema.parse(JSON.parse(x)),
1696
- `Failed to parse 'RetrieveAgentRequestStreamOptions' from JSON`,
1697
- );
1698
- }
1699
-
1700
1447
  /** @internal */
1701
1448
  export const RetrieveAgentRequestThinking$inboundSchema: z.ZodType<
1702
1449
  RetrieveAgentRequestThinking,
@@ -1863,30 +1610,6 @@ export function retrieveAgentRequestFallbacksFromJSON(
1863
1610
  );
1864
1611
  }
1865
1612
 
1866
- /** @internal */
1867
- export const RetrieveAgentRequestAgentsRetry$inboundSchema: z.ZodType<
1868
- RetrieveAgentRequestAgentsRetry,
1869
- z.ZodTypeDef,
1870
- unknown
1871
- > = z.object({
1872
- count: z.number().default(3),
1873
- on_codes: z.array(z.number()).optional(),
1874
- }).transform((v) => {
1875
- return remap$(v, {
1876
- "on_codes": "onCodes",
1877
- });
1878
- });
1879
-
1880
- export function retrieveAgentRequestAgentsRetryFromJSON(
1881
- jsonString: string,
1882
- ): SafeParseResult<RetrieveAgentRequestAgentsRetry, SDKValidationError> {
1883
- return safeParse(
1884
- jsonString,
1885
- (x) => RetrieveAgentRequestAgentsRetry$inboundSchema.parse(JSON.parse(x)),
1886
- `Failed to parse 'RetrieveAgentRequestAgentsRetry' from JSON`,
1887
- );
1888
- }
1889
-
1890
1613
  /** @internal */
1891
1614
  export const RetrieveAgentRequestType$inboundSchema: z.ZodNativeEnum<
1892
1615
  typeof RetrieveAgentRequestType
@@ -2008,14 +1731,9 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
2008
1731
  unknown
2009
1732
  > = z.object({
2010
1733
  name: z.string().optional(),
2011
- audio: z.nullable(z.lazy(() => RetrieveAgentRequestAudio$inboundSchema))
2012
- .optional(),
2013
1734
  frequency_penalty: z.nullable(z.number()).optional(),
2014
1735
  max_tokens: z.nullable(z.number().int()).optional(),
2015
1736
  max_completion_tokens: z.nullable(z.number().int()).optional(),
2016
- logprobs: z.nullable(z.boolean()).optional(),
2017
- top_logprobs: z.nullable(z.number().int()).optional(),
2018
- n: z.nullable(z.number().int()).optional(),
2019
1737
  presence_penalty: z.nullable(z.number()).optional(),
2020
1738
  response_format: z.union([
2021
1739
  z.lazy(() => RetrieveAgentRequestResponseFormatText$inboundSchema),
@@ -2029,9 +1747,6 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
2029
1747
  verbosity: z.string().optional(),
2030
1748
  seed: z.nullable(z.number()).optional(),
2031
1749
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2032
- stream_options: z.nullable(
2033
- z.lazy(() => RetrieveAgentRequestStreamOptions$inboundSchema),
2034
- ).optional(),
2035
1750
  thinking: z.union([
2036
1751
  components.ThinkingConfigDisabledSchema$inboundSchema,
2037
1752
  components.ThinkingConfigEnabledSchema$inboundSchema,
@@ -2051,7 +1766,6 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
2051
1766
  ).optional(),
2052
1767
  fallbacks: z.array(z.lazy(() => RetrieveAgentRequestFallbacks$inboundSchema))
2053
1768
  .optional(),
2054
- retry: z.lazy(() => RetrieveAgentRequestAgentsRetry$inboundSchema).optional(),
2055
1769
  cache: z.lazy(() => RetrieveAgentRequestCache$inboundSchema).optional(),
2056
1770
  load_balancer: z.lazy(() => RetrieveAgentRequestLoadBalancer1$inboundSchema)
2057
1771
  .optional(),
@@ -2061,11 +1775,9 @@ export const RetrieveAgentRequestParameters$inboundSchema: z.ZodType<
2061
1775
  "frequency_penalty": "frequencyPenalty",
2062
1776
  "max_tokens": "maxTokens",
2063
1777
  "max_completion_tokens": "maxCompletionTokens",
2064
- "top_logprobs": "topLogprobs",
2065
1778
  "presence_penalty": "presencePenalty",
2066
1779
  "response_format": "responseFormat",
2067
1780
  "reasoning_effort": "reasoningEffort",
2068
- "stream_options": "streamOptions",
2069
1781
  "top_p": "topP",
2070
1782
  "top_k": "topK",
2071
1783
  "tool_choice": "toolChoice",
@@ -2108,43 +1820,6 @@ export function retrieveAgentRequestRetryFromJSON(
2108
1820
  );
2109
1821
  }
2110
1822
 
2111
- /** @internal */
2112
- export const RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema:
2113
- z.ZodNativeEnum<typeof RetrieveAgentRequestFallbackModelConfigurationVoice> =
2114
- z.nativeEnum(RetrieveAgentRequestFallbackModelConfigurationVoice);
2115
-
2116
- /** @internal */
2117
- export const RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema:
2118
- z.ZodNativeEnum<typeof RetrieveAgentRequestFallbackModelConfigurationFormat> =
2119
- z.nativeEnum(RetrieveAgentRequestFallbackModelConfigurationFormat);
2120
-
2121
- /** @internal */
2122
- export const RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema:
2123
- z.ZodType<
2124
- RetrieveAgentRequestFallbackModelConfigurationAudio,
2125
- z.ZodTypeDef,
2126
- unknown
2127
- > = z.object({
2128
- voice: RetrieveAgentRequestFallbackModelConfigurationVoice$inboundSchema,
2129
- format: RetrieveAgentRequestFallbackModelConfigurationFormat$inboundSchema,
2130
- });
2131
-
2132
- export function retrieveAgentRequestFallbackModelConfigurationAudioFromJSON(
2133
- jsonString: string,
2134
- ): SafeParseResult<
2135
- RetrieveAgentRequestFallbackModelConfigurationAudio,
2136
- SDKValidationError
2137
- > {
2138
- return safeParse(
2139
- jsonString,
2140
- (x) =>
2141
- RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema.parse(
2142
- JSON.parse(x),
2143
- ),
2144
- `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationAudio' from JSON`,
2145
- );
2146
- }
2147
-
2148
1823
  /** @internal */
2149
1824
  export const RetrieveAgentRequestResponseFormatAgentsResponseJsonSchema$inboundSchema:
2150
1825
  z.ZodType<
@@ -2320,35 +1995,6 @@ export function retrieveAgentRequestFallbackModelConfigurationStopFromJSON(
2320
1995
  );
2321
1996
  }
2322
1997
 
2323
- /** @internal */
2324
- export const RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema:
2325
- z.ZodType<
2326
- RetrieveAgentRequestFallbackModelConfigurationStreamOptions,
2327
- z.ZodTypeDef,
2328
- unknown
2329
- > = z.object({
2330
- include_usage: z.boolean().optional(),
2331
- }).transform((v) => {
2332
- return remap$(v, {
2333
- "include_usage": "includeUsage",
2334
- });
2335
- });
2336
-
2337
- export function retrieveAgentRequestFallbackModelConfigurationStreamOptionsFromJSON(
2338
- jsonString: string,
2339
- ): SafeParseResult<
2340
- RetrieveAgentRequestFallbackModelConfigurationStreamOptions,
2341
- SDKValidationError
2342
- > {
2343
- return safeParse(
2344
- jsonString,
2345
- (x) =>
2346
- RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
2347
- .parse(JSON.parse(x)),
2348
- `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationStreamOptions' from JSON`,
2349
- );
2350
- }
2351
-
2352
1998
  /** @internal */
2353
1999
  export const RetrieveAgentRequestFallbackModelConfigurationThinking$inboundSchema:
2354
2000
  z.ZodType<
@@ -2558,36 +2204,6 @@ export function retrieveAgentRequestFallbackModelConfigurationFallbacksFromJSON(
2558
2204
  );
2559
2205
  }
2560
2206
 
2561
- /** @internal */
2562
- export const RetrieveAgentRequestFallbackModelConfigurationAgentsRetry$inboundSchema:
2563
- z.ZodType<
2564
- RetrieveAgentRequestFallbackModelConfigurationAgentsRetry,
2565
- z.ZodTypeDef,
2566
- unknown
2567
- > = z.object({
2568
- count: z.number().default(3),
2569
- on_codes: z.array(z.number()).optional(),
2570
- }).transform((v) => {
2571
- return remap$(v, {
2572
- "on_codes": "onCodes",
2573
- });
2574
- });
2575
-
2576
- export function retrieveAgentRequestFallbackModelConfigurationAgentsRetryFromJSON(
2577
- jsonString: string,
2578
- ): SafeParseResult<
2579
- RetrieveAgentRequestFallbackModelConfigurationAgentsRetry,
2580
- SDKValidationError
2581
- > {
2582
- return safeParse(
2583
- jsonString,
2584
- (x) =>
2585
- RetrieveAgentRequestFallbackModelConfigurationAgentsRetry$inboundSchema
2586
- .parse(JSON.parse(x)),
2587
- `Failed to parse 'RetrieveAgentRequestFallbackModelConfigurationAgentsRetry' from JSON`,
2588
- );
2589
- }
2590
-
2591
2207
  /** @internal */
2592
2208
  export const RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema:
2593
2209
  z.ZodNativeEnum<typeof RetrieveAgentRequestFallbackModelConfigurationType> = z
@@ -2741,17 +2357,9 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
2741
2357
  unknown
2742
2358
  > = z.object({
2743
2359
  name: z.string().optional(),
2744
- audio: z.nullable(
2745
- z.lazy(() =>
2746
- RetrieveAgentRequestFallbackModelConfigurationAudio$inboundSchema
2747
- ),
2748
- ).optional(),
2749
2360
  frequency_penalty: z.nullable(z.number()).optional(),
2750
2361
  max_tokens: z.nullable(z.number().int()).optional(),
2751
2362
  max_completion_tokens: z.nullable(z.number().int()).optional(),
2752
- logprobs: z.nullable(z.boolean()).optional(),
2753
- top_logprobs: z.nullable(z.number().int()).optional(),
2754
- n: z.nullable(z.number().int()).optional(),
2755
2363
  presence_penalty: z.nullable(z.number()).optional(),
2756
2364
  response_format: z.union([
2757
2365
  z.lazy(() => RetrieveAgentRequestResponseFormatAgentsText$inboundSchema),
@@ -2768,11 +2376,6 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
2768
2376
  verbosity: z.string().optional(),
2769
2377
  seed: z.nullable(z.number()).optional(),
2770
2378
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2771
- stream_options: z.nullable(
2772
- z.lazy(() =>
2773
- RetrieveAgentRequestFallbackModelConfigurationStreamOptions$inboundSchema
2774
- ),
2775
- ).optional(),
2776
2379
  thinking: z.union([
2777
2380
  components.ThinkingConfigDisabledSchema$inboundSchema,
2778
2381
  components.ThinkingConfigEnabledSchema$inboundSchema,
@@ -2800,9 +2403,6 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
2800
2403
  RetrieveAgentRequestFallbackModelConfigurationFallbacks$inboundSchema
2801
2404
  ),
2802
2405
  ).optional(),
2803
- retry: z.lazy(() =>
2804
- RetrieveAgentRequestFallbackModelConfigurationAgentsRetry$inboundSchema
2805
- ).optional(),
2806
2406
  cache: z.lazy(() =>
2807
2407
  RetrieveAgentRequestFallbackModelConfigurationCache$inboundSchema
2808
2408
  ).optional(),
@@ -2817,11 +2417,9 @@ export const RetrieveAgentRequestFallbackModelConfigurationParameters$inboundSch
2817
2417
  "frequency_penalty": "frequencyPenalty",
2818
2418
  "max_tokens": "maxTokens",
2819
2419
  "max_completion_tokens": "maxCompletionTokens",
2820
- "top_logprobs": "topLogprobs",
2821
2420
  "presence_penalty": "presencePenalty",
2822
2421
  "response_format": "responseFormat",
2823
2422
  "reasoning_effort": "reasoningEffort",
2824
- "stream_options": "streamOptions",
2825
2423
  "top_p": "topP",
2826
2424
  "top_k": "topK",
2827
2425
  "tool_choice": "toolChoice",