@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
@@ -906,8 +906,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
906
906
  > = z.object({
907
907
  _id: z.string(),
908
908
  description: z.string(),
909
- created: z.string().default("2026-03-04T05:31:46.548Z"),
910
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
909
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
910
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
911
911
  guardrail_config: z.union([
912
912
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
913
913
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
@@ -1045,8 +1045,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1045
1045
  > = z.object({
1046
1046
  _id: z.string(),
1047
1047
  description: z.string(),
1048
- created: z.string().default("2026-03-04T05:31:46.548Z"),
1049
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
1048
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
1049
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
1050
1050
  guardrail_config: z.union([
1051
1051
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
1052
1052
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -1837,8 +1837,8 @@ export const DataFunction$inboundSchema: z.ZodType<
1837
1837
  > = z.object({
1838
1838
  _id: z.string(),
1839
1839
  description: z.string(),
1840
- created: z.string().default("2026-03-04T05:31:46.548Z"),
1841
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
1840
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
1841
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
1842
1842
  guardrail_config: z.union([
1843
1843
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
1844
1844
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
@@ -1988,8 +1988,8 @@ export const DataPython$inboundSchema: z.ZodType<
1988
1988
  > = z.object({
1989
1989
  _id: z.string(),
1990
1990
  description: z.string(),
1991
- created: z.string().default("2026-03-04T05:31:46.548Z"),
1992
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
1991
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
1992
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
1993
1993
  guardrail_config: z.union([
1994
1994
  z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
1995
1995
  z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
@@ -2128,8 +2128,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2128
2128
  > = z.object({
2129
2129
  _id: z.string(),
2130
2130
  description: z.string(),
2131
- created: z.string().default("2026-03-04T05:31:46.548Z"),
2132
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
2131
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
2132
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
2133
2133
  guardrail_config: z.union([
2134
2134
  z.lazy(() =>
2135
2135
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -2278,8 +2278,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2278
2278
  > = z.object({
2279
2279
  _id: z.string(),
2280
2280
  description: z.string(),
2281
- created: z.string().default("2026-03-04T05:31:46.548Z"),
2282
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
2281
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
2282
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
2283
2283
  guardrail_config: z.union([
2284
2284
  z.lazy(() =>
2285
2285
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -2584,8 +2584,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
2584
2584
  > = z.object({
2585
2585
  _id: z.string(),
2586
2586
  description: z.string(),
2587
- created: z.string().default("2026-03-04T05:31:46.548Z"),
2588
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
2587
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
2588
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
2589
2589
  guardrail_config: z.union([
2590
2590
  z.lazy(() =>
2591
2591
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyData1Boolean$inboundSchema
@@ -2728,8 +2728,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
2728
2728
  > = z.object({
2729
2729
  _id: z.string(),
2730
2730
  description: z.string(),
2731
- created: z.string().default("2026-03-04T05:31:46.548Z"),
2732
- updated: z.string().default("2026-03-04T05:31:46.548Z"),
2731
+ created: z.string().default("2026-03-04T12:47:37.126Z"),
2732
+ updated: z.string().default("2026-03-04T12:47:37.126Z"),
2733
2733
  guardrail_config: z.union([
2734
2734
  z.lazy(() =>
2735
2735
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema
@@ -185,51 +185,6 @@ export type ListAgentsSettings = {
185
185
  guardrails?: Array<ListAgentsGuardrails> | undefined;
186
186
  };
187
187
 
188
- /**
189
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
190
- */
191
- export const ListAgentsVoice = {
192
- Alloy: "alloy",
193
- Echo: "echo",
194
- Fable: "fable",
195
- Onyx: "onyx",
196
- Nova: "nova",
197
- Shimmer: "shimmer",
198
- } as const;
199
- /**
200
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
201
- */
202
- export type ListAgentsVoice = ClosedEnum<typeof ListAgentsVoice>;
203
-
204
- /**
205
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
206
- */
207
- export const ListAgentsFormat = {
208
- Wav: "wav",
209
- Mp3: "mp3",
210
- Flac: "flac",
211
- Opus: "opus",
212
- Pcm16: "pcm16",
213
- } as const;
214
- /**
215
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
216
- */
217
- export type ListAgentsFormat = ClosedEnum<typeof ListAgentsFormat>;
218
-
219
- /**
220
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
221
- */
222
- export type ListAgentsAudio = {
223
- /**
224
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
225
- */
226
- voice: ListAgentsVoice;
227
- /**
228
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
229
- */
230
- format: ListAgentsFormat;
231
- };
232
-
233
188
  export type ListAgentsResponseFormatJsonSchema = {
234
189
  /**
235
190
  * A description of what the response format is for, used by the model to determine how to respond in the format.
@@ -326,16 +281,6 @@ export type ListAgentsReasoningEffort = ClosedEnum<
326
281
  */
327
282
  export type ListAgentsStop = string | Array<string>;
328
283
 
329
- /**
330
- * Options for streaming response. Only set this when you set stream: true.
331
- */
332
- export type ListAgentsStreamOptions = {
333
- /**
334
- * 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.
335
- */
336
- includeUsage?: boolean | undefined;
337
- };
338
-
339
284
  export type ListAgentsThinking =
340
285
  | components.ThinkingConfigDisabledSchema
341
286
  | components.ThinkingConfigEnabledSchema;
@@ -432,20 +377,6 @@ export type ListAgentsFallbacks = {
432
377
  model: string;
433
378
  };
434
379
 
435
- /**
436
- * Retry configuration for the request
437
- */
438
- export type ListAgentsAgentsRetry = {
439
- /**
440
- * Number of retry attempts (1-5)
441
- */
442
- count: number;
443
- /**
444
- * HTTP status codes that trigger retry logic
445
- */
446
- onCodes?: Array<number> | undefined;
447
- };
448
-
449
380
  export const ListAgentsType = {
450
381
  ExactMatch: "exact_match",
451
382
  } as const;
@@ -508,10 +439,6 @@ export type ListAgentsParameters = {
508
439
  * The name to display on the trace. If not specified, the default system name will be used.
509
440
  */
510
441
  name?: string | undefined;
511
- /**
512
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
513
- */
514
- audio?: ListAgentsAudio | null | undefined;
515
442
  /**
516
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.
517
444
  */
@@ -528,18 +455,6 @@ export type ListAgentsParameters = {
528
455
  * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
529
456
  */
530
457
  maxCompletionTokens?: number | null | undefined;
531
- /**
532
- * 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.
533
- */
534
- logprobs?: boolean | null | undefined;
535
- /**
536
- * 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.
537
- */
538
- topLogprobs?: number | null | undefined;
539
- /**
540
- * 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.
541
- */
542
- n?: number | null | undefined;
543
458
  /**
544
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.
545
460
  */
@@ -577,10 +492,6 @@ export type ListAgentsParameters = {
577
492
  * Up to 4 sequences where the API will stop generating further tokens.
578
493
  */
579
494
  stop?: string | Array<string> | null | undefined;
580
- /**
581
- * Options for streaming response. Only set this when you set stream: true.
582
- */
583
- streamOptions?: ListAgentsStreamOptions | null | undefined;
584
495
  thinking?:
585
496
  | components.ThinkingConfigDisabledSchema
586
497
  | components.ThinkingConfigEnabledSchema
@@ -617,10 +528,6 @@ export type ListAgentsParameters = {
617
528
  * Array of fallback models to use if primary model fails
618
529
  */
619
530
  fallbacks?: Array<ListAgentsFallbacks> | undefined;
620
- /**
621
- * Retry configuration for the request
622
- */
623
- retry?: ListAgentsAgentsRetry | undefined;
624
531
  /**
625
532
  * Cache configuration for the request.
626
533
  */
@@ -649,55 +556,6 @@ export type ListAgentsRetry = {
649
556
  onCodes?: Array<number> | undefined;
650
557
  };
651
558
 
652
- /**
653
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
654
- */
655
- export const ListAgentsFallbackModelConfigurationVoice = {
656
- Alloy: "alloy",
657
- Echo: "echo",
658
- Fable: "fable",
659
- Onyx: "onyx",
660
- Nova: "nova",
661
- Shimmer: "shimmer",
662
- } as const;
663
- /**
664
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
665
- */
666
- export type ListAgentsFallbackModelConfigurationVoice = ClosedEnum<
667
- typeof ListAgentsFallbackModelConfigurationVoice
668
- >;
669
-
670
- /**
671
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
672
- */
673
- export const ListAgentsFallbackModelConfigurationFormat = {
674
- Wav: "wav",
675
- Mp3: "mp3",
676
- Flac: "flac",
677
- Opus: "opus",
678
- Pcm16: "pcm16",
679
- } as const;
680
- /**
681
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
682
- */
683
- export type ListAgentsFallbackModelConfigurationFormat = ClosedEnum<
684
- typeof ListAgentsFallbackModelConfigurationFormat
685
- >;
686
-
687
- /**
688
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
689
- */
690
- export type ListAgentsFallbackModelConfigurationAudio = {
691
- /**
692
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
693
- */
694
- voice: ListAgentsFallbackModelConfigurationVoice;
695
- /**
696
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
697
- */
698
- format: ListAgentsFallbackModelConfigurationFormat;
699
- };
700
-
701
559
  export type ListAgentsResponseFormatAgentsResponseJsonSchema = {
702
560
  /**
703
561
  * A description of what the response format is for, used by the model to determine how to respond in the format.
@@ -794,16 +652,6 @@ export type ListAgentsFallbackModelConfigurationReasoningEffort = ClosedEnum<
794
652
  */
795
653
  export type ListAgentsFallbackModelConfigurationStop = string | Array<string>;
796
654
 
797
- /**
798
- * Options for streaming response. Only set this when you set stream: true.
799
- */
800
- export type ListAgentsFallbackModelConfigurationStreamOptions = {
801
- /**
802
- * 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.
803
- */
804
- includeUsage?: boolean | undefined;
805
- };
806
-
807
655
  export type ListAgentsFallbackModelConfigurationThinking =
808
656
  | components.ThinkingConfigDisabledSchema
809
657
  | components.ThinkingConfigEnabledSchema;
@@ -906,20 +754,6 @@ export type ListAgentsFallbackModelConfigurationFallbacks = {
906
754
  model: string;
907
755
  };
908
756
 
909
- /**
910
- * Retry configuration for the request
911
- */
912
- export type ListAgentsFallbackModelConfigurationAgentsRetry = {
913
- /**
914
- * Number of retry attempts (1-5)
915
- */
916
- count: number;
917
- /**
918
- * HTTP status codes that trigger retry logic
919
- */
920
- onCodes?: Array<number> | undefined;
921
- };
922
-
923
757
  export const ListAgentsFallbackModelConfigurationType = {
924
758
  ExactMatch: "exact_match",
925
759
  } as const;
@@ -985,10 +819,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
985
819
  * The name to display on the trace. If not specified, the default system name will be used.
986
820
  */
987
821
  name?: string | undefined;
988
- /**
989
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
990
- */
991
- audio?: ListAgentsFallbackModelConfigurationAudio | null | undefined;
992
822
  /**
993
823
  * 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.
994
824
  */
@@ -1005,18 +835,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
1005
835
  * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
1006
836
  */
1007
837
  maxCompletionTokens?: number | null | undefined;
1008
- /**
1009
- * 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.
1010
- */
1011
- logprobs?: boolean | null | undefined;
1012
- /**
1013
- * 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.
1014
- */
1015
- topLogprobs?: number | null | undefined;
1016
- /**
1017
- * 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.
1018
- */
1019
- n?: number | null | undefined;
1020
838
  /**
1021
839
  * 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.
1022
840
  */
@@ -1056,13 +874,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
1056
874
  * Up to 4 sequences where the API will stop generating further tokens.
1057
875
  */
1058
876
  stop?: string | Array<string> | null | undefined;
1059
- /**
1060
- * Options for streaming response. Only set this when you set stream: true.
1061
- */
1062
- streamOptions?:
1063
- | ListAgentsFallbackModelConfigurationStreamOptions
1064
- | null
1065
- | undefined;
1066
877
  thinking?:
1067
878
  | components.ThinkingConfigDisabledSchema
1068
879
  | components.ThinkingConfigEnabledSchema
@@ -1107,10 +918,6 @@ export type ListAgentsFallbackModelConfigurationParameters = {
1107
918
  * Array of fallback models to use if primary model fails
1108
919
  */
1109
920
  fallbacks?: Array<ListAgentsFallbackModelConfigurationFallbacks> | undefined;
1110
- /**
1111
- * Retry configuration for the request
1112
- */
1113
- retry?: ListAgentsFallbackModelConfigurationAgentsRetry | undefined;
1114
921
  /**
1115
922
  * Cache configuration for the request.
1116
923
  */
@@ -1480,36 +1287,6 @@ export function listAgentsSettingsFromJSON(
1480
1287
  );
1481
1288
  }
1482
1289
 
1483
- /** @internal */
1484
- export const ListAgentsVoice$inboundSchema: z.ZodNativeEnum<
1485
- typeof ListAgentsVoice
1486
- > = z.nativeEnum(ListAgentsVoice);
1487
-
1488
- /** @internal */
1489
- export const ListAgentsFormat$inboundSchema: z.ZodNativeEnum<
1490
- typeof ListAgentsFormat
1491
- > = z.nativeEnum(ListAgentsFormat);
1492
-
1493
- /** @internal */
1494
- export const ListAgentsAudio$inboundSchema: z.ZodType<
1495
- ListAgentsAudio,
1496
- z.ZodTypeDef,
1497
- unknown
1498
- > = z.object({
1499
- voice: ListAgentsVoice$inboundSchema,
1500
- format: ListAgentsFormat$inboundSchema,
1501
- });
1502
-
1503
- export function listAgentsAudioFromJSON(
1504
- jsonString: string,
1505
- ): SafeParseResult<ListAgentsAudio, SDKValidationError> {
1506
- return safeParse(
1507
- jsonString,
1508
- (x) => ListAgentsAudio$inboundSchema.parse(JSON.parse(x)),
1509
- `Failed to parse 'ListAgentsAudio' from JSON`,
1510
- );
1511
- }
1512
-
1513
1290
  /** @internal */
1514
1291
  export const ListAgentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1515
1292
  ListAgentsResponseFormatJsonSchema,
@@ -1645,29 +1422,6 @@ export function listAgentsStopFromJSON(
1645
1422
  );
1646
1423
  }
1647
1424
 
1648
- /** @internal */
1649
- export const ListAgentsStreamOptions$inboundSchema: z.ZodType<
1650
- ListAgentsStreamOptions,
1651
- z.ZodTypeDef,
1652
- unknown
1653
- > = z.object({
1654
- include_usage: z.boolean().optional(),
1655
- }).transform((v) => {
1656
- return remap$(v, {
1657
- "include_usage": "includeUsage",
1658
- });
1659
- });
1660
-
1661
- export function listAgentsStreamOptionsFromJSON(
1662
- jsonString: string,
1663
- ): SafeParseResult<ListAgentsStreamOptions, SDKValidationError> {
1664
- return safeParse(
1665
- jsonString,
1666
- (x) => ListAgentsStreamOptions$inboundSchema.parse(JSON.parse(x)),
1667
- `Failed to parse 'ListAgentsStreamOptions' from JSON`,
1668
- );
1669
- }
1670
-
1671
1425
  /** @internal */
1672
1426
  export const ListAgentsThinking$inboundSchema: z.ZodType<
1673
1427
  ListAgentsThinking,
@@ -1832,30 +1586,6 @@ export function listAgentsFallbacksFromJSON(
1832
1586
  );
1833
1587
  }
1834
1588
 
1835
- /** @internal */
1836
- export const ListAgentsAgentsRetry$inboundSchema: z.ZodType<
1837
- ListAgentsAgentsRetry,
1838
- z.ZodTypeDef,
1839
- unknown
1840
- > = z.object({
1841
- count: z.number().default(3),
1842
- on_codes: z.array(z.number()).optional(),
1843
- }).transform((v) => {
1844
- return remap$(v, {
1845
- "on_codes": "onCodes",
1846
- });
1847
- });
1848
-
1849
- export function listAgentsAgentsRetryFromJSON(
1850
- jsonString: string,
1851
- ): SafeParseResult<ListAgentsAgentsRetry, SDKValidationError> {
1852
- return safeParse(
1853
- jsonString,
1854
- (x) => ListAgentsAgentsRetry$inboundSchema.parse(JSON.parse(x)),
1855
- `Failed to parse 'ListAgentsAgentsRetry' from JSON`,
1856
- );
1857
- }
1858
-
1859
1589
  /** @internal */
1860
1590
  export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
1861
1591
  typeof ListAgentsType
@@ -1973,13 +1703,9 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1973
1703
  unknown
1974
1704
  > = z.object({
1975
1705
  name: z.string().optional(),
1976
- audio: z.nullable(z.lazy(() => ListAgentsAudio$inboundSchema)).optional(),
1977
1706
  frequency_penalty: z.nullable(z.number()).optional(),
1978
1707
  max_tokens: z.nullable(z.number().int()).optional(),
1979
1708
  max_completion_tokens: z.nullable(z.number().int()).optional(),
1980
- logprobs: z.nullable(z.boolean()).optional(),
1981
- top_logprobs: z.nullable(z.number().int()).optional(),
1982
- n: z.nullable(z.number().int()).optional(),
1983
1709
  presence_penalty: z.nullable(z.number()).optional(),
1984
1710
  response_format: z.union([
1985
1711
  z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
@@ -1990,9 +1716,6 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
1990
1716
  verbosity: z.string().optional(),
1991
1717
  seed: z.nullable(z.number()).optional(),
1992
1718
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1993
- stream_options: z.nullable(
1994
- z.lazy(() => ListAgentsStreamOptions$inboundSchema),
1995
- ).optional(),
1996
1719
  thinking: z.union([
1997
1720
  components.ThinkingConfigDisabledSchema$inboundSchema,
1998
1721
  components.ThinkingConfigEnabledSchema$inboundSchema,
@@ -2011,7 +1734,6 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
2011
1734
  .optional(),
2012
1735
  fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
2013
1736
  .optional(),
2014
- retry: z.lazy(() => ListAgentsAgentsRetry$inboundSchema).optional(),
2015
1737
  cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
2016
1738
  load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
2017
1739
  timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
@@ -2020,11 +1742,9 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
2020
1742
  "frequency_penalty": "frequencyPenalty",
2021
1743
  "max_tokens": "maxTokens",
2022
1744
  "max_completion_tokens": "maxCompletionTokens",
2023
- "top_logprobs": "topLogprobs",
2024
1745
  "presence_penalty": "presencePenalty",
2025
1746
  "response_format": "responseFormat",
2026
1747
  "reasoning_effort": "reasoningEffort",
2027
- "stream_options": "streamOptions",
2028
1748
  "top_p": "topP",
2029
1749
  "top_k": "topK",
2030
1750
  "tool_choice": "toolChoice",
@@ -2067,42 +1787,6 @@ export function listAgentsRetryFromJSON(
2067
1787
  );
2068
1788
  }
2069
1789
 
2070
- /** @internal */
2071
- export const ListAgentsFallbackModelConfigurationVoice$inboundSchema:
2072
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> = z
2073
- .nativeEnum(ListAgentsFallbackModelConfigurationVoice);
2074
-
2075
- /** @internal */
2076
- export const ListAgentsFallbackModelConfigurationFormat$inboundSchema:
2077
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationFormat> = z
2078
- .nativeEnum(ListAgentsFallbackModelConfigurationFormat);
2079
-
2080
- /** @internal */
2081
- export const ListAgentsFallbackModelConfigurationAudio$inboundSchema: z.ZodType<
2082
- ListAgentsFallbackModelConfigurationAudio,
2083
- z.ZodTypeDef,
2084
- unknown
2085
- > = z.object({
2086
- voice: ListAgentsFallbackModelConfigurationVoice$inboundSchema,
2087
- format: ListAgentsFallbackModelConfigurationFormat$inboundSchema,
2088
- });
2089
-
2090
- export function listAgentsFallbackModelConfigurationAudioFromJSON(
2091
- jsonString: string,
2092
- ): SafeParseResult<
2093
- ListAgentsFallbackModelConfigurationAudio,
2094
- SDKValidationError
2095
- > {
2096
- return safeParse(
2097
- jsonString,
2098
- (x) =>
2099
- ListAgentsFallbackModelConfigurationAudio$inboundSchema.parse(
2100
- JSON.parse(x),
2101
- ),
2102
- `Failed to parse 'ListAgentsFallbackModelConfigurationAudio' from JSON`,
2103
- );
2104
- }
2105
-
2106
1790
  /** @internal */
2107
1791
  export const ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema:
2108
1792
  z.ZodType<
@@ -2268,36 +1952,6 @@ export function listAgentsFallbackModelConfigurationStopFromJSON(
2268
1952
  );
2269
1953
  }
2270
1954
 
2271
- /** @internal */
2272
- export const ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema:
2273
- z.ZodType<
2274
- ListAgentsFallbackModelConfigurationStreamOptions,
2275
- z.ZodTypeDef,
2276
- unknown
2277
- > = z.object({
2278
- include_usage: z.boolean().optional(),
2279
- }).transform((v) => {
2280
- return remap$(v, {
2281
- "include_usage": "includeUsage",
2282
- });
2283
- });
2284
-
2285
- export function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(
2286
- jsonString: string,
2287
- ): SafeParseResult<
2288
- ListAgentsFallbackModelConfigurationStreamOptions,
2289
- SDKValidationError
2290
- > {
2291
- return safeParse(
2292
- jsonString,
2293
- (x) =>
2294
- ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema.parse(
2295
- JSON.parse(x),
2296
- ),
2297
- `Failed to parse 'ListAgentsFallbackModelConfigurationStreamOptions' from JSON`,
2298
- );
2299
- }
2300
-
2301
1955
  /** @internal */
2302
1956
  export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
2303
1957
  z.ZodType<
@@ -2492,37 +2146,6 @@ export function listAgentsFallbackModelConfigurationFallbacksFromJSON(
2492
2146
  );
2493
2147
  }
2494
2148
 
2495
- /** @internal */
2496
- export const ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema:
2497
- z.ZodType<
2498
- ListAgentsFallbackModelConfigurationAgentsRetry,
2499
- z.ZodTypeDef,
2500
- unknown
2501
- > = z.object({
2502
- count: z.number().default(3),
2503
- on_codes: z.array(z.number()).optional(),
2504
- }).transform((v) => {
2505
- return remap$(v, {
2506
- "on_codes": "onCodes",
2507
- });
2508
- });
2509
-
2510
- export function listAgentsFallbackModelConfigurationAgentsRetryFromJSON(
2511
- jsonString: string,
2512
- ): SafeParseResult<
2513
- ListAgentsFallbackModelConfigurationAgentsRetry,
2514
- SDKValidationError
2515
- > {
2516
- return safeParse(
2517
- jsonString,
2518
- (x) =>
2519
- ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema.parse(
2520
- JSON.parse(x),
2521
- ),
2522
- `Failed to parse 'ListAgentsFallbackModelConfigurationAgentsRetry' from JSON`,
2523
- );
2524
- }
2525
-
2526
2149
  /** @internal */
2527
2150
  export const ListAgentsFallbackModelConfigurationType$inboundSchema:
2528
2151
  z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
@@ -2664,15 +2287,9 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2664
2287
  unknown
2665
2288
  > = z.object({
2666
2289
  name: z.string().optional(),
2667
- audio: z.nullable(
2668
- z.lazy(() => ListAgentsFallbackModelConfigurationAudio$inboundSchema),
2669
- ).optional(),
2670
2290
  frequency_penalty: z.nullable(z.number()).optional(),
2671
2291
  max_tokens: z.nullable(z.number().int()).optional(),
2672
2292
  max_completion_tokens: z.nullable(z.number().int()).optional(),
2673
- logprobs: z.nullable(z.boolean()).optional(),
2674
- top_logprobs: z.nullable(z.number().int()).optional(),
2675
- n: z.nullable(z.number().int()).optional(),
2676
2293
  presence_penalty: z.nullable(z.number()).optional(),
2677
2294
  response_format: z.union([
2678
2295
  z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
@@ -2687,11 +2304,6 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2687
2304
  verbosity: z.string().optional(),
2688
2305
  seed: z.nullable(z.number()).optional(),
2689
2306
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2690
- stream_options: z.nullable(
2691
- z.lazy(() =>
2692
- ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema
2693
- ),
2694
- ).optional(),
2695
2307
  thinking: z.union([
2696
2308
  components.ThinkingConfigDisabledSchema$inboundSchema,
2697
2309
  components.ThinkingConfigEnabledSchema$inboundSchema,
@@ -2715,9 +2327,6 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2715
2327
  fallbacks: z.array(
2716
2328
  z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
2717
2329
  ).optional(),
2718
- retry: z.lazy(() =>
2719
- ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema
2720
- ).optional(),
2721
2330
  cache: z.lazy(() => ListAgentsFallbackModelConfigurationCache$inboundSchema)
2722
2331
  .optional(),
2723
2332
  load_balancer: z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema)
@@ -2730,11 +2339,9 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2730
2339
  "frequency_penalty": "frequencyPenalty",
2731
2340
  "max_tokens": "maxTokens",
2732
2341
  "max_completion_tokens": "maxCompletionTokens",
2733
- "top_logprobs": "topLogprobs",
2734
2342
  "presence_penalty": "presencePenalty",
2735
2343
  "response_format": "responseFormat",
2736
2344
  "reasoning_effort": "reasoningEffort",
2737
- "stream_options": "streamOptions",
2738
2345
  "top_p": "topP",
2739
2346
  "top_k": "topK",
2740
2347
  "tool_choice": "toolChoice",