@orq-ai/node 4.0.0-rc.5 → 4.0.0-rc.7

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 (154) hide show
  1. package/bin/mcp-server.js +7487 -543
  2. package/bin/mcp-server.js.map +52 -52
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createagent.d.ts +4141 -865
  10. package/models/operations/createagent.d.ts.map +1 -1
  11. package/models/operations/createagent.js +3767 -768
  12. package/models/operations/createagent.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.js +8 -8
  17. package/models/operations/createdatasource.js +2 -2
  18. package/models/operations/createeval.js +28 -28
  19. package/models/operations/creatememorystore.d.ts +42 -42
  20. package/models/operations/creatememorystore.d.ts.map +1 -1
  21. package/models/operations/creatememorystore.js +61 -63
  22. package/models/operations/creatememorystore.js.map +1 -1
  23. package/models/operations/createprompt.d.ts +263 -263
  24. package/models/operations/createprompt.d.ts.map +1 -1
  25. package/models/operations/createprompt.js +345 -345
  26. package/models/operations/createprompt.js.map +1 -1
  27. package/models/operations/createtool.js +10 -10
  28. package/models/operations/deploymentgetconfig.d.ts +19 -19
  29. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  30. package/models/operations/deploymentgetconfig.js +22 -22
  31. package/models/operations/deploymentgetconfig.js.map +1 -1
  32. package/models/operations/deployments.d.ts +4 -4
  33. package/models/operations/deployments.d.ts.map +1 -1
  34. package/models/operations/deployments.js +4 -4
  35. package/models/operations/deployments.js.map +1 -1
  36. package/models/operations/duplicatetool.js +10 -10
  37. package/models/operations/fileget.js +2 -2
  38. package/models/operations/filelist.js +2 -2
  39. package/models/operations/fileupload.js +2 -2
  40. package/models/operations/getagent.d.ts +1614 -11
  41. package/models/operations/getagent.d.ts.map +1 -1
  42. package/models/operations/getagent.js +1475 -9
  43. package/models/operations/getagent.js.map +1 -1
  44. package/models/operations/getallprompts.d.ts +4 -4
  45. package/models/operations/getallprompts.d.ts.map +1 -1
  46. package/models/operations/getallprompts.js +4 -4
  47. package/models/operations/getallprompts.js.map +1 -1
  48. package/models/operations/getalltools.js +10 -10
  49. package/models/operations/getbudget.js +2 -2
  50. package/models/operations/getevals.js +28 -28
  51. package/models/operations/getoneprompt.d.ts +4 -4
  52. package/models/operations/getoneprompt.d.ts.map +1 -1
  53. package/models/operations/getoneprompt.js +4 -4
  54. package/models/operations/getoneprompt.js.map +1 -1
  55. package/models/operations/getpromptversion.d.ts +4 -4
  56. package/models/operations/getpromptversion.d.ts.map +1 -1
  57. package/models/operations/getpromptversion.js +4 -4
  58. package/models/operations/getpromptversion.js.map +1 -1
  59. package/models/operations/listagents.d.ts +1614 -11
  60. package/models/operations/listagents.d.ts.map +1 -1
  61. package/models/operations/listagents.js +1481 -9
  62. package/models/operations/listagents.js.map +1 -1
  63. package/models/operations/listagenttasks.d.ts +1614 -11
  64. package/models/operations/listagenttasks.d.ts.map +1 -1
  65. package/models/operations/listagenttasks.js +1479 -9
  66. package/models/operations/listagenttasks.js.map +1 -1
  67. package/models/operations/listbudgets.js +2 -2
  68. package/models/operations/listcontacts.js +2 -2
  69. package/models/operations/listdatasetdatapoints.js +8 -8
  70. package/models/operations/listdatasets.js +2 -2
  71. package/models/operations/listdatasources.js +2 -2
  72. package/models/operations/listpromptversions.d.ts +4 -4
  73. package/models/operations/listpromptversions.d.ts.map +1 -1
  74. package/models/operations/listpromptversions.js +4 -4
  75. package/models/operations/listpromptversions.js.map +1 -1
  76. package/models/operations/retrievecontact.js +2 -2
  77. package/models/operations/retrievedatapoint.js +8 -8
  78. package/models/operations/retrievedataset.js +2 -2
  79. package/models/operations/retrievedatasource.js +2 -2
  80. package/models/operations/retrievetool.js +10 -10
  81. package/models/operations/runagent.d.ts +2176 -503
  82. package/models/operations/runagent.d.ts.map +1 -1
  83. package/models/operations/runagent.js +1534 -9
  84. package/models/operations/runagent.js.map +1 -1
  85. package/models/operations/streamrunagent.d.ts +2128 -455
  86. package/models/operations/streamrunagent.d.ts.map +1 -1
  87. package/models/operations/streamrunagent.js +1630 -89
  88. package/models/operations/streamrunagent.js.map +1 -1
  89. package/models/operations/updateagent.d.ts +4129 -853
  90. package/models/operations/updateagent.d.ts.map +1 -1
  91. package/models/operations/updateagent.js +3837 -825
  92. package/models/operations/updateagent.js.map +1 -1
  93. package/models/operations/updatebudget.js +2 -2
  94. package/models/operations/updatecontact.js +2 -2
  95. package/models/operations/updatedatapoint.js +8 -8
  96. package/models/operations/updatedataset.js +2 -2
  97. package/models/operations/updatedatasource.js +2 -2
  98. package/models/operations/updateeval.js +28 -28
  99. package/models/operations/updateprompt.d.ts +8 -8
  100. package/models/operations/updateprompt.d.ts.map +1 -1
  101. package/models/operations/updateprompt.js +8 -8
  102. package/models/operations/updateprompt.js.map +1 -1
  103. package/models/operations/updatetool.js +10 -10
  104. package/package.json +1 -1
  105. package/src/lib/config.ts +2 -2
  106. package/src/mcp-server/mcp-server.ts +1 -1
  107. package/src/mcp-server/server.ts +1 -1
  108. package/src/models/operations/createagent.ts +7853 -1626
  109. package/src/models/operations/createbudget.ts +2 -2
  110. package/src/models/operations/createcontact.ts +2 -2
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +8 -8
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +28 -28
  115. package/src/models/operations/creatememorystore.ts +120 -103
  116. package/src/models/operations/createprompt.ts +742 -621
  117. package/src/models/operations/createtool.ts +10 -10
  118. package/src/models/operations/deploymentgetconfig.ts +60 -44
  119. package/src/models/operations/deployments.ts +25 -20
  120. package/src/models/operations/duplicatetool.ts +10 -10
  121. package/src/models/operations/fileget.ts +2 -2
  122. package/src/models/operations/filelist.ts +2 -2
  123. package/src/models/operations/fileupload.ts +2 -2
  124. package/src/models/operations/getagent.ts +3274 -246
  125. package/src/models/operations/getallprompts.ts +30 -20
  126. package/src/models/operations/getalltools.ts +10 -10
  127. package/src/models/operations/getbudget.ts +2 -2
  128. package/src/models/operations/getevals.ts +28 -28
  129. package/src/models/operations/getoneprompt.ts +28 -20
  130. package/src/models/operations/getpromptversion.ts +30 -20
  131. package/src/models/operations/listagents.ts +3351 -270
  132. package/src/models/operations/listagenttasks.ts +3347 -180
  133. package/src/models/operations/listbudgets.ts +2 -2
  134. package/src/models/operations/listcontacts.ts +2 -2
  135. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  136. package/src/models/operations/listdatasets.ts +2 -2
  137. package/src/models/operations/listdatasources.ts +2 -2
  138. package/src/models/operations/listpromptversions.ts +30 -20
  139. package/src/models/operations/retrievecontact.ts +2 -2
  140. package/src/models/operations/retrievedatapoint.ts +8 -8
  141. package/src/models/operations/retrievedataset.ts +2 -2
  142. package/src/models/operations/retrievedatasource.ts +2 -2
  143. package/src/models/operations/retrievetool.ts +10 -10
  144. package/src/models/operations/runagent.ts +3799 -610
  145. package/src/models/operations/streamrunagent.ts +3945 -605
  146. package/src/models/operations/updateagent.ts +8331 -1757
  147. package/src/models/operations/updatebudget.ts +2 -2
  148. package/src/models/operations/updatecontact.ts +2 -2
  149. package/src/models/operations/updatedatapoint.ts +8 -8
  150. package/src/models/operations/updatedataset.ts +2 -2
  151. package/src/models/operations/updatedatasource.ts +2 -2
  152. package/src/models/operations/updateeval.ts +28 -28
  153. package/src/models/operations/updateprompt.ts +58 -40
  154. package/src/models/operations/updatetool.ts +10 -10
@@ -36,7 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GetAgentResponseBody$ = exports.GetAgentResponseBody$outboundSchema = exports.GetAgentResponseBody$inboundSchema = exports.GetAgentHiddenPanels$ = exports.GetAgentHiddenPanels$outboundSchema = exports.GetAgentHiddenPanels$inboundSchema = exports.GetAgentKnowledgeBases$ = exports.GetAgentKnowledgeBases$outboundSchema = exports.GetAgentKnowledgeBases$inboundSchema = exports.GetAgentMetrics$ = exports.GetAgentMetrics$outboundSchema = exports.GetAgentMetrics$inboundSchema = exports.GetAgentTeamOfAgents$ = exports.GetAgentTeamOfAgents$outboundSchema = exports.GetAgentTeamOfAgents$inboundSchema = exports.GetAgentModel$ = exports.GetAgentModel$outboundSchema = exports.GetAgentModel$inboundSchema = exports.GetAgentSettings$ = exports.GetAgentSettings$outboundSchema = exports.GetAgentSettings$inboundSchema = exports.GetAgentTools$ = exports.GetAgentTools$outboundSchema = exports.GetAgentTools$inboundSchema = exports.GetAgentConditions$ = exports.GetAgentConditions$outboundSchema = exports.GetAgentConditions$inboundSchema = exports.GetAgentToolApprovalRequired$ = exports.GetAgentToolApprovalRequired$outboundSchema = exports.GetAgentToolApprovalRequired$inboundSchema = exports.GetAgentStatus$ = exports.GetAgentStatus$outboundSchema = exports.GetAgentStatus$inboundSchema = exports.GetAgentRequest$ = exports.GetAgentRequest$outboundSchema = exports.GetAgentRequest$inboundSchema = exports.GetAgentHiddenPanels = exports.GetAgentToolApprovalRequired = exports.GetAgentStatus = void 0;
39
+ exports.GetAgentResponseFormatAgentsResponseType$outboundSchema = exports.GetAgentResponseFormatAgentsResponseType$inboundSchema = exports.GetAgentAudio$ = exports.GetAgentAudio$outboundSchema = exports.GetAgentAudio$inboundSchema = exports.GetAgentFormat$ = exports.GetAgentFormat$outboundSchema = exports.GetAgentFormat$inboundSchema = exports.GetAgentVoice$ = exports.GetAgentVoice$outboundSchema = exports.GetAgentVoice$inboundSchema = exports.GetAgentSettings$ = exports.GetAgentSettings$outboundSchema = exports.GetAgentSettings$inboundSchema = exports.GetAgentTools$ = exports.GetAgentTools$outboundSchema = exports.GetAgentTools$inboundSchema = exports.GetAgentConditions$ = exports.GetAgentConditions$outboundSchema = exports.GetAgentConditions$inboundSchema = exports.GetAgentToolApprovalRequired$ = exports.GetAgentToolApprovalRequired$outboundSchema = exports.GetAgentToolApprovalRequired$inboundSchema = exports.GetAgentStatus$ = exports.GetAgentStatus$outboundSchema = exports.GetAgentStatus$inboundSchema = exports.GetAgentRequest$ = exports.GetAgentRequest$outboundSchema = exports.GetAgentRequest$inboundSchema = exports.GetAgentHiddenPanels = exports.GetAgentFallbackModelsModalities = exports.GetAgentToolChoiceAgents1 = exports.GetAgentToolChoiceAgentsType = exports.GetAgentFallbackModelsType = exports.GetAgentResponseFormatAgentsResponse200Type = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.GetAgentFallbackModelsFormat = exports.GetAgentFallbackModelsVoice = exports.GetAgentModalities = exports.GetAgentToolChoice1 = exports.GetAgentToolChoiceType = exports.GetAgentType = exports.GetAgentResponseFormatType = exports.GetAgentResponseFormatAgentsType = exports.GetAgentResponseFormatAgentsResponseType = exports.GetAgentFormat = exports.GetAgentVoice = exports.GetAgentToolApprovalRequired = exports.GetAgentStatus = void 0;
40
+ exports.GetAgentModalities$inboundSchema = exports.GetAgentToolChoice$ = exports.GetAgentToolChoice$outboundSchema = exports.GetAgentToolChoice$inboundSchema = exports.GetAgentToolChoice1$ = exports.GetAgentToolChoice1$outboundSchema = exports.GetAgentToolChoice1$inboundSchema = exports.GetAgentToolChoice2$ = exports.GetAgentToolChoice2$outboundSchema = exports.GetAgentToolChoice2$inboundSchema = exports.GetAgentToolChoiceFunction$ = exports.GetAgentToolChoiceFunction$outboundSchema = exports.GetAgentToolChoiceFunction$inboundSchema = exports.GetAgentToolChoiceType$ = exports.GetAgentToolChoiceType$outboundSchema = exports.GetAgentToolChoiceType$inboundSchema = exports.GetAgentThinking$ = exports.GetAgentThinking$outboundSchema = exports.GetAgentThinking$inboundSchema = exports.GetAgentType$ = exports.GetAgentType$outboundSchema = exports.GetAgentType$inboundSchema = exports.GetAgentStreamOptions$ = exports.GetAgentStreamOptions$outboundSchema = exports.GetAgentStreamOptions$inboundSchema = exports.GetAgentStop$ = exports.GetAgentStop$outboundSchema = exports.GetAgentStop$inboundSchema = exports.GetAgentResponseFormat$ = exports.GetAgentResponseFormat$outboundSchema = exports.GetAgentResponseFormat$inboundSchema = exports.GetAgentResponseFormat1$ = exports.GetAgentResponseFormat1$outboundSchema = exports.GetAgentResponseFormat1$inboundSchema = exports.GetAgentResponseFormatType$ = exports.GetAgentResponseFormatType$outboundSchema = exports.GetAgentResponseFormatType$inboundSchema = exports.GetAgentResponseFormat2$ = exports.GetAgentResponseFormat2$outboundSchema = exports.GetAgentResponseFormat2$inboundSchema = exports.GetAgentResponseFormatAgentsType$ = exports.GetAgentResponseFormatAgentsType$outboundSchema = exports.GetAgentResponseFormatAgentsType$inboundSchema = exports.GetAgentResponseFormat3$ = exports.GetAgentResponseFormat3$outboundSchema = exports.GetAgentResponseFormat3$inboundSchema = exports.GetAgentResponseFormatJsonSchema$ = exports.GetAgentResponseFormatJsonSchema$outboundSchema = exports.GetAgentResponseFormatJsonSchema$inboundSchema = exports.GetAgentResponseFormatAgentsResponseType$ = void 0;
41
+ exports.GetAgentFallbackModelsType$ = exports.GetAgentFallbackModelsType$outboundSchema = exports.GetAgentFallbackModelsType$inboundSchema = exports.GetAgentFallbackModelsStreamOptions$ = exports.GetAgentFallbackModelsStreamOptions$outboundSchema = exports.GetAgentFallbackModelsStreamOptions$inboundSchema = exports.GetAgentFallbackModelsStop$ = exports.GetAgentFallbackModelsStop$outboundSchema = exports.GetAgentFallbackModelsStop$inboundSchema = exports.GetAgentFallbackModelsResponseFormat$ = exports.GetAgentFallbackModelsResponseFormat$outboundSchema = exports.GetAgentFallbackModelsResponseFormat$inboundSchema = exports.GetAgentResponseFormatAgents1$ = exports.GetAgentResponseFormatAgents1$outboundSchema = exports.GetAgentResponseFormatAgents1$inboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$ = exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema = exports.GetAgentResponseFormatAgents2$ = exports.GetAgentResponseFormatAgents2$outboundSchema = exports.GetAgentResponseFormatAgents2$inboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$ = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.GetAgentResponseFormatAgents3$ = exports.GetAgentResponseFormatAgents3$outboundSchema = exports.GetAgentResponseFormatAgents3$inboundSchema = exports.GetAgentResponseFormatAgentsJsonSchema$ = exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema = exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetAgentFallbackModelsAudio$ = exports.GetAgentFallbackModelsAudio$outboundSchema = exports.GetAgentFallbackModelsAudio$inboundSchema = exports.GetAgentFallbackModelsFormat$ = exports.GetAgentFallbackModelsFormat$outboundSchema = exports.GetAgentFallbackModelsFormat$inboundSchema = exports.GetAgentFallbackModelsVoice$ = exports.GetAgentFallbackModelsVoice$outboundSchema = exports.GetAgentFallbackModelsVoice$inboundSchema = exports.GetAgentParameters$ = exports.GetAgentParameters$outboundSchema = exports.GetAgentParameters$inboundSchema = exports.GetAgentWebSearchOptions$ = exports.GetAgentWebSearchOptions$outboundSchema = exports.GetAgentWebSearchOptions$inboundSchema = exports.GetAgentModalities$ = exports.GetAgentModalities$outboundSchema = void 0;
42
+ exports.GetAgentResponseBody$outboundSchema = exports.GetAgentResponseBody$inboundSchema = exports.GetAgentHiddenPanels$ = exports.GetAgentHiddenPanels$outboundSchema = exports.GetAgentHiddenPanels$inboundSchema = exports.GetAgentKnowledgeBases$ = exports.GetAgentKnowledgeBases$outboundSchema = exports.GetAgentKnowledgeBases$inboundSchema = exports.GetAgentMetrics$ = exports.GetAgentMetrics$outboundSchema = exports.GetAgentMetrics$inboundSchema = exports.GetAgentTeamOfAgents$ = exports.GetAgentTeamOfAgents$outboundSchema = exports.GetAgentTeamOfAgents$inboundSchema = exports.GetAgentModel$ = exports.GetAgentModel$outboundSchema = exports.GetAgentModel$inboundSchema = exports.GetAgentFallbackModels$ = exports.GetAgentFallbackModels$outboundSchema = exports.GetAgentFallbackModels$inboundSchema = exports.GetAgentFallbackModels2$ = exports.GetAgentFallbackModels2$outboundSchema = exports.GetAgentFallbackModels2$inboundSchema = exports.GetAgentFallbackModelsParameters$ = exports.GetAgentFallbackModelsParameters$outboundSchema = exports.GetAgentFallbackModelsParameters$inboundSchema = exports.GetAgentFallbackModelsWebSearchOptions$ = exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema = exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema = exports.GetAgentFallbackModelsModalities$ = exports.GetAgentFallbackModelsModalities$outboundSchema = exports.GetAgentFallbackModelsModalities$inboundSchema = exports.GetAgentFallbackModelsToolChoice$ = exports.GetAgentFallbackModelsToolChoice$outboundSchema = exports.GetAgentFallbackModelsToolChoice$inboundSchema = exports.GetAgentToolChoiceAgents1$ = exports.GetAgentToolChoiceAgents1$outboundSchema = exports.GetAgentToolChoiceAgents1$inboundSchema = exports.GetAgentToolChoiceAgents2$ = exports.GetAgentToolChoiceAgents2$outboundSchema = exports.GetAgentToolChoiceAgents2$inboundSchema = exports.GetAgentToolChoiceAgentsFunction$ = exports.GetAgentToolChoiceAgentsFunction$outboundSchema = exports.GetAgentToolChoiceAgentsFunction$inboundSchema = exports.GetAgentToolChoiceAgentsType$ = exports.GetAgentToolChoiceAgentsType$outboundSchema = exports.GetAgentToolChoiceAgentsType$inboundSchema = exports.GetAgentFallbackModelsThinking$ = exports.GetAgentFallbackModelsThinking$outboundSchema = exports.GetAgentFallbackModelsThinking$inboundSchema = void 0;
43
+ exports.GetAgentResponseBody$ = void 0;
40
44
  exports.getAgentRequestToJSON = getAgentRequestToJSON;
41
45
  exports.getAgentRequestFromJSON = getAgentRequestFromJSON;
42
46
  exports.getAgentConditionsToJSON = getAgentConditionsToJSON;
@@ -45,6 +49,66 @@ exports.getAgentToolsToJSON = getAgentToolsToJSON;
45
49
  exports.getAgentToolsFromJSON = getAgentToolsFromJSON;
46
50
  exports.getAgentSettingsToJSON = getAgentSettingsToJSON;
47
51
  exports.getAgentSettingsFromJSON = getAgentSettingsFromJSON;
52
+ exports.getAgentAudioToJSON = getAgentAudioToJSON;
53
+ exports.getAgentAudioFromJSON = getAgentAudioFromJSON;
54
+ exports.getAgentResponseFormatJsonSchemaToJSON = getAgentResponseFormatJsonSchemaToJSON;
55
+ exports.getAgentResponseFormatJsonSchemaFromJSON = getAgentResponseFormatJsonSchemaFromJSON;
56
+ exports.getAgentResponseFormat3ToJSON = getAgentResponseFormat3ToJSON;
57
+ exports.getAgentResponseFormat3FromJSON = getAgentResponseFormat3FromJSON;
58
+ exports.getAgentResponseFormat2ToJSON = getAgentResponseFormat2ToJSON;
59
+ exports.getAgentResponseFormat2FromJSON = getAgentResponseFormat2FromJSON;
60
+ exports.getAgentResponseFormat1ToJSON = getAgentResponseFormat1ToJSON;
61
+ exports.getAgentResponseFormat1FromJSON = getAgentResponseFormat1FromJSON;
62
+ exports.getAgentResponseFormatToJSON = getAgentResponseFormatToJSON;
63
+ exports.getAgentResponseFormatFromJSON = getAgentResponseFormatFromJSON;
64
+ exports.getAgentStopToJSON = getAgentStopToJSON;
65
+ exports.getAgentStopFromJSON = getAgentStopFromJSON;
66
+ exports.getAgentStreamOptionsToJSON = getAgentStreamOptionsToJSON;
67
+ exports.getAgentStreamOptionsFromJSON = getAgentStreamOptionsFromJSON;
68
+ exports.getAgentThinkingToJSON = getAgentThinkingToJSON;
69
+ exports.getAgentThinkingFromJSON = getAgentThinkingFromJSON;
70
+ exports.getAgentToolChoiceFunctionToJSON = getAgentToolChoiceFunctionToJSON;
71
+ exports.getAgentToolChoiceFunctionFromJSON = getAgentToolChoiceFunctionFromJSON;
72
+ exports.getAgentToolChoice2ToJSON = getAgentToolChoice2ToJSON;
73
+ exports.getAgentToolChoice2FromJSON = getAgentToolChoice2FromJSON;
74
+ exports.getAgentToolChoiceToJSON = getAgentToolChoiceToJSON;
75
+ exports.getAgentToolChoiceFromJSON = getAgentToolChoiceFromJSON;
76
+ exports.getAgentWebSearchOptionsToJSON = getAgentWebSearchOptionsToJSON;
77
+ exports.getAgentWebSearchOptionsFromJSON = getAgentWebSearchOptionsFromJSON;
78
+ exports.getAgentParametersToJSON = getAgentParametersToJSON;
79
+ exports.getAgentParametersFromJSON = getAgentParametersFromJSON;
80
+ exports.getAgentFallbackModelsAudioToJSON = getAgentFallbackModelsAudioToJSON;
81
+ exports.getAgentFallbackModelsAudioFromJSON = getAgentFallbackModelsAudioFromJSON;
82
+ exports.getAgentResponseFormatAgentsJsonSchemaToJSON = getAgentResponseFormatAgentsJsonSchemaToJSON;
83
+ exports.getAgentResponseFormatAgentsJsonSchemaFromJSON = getAgentResponseFormatAgentsJsonSchemaFromJSON;
84
+ exports.getAgentResponseFormatAgents3ToJSON = getAgentResponseFormatAgents3ToJSON;
85
+ exports.getAgentResponseFormatAgents3FromJSON = getAgentResponseFormatAgents3FromJSON;
86
+ exports.getAgentResponseFormatAgents2ToJSON = getAgentResponseFormatAgents2ToJSON;
87
+ exports.getAgentResponseFormatAgents2FromJSON = getAgentResponseFormatAgents2FromJSON;
88
+ exports.getAgentResponseFormatAgents1ToJSON = getAgentResponseFormatAgents1ToJSON;
89
+ exports.getAgentResponseFormatAgents1FromJSON = getAgentResponseFormatAgents1FromJSON;
90
+ exports.getAgentFallbackModelsResponseFormatToJSON = getAgentFallbackModelsResponseFormatToJSON;
91
+ exports.getAgentFallbackModelsResponseFormatFromJSON = getAgentFallbackModelsResponseFormatFromJSON;
92
+ exports.getAgentFallbackModelsStopToJSON = getAgentFallbackModelsStopToJSON;
93
+ exports.getAgentFallbackModelsStopFromJSON = getAgentFallbackModelsStopFromJSON;
94
+ exports.getAgentFallbackModelsStreamOptionsToJSON = getAgentFallbackModelsStreamOptionsToJSON;
95
+ exports.getAgentFallbackModelsStreamOptionsFromJSON = getAgentFallbackModelsStreamOptionsFromJSON;
96
+ exports.getAgentFallbackModelsThinkingToJSON = getAgentFallbackModelsThinkingToJSON;
97
+ exports.getAgentFallbackModelsThinkingFromJSON = getAgentFallbackModelsThinkingFromJSON;
98
+ exports.getAgentToolChoiceAgentsFunctionToJSON = getAgentToolChoiceAgentsFunctionToJSON;
99
+ exports.getAgentToolChoiceAgentsFunctionFromJSON = getAgentToolChoiceAgentsFunctionFromJSON;
100
+ exports.getAgentToolChoiceAgents2ToJSON = getAgentToolChoiceAgents2ToJSON;
101
+ exports.getAgentToolChoiceAgents2FromJSON = getAgentToolChoiceAgents2FromJSON;
102
+ exports.getAgentFallbackModelsToolChoiceToJSON = getAgentFallbackModelsToolChoiceToJSON;
103
+ exports.getAgentFallbackModelsToolChoiceFromJSON = getAgentFallbackModelsToolChoiceFromJSON;
104
+ exports.getAgentFallbackModelsWebSearchOptionsToJSON = getAgentFallbackModelsWebSearchOptionsToJSON;
105
+ exports.getAgentFallbackModelsWebSearchOptionsFromJSON = getAgentFallbackModelsWebSearchOptionsFromJSON;
106
+ exports.getAgentFallbackModelsParametersToJSON = getAgentFallbackModelsParametersToJSON;
107
+ exports.getAgentFallbackModelsParametersFromJSON = getAgentFallbackModelsParametersFromJSON;
108
+ exports.getAgentFallbackModels2ToJSON = getAgentFallbackModels2ToJSON;
109
+ exports.getAgentFallbackModels2FromJSON = getAgentFallbackModels2FromJSON;
110
+ exports.getAgentFallbackModelsToJSON = getAgentFallbackModelsToJSON;
111
+ exports.getAgentFallbackModelsFromJSON = getAgentFallbackModelsFromJSON;
48
112
  exports.getAgentModelToJSON = getAgentModelToJSON;
49
113
  exports.getAgentModelFromJSON = getAgentModelFromJSON;
50
114
  exports.getAgentTeamOfAgentsToJSON = getAgentTeamOfAgentsToJSON;
@@ -75,6 +139,110 @@ exports.GetAgentToolApprovalRequired = {
75
139
  RespectTool: "respect_tool",
76
140
  None: "none",
77
141
  };
142
+ /**
143
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
144
+ */
145
+ exports.GetAgentVoice = {
146
+ Alloy: "alloy",
147
+ Echo: "echo",
148
+ Fable: "fable",
149
+ Onyx: "onyx",
150
+ Nova: "nova",
151
+ Shimmer: "shimmer",
152
+ };
153
+ /**
154
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
155
+ */
156
+ exports.GetAgentFormat = {
157
+ Wav: "wav",
158
+ Mp3: "mp3",
159
+ Flac: "flac",
160
+ Opus: "opus",
161
+ Pcm16: "pcm16",
162
+ };
163
+ exports.GetAgentResponseFormatAgentsResponseType = {
164
+ JsonSchema: "json_schema",
165
+ };
166
+ exports.GetAgentResponseFormatAgentsType = {
167
+ JsonObject: "json_object",
168
+ };
169
+ exports.GetAgentResponseFormatType = {
170
+ Text: "text",
171
+ };
172
+ /**
173
+ * Enables or disables the thinking mode capability
174
+ */
175
+ exports.GetAgentType = {
176
+ Enabled: "enabled",
177
+ Disabled: "disabled",
178
+ };
179
+ /**
180
+ * The type of the tool. Currently, only function is supported.
181
+ */
182
+ exports.GetAgentToolChoiceType = {
183
+ Function: "function",
184
+ };
185
+ exports.GetAgentToolChoice1 = {
186
+ None: "none",
187
+ Auto: "auto",
188
+ Required: "required",
189
+ };
190
+ exports.GetAgentModalities = {
191
+ Text: "text",
192
+ Audio: "audio",
193
+ };
194
+ /**
195
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
196
+ */
197
+ exports.GetAgentFallbackModelsVoice = {
198
+ Alloy: "alloy",
199
+ Echo: "echo",
200
+ Fable: "fable",
201
+ Onyx: "onyx",
202
+ Nova: "nova",
203
+ Shimmer: "shimmer",
204
+ };
205
+ /**
206
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
207
+ */
208
+ exports.GetAgentFallbackModelsFormat = {
209
+ Wav: "wav",
210
+ Mp3: "mp3",
211
+ Flac: "flac",
212
+ Opus: "opus",
213
+ Pcm16: "pcm16",
214
+ };
215
+ exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
216
+ JsonSchema: "json_schema",
217
+ };
218
+ exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType = {
219
+ JsonObject: "json_object",
220
+ };
221
+ exports.GetAgentResponseFormatAgentsResponse200Type = {
222
+ Text: "text",
223
+ };
224
+ /**
225
+ * Enables or disables the thinking mode capability
226
+ */
227
+ exports.GetAgentFallbackModelsType = {
228
+ Enabled: "enabled",
229
+ Disabled: "disabled",
230
+ };
231
+ /**
232
+ * The type of the tool. Currently, only function is supported.
233
+ */
234
+ exports.GetAgentToolChoiceAgentsType = {
235
+ Function: "function",
236
+ };
237
+ exports.GetAgentToolChoiceAgents1 = {
238
+ None: "none",
239
+ Auto: "auto",
240
+ Required: "required",
241
+ };
242
+ exports.GetAgentFallbackModelsModalities = {
243
+ Text: "text",
244
+ Audio: "audio",
245
+ };
78
246
  exports.GetAgentHiddenPanels = {
79
247
  Model: "model",
80
248
  Tools: "tools",
@@ -271,31 +439,1329 @@ function getAgentSettingsFromJSON(jsonString) {
271
439
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentSettings' from JSON`);
272
440
  }
273
441
  /** @internal */
442
+ exports.GetAgentVoice$inboundSchema = z.nativeEnum(exports.GetAgentVoice);
443
+ /** @internal */
444
+ exports.GetAgentVoice$outboundSchema = exports.GetAgentVoice$inboundSchema;
445
+ /**
446
+ * @internal
447
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
448
+ */
449
+ var GetAgentVoice$;
450
+ (function (GetAgentVoice$) {
451
+ /** @deprecated use `GetAgentVoice$inboundSchema` instead. */
452
+ GetAgentVoice$.inboundSchema = exports.GetAgentVoice$inboundSchema;
453
+ /** @deprecated use `GetAgentVoice$outboundSchema` instead. */
454
+ GetAgentVoice$.outboundSchema = exports.GetAgentVoice$outboundSchema;
455
+ })(GetAgentVoice$ || (exports.GetAgentVoice$ = GetAgentVoice$ = {}));
456
+ /** @internal */
457
+ exports.GetAgentFormat$inboundSchema = z.nativeEnum(exports.GetAgentFormat);
458
+ /** @internal */
459
+ exports.GetAgentFormat$outboundSchema = exports.GetAgentFormat$inboundSchema;
460
+ /**
461
+ * @internal
462
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
463
+ */
464
+ var GetAgentFormat$;
465
+ (function (GetAgentFormat$) {
466
+ /** @deprecated use `GetAgentFormat$inboundSchema` instead. */
467
+ GetAgentFormat$.inboundSchema = exports.GetAgentFormat$inboundSchema;
468
+ /** @deprecated use `GetAgentFormat$outboundSchema` instead. */
469
+ GetAgentFormat$.outboundSchema = exports.GetAgentFormat$outboundSchema;
470
+ })(GetAgentFormat$ || (exports.GetAgentFormat$ = GetAgentFormat$ = {}));
471
+ /** @internal */
472
+ exports.GetAgentAudio$inboundSchema = z.object({
473
+ voice: exports.GetAgentVoice$inboundSchema,
474
+ format: exports.GetAgentFormat$inboundSchema,
475
+ });
476
+ /** @internal */
477
+ exports.GetAgentAudio$outboundSchema = z.object({
478
+ voice: exports.GetAgentVoice$outboundSchema,
479
+ format: exports.GetAgentFormat$outboundSchema,
480
+ });
481
+ /**
482
+ * @internal
483
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
484
+ */
485
+ var GetAgentAudio$;
486
+ (function (GetAgentAudio$) {
487
+ /** @deprecated use `GetAgentAudio$inboundSchema` instead. */
488
+ GetAgentAudio$.inboundSchema = exports.GetAgentAudio$inboundSchema;
489
+ /** @deprecated use `GetAgentAudio$outboundSchema` instead. */
490
+ GetAgentAudio$.outboundSchema = exports.GetAgentAudio$outboundSchema;
491
+ })(GetAgentAudio$ || (exports.GetAgentAudio$ = GetAgentAudio$ = {}));
492
+ function getAgentAudioToJSON(getAgentAudio) {
493
+ return JSON.stringify(exports.GetAgentAudio$outboundSchema.parse(getAgentAudio));
494
+ }
495
+ function getAgentAudioFromJSON(jsonString) {
496
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentAudio' from JSON`);
497
+ }
498
+ /** @internal */
499
+ exports.GetAgentResponseFormatAgentsResponseType$inboundSchema = z
500
+ .nativeEnum(exports.GetAgentResponseFormatAgentsResponseType);
501
+ /** @internal */
502
+ exports.GetAgentResponseFormatAgentsResponseType$outboundSchema = exports.GetAgentResponseFormatAgentsResponseType$inboundSchema;
503
+ /**
504
+ * @internal
505
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
506
+ */
507
+ var GetAgentResponseFormatAgentsResponseType$;
508
+ (function (GetAgentResponseFormatAgentsResponseType$) {
509
+ /** @deprecated use `GetAgentResponseFormatAgentsResponseType$inboundSchema` instead. */
510
+ GetAgentResponseFormatAgentsResponseType$.inboundSchema = exports.GetAgentResponseFormatAgentsResponseType$inboundSchema;
511
+ /** @deprecated use `GetAgentResponseFormatAgentsResponseType$outboundSchema` instead. */
512
+ GetAgentResponseFormatAgentsResponseType$.outboundSchema = exports.GetAgentResponseFormatAgentsResponseType$outboundSchema;
513
+ })(GetAgentResponseFormatAgentsResponseType$ || (exports.GetAgentResponseFormatAgentsResponseType$ = GetAgentResponseFormatAgentsResponseType$ = {}));
514
+ /** @internal */
515
+ exports.GetAgentResponseFormatJsonSchema$inboundSchema = z.object({
516
+ description: z.string().optional(),
517
+ name: z.string(),
518
+ schema: z.any().optional(),
519
+ strict: z.boolean().optional(),
520
+ });
521
+ /** @internal */
522
+ exports.GetAgentResponseFormatJsonSchema$outboundSchema = z.object({
523
+ description: z.string().optional(),
524
+ name: z.string(),
525
+ schema: z.any().optional(),
526
+ strict: z.boolean().optional(),
527
+ });
528
+ /**
529
+ * @internal
530
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
531
+ */
532
+ var GetAgentResponseFormatJsonSchema$;
533
+ (function (GetAgentResponseFormatJsonSchema$) {
534
+ /** @deprecated use `GetAgentResponseFormatJsonSchema$inboundSchema` instead. */
535
+ GetAgentResponseFormatJsonSchema$.inboundSchema = exports.GetAgentResponseFormatJsonSchema$inboundSchema;
536
+ /** @deprecated use `GetAgentResponseFormatJsonSchema$outboundSchema` instead. */
537
+ GetAgentResponseFormatJsonSchema$.outboundSchema = exports.GetAgentResponseFormatJsonSchema$outboundSchema;
538
+ })(GetAgentResponseFormatJsonSchema$ || (exports.GetAgentResponseFormatJsonSchema$ = GetAgentResponseFormatJsonSchema$ = {}));
539
+ function getAgentResponseFormatJsonSchemaToJSON(getAgentResponseFormatJsonSchema) {
540
+ return JSON.stringify(exports.GetAgentResponseFormatJsonSchema$outboundSchema.parse(getAgentResponseFormatJsonSchema));
541
+ }
542
+ function getAgentResponseFormatJsonSchemaFromJSON(jsonString) {
543
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatJsonSchema' from JSON`);
544
+ }
545
+ /** @internal */
546
+ exports.GetAgentResponseFormat3$inboundSchema = z.object({
547
+ type: exports.GetAgentResponseFormatAgentsResponseType$inboundSchema,
548
+ json_schema: z.lazy(() => exports.GetAgentResponseFormatJsonSchema$inboundSchema),
549
+ }).transform((v) => {
550
+ return (0, primitives_js_1.remap)(v, {
551
+ "json_schema": "jsonSchema",
552
+ });
553
+ });
554
+ /** @internal */
555
+ exports.GetAgentResponseFormat3$outboundSchema = z.object({
556
+ type: exports.GetAgentResponseFormatAgentsResponseType$outboundSchema,
557
+ jsonSchema: z.lazy(() => exports.GetAgentResponseFormatJsonSchema$outboundSchema),
558
+ }).transform((v) => {
559
+ return (0, primitives_js_1.remap)(v, {
560
+ jsonSchema: "json_schema",
561
+ });
562
+ });
563
+ /**
564
+ * @internal
565
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
566
+ */
567
+ var GetAgentResponseFormat3$;
568
+ (function (GetAgentResponseFormat3$) {
569
+ /** @deprecated use `GetAgentResponseFormat3$inboundSchema` instead. */
570
+ GetAgentResponseFormat3$.inboundSchema = exports.GetAgentResponseFormat3$inboundSchema;
571
+ /** @deprecated use `GetAgentResponseFormat3$outboundSchema` instead. */
572
+ GetAgentResponseFormat3$.outboundSchema = exports.GetAgentResponseFormat3$outboundSchema;
573
+ })(GetAgentResponseFormat3$ || (exports.GetAgentResponseFormat3$ = GetAgentResponseFormat3$ = {}));
574
+ function getAgentResponseFormat3ToJSON(getAgentResponseFormat3) {
575
+ return JSON.stringify(exports.GetAgentResponseFormat3$outboundSchema.parse(getAgentResponseFormat3));
576
+ }
577
+ function getAgentResponseFormat3FromJSON(jsonString) {
578
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat3' from JSON`);
579
+ }
580
+ /** @internal */
581
+ exports.GetAgentResponseFormatAgentsType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatAgentsType);
582
+ /** @internal */
583
+ exports.GetAgentResponseFormatAgentsType$outboundSchema = exports.GetAgentResponseFormatAgentsType$inboundSchema;
584
+ /**
585
+ * @internal
586
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
587
+ */
588
+ var GetAgentResponseFormatAgentsType$;
589
+ (function (GetAgentResponseFormatAgentsType$) {
590
+ /** @deprecated use `GetAgentResponseFormatAgentsType$inboundSchema` instead. */
591
+ GetAgentResponseFormatAgentsType$.inboundSchema = exports.GetAgentResponseFormatAgentsType$inboundSchema;
592
+ /** @deprecated use `GetAgentResponseFormatAgentsType$outboundSchema` instead. */
593
+ GetAgentResponseFormatAgentsType$.outboundSchema = exports.GetAgentResponseFormatAgentsType$outboundSchema;
594
+ })(GetAgentResponseFormatAgentsType$ || (exports.GetAgentResponseFormatAgentsType$ = GetAgentResponseFormatAgentsType$ = {}));
595
+ /** @internal */
596
+ exports.GetAgentResponseFormat2$inboundSchema = z.object({
597
+ type: exports.GetAgentResponseFormatAgentsType$inboundSchema,
598
+ });
599
+ /** @internal */
600
+ exports.GetAgentResponseFormat2$outboundSchema = z.object({
601
+ type: exports.GetAgentResponseFormatAgentsType$outboundSchema,
602
+ });
603
+ /**
604
+ * @internal
605
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
606
+ */
607
+ var GetAgentResponseFormat2$;
608
+ (function (GetAgentResponseFormat2$) {
609
+ /** @deprecated use `GetAgentResponseFormat2$inboundSchema` instead. */
610
+ GetAgentResponseFormat2$.inboundSchema = exports.GetAgentResponseFormat2$inboundSchema;
611
+ /** @deprecated use `GetAgentResponseFormat2$outboundSchema` instead. */
612
+ GetAgentResponseFormat2$.outboundSchema = exports.GetAgentResponseFormat2$outboundSchema;
613
+ })(GetAgentResponseFormat2$ || (exports.GetAgentResponseFormat2$ = GetAgentResponseFormat2$ = {}));
614
+ function getAgentResponseFormat2ToJSON(getAgentResponseFormat2) {
615
+ return JSON.stringify(exports.GetAgentResponseFormat2$outboundSchema.parse(getAgentResponseFormat2));
616
+ }
617
+ function getAgentResponseFormat2FromJSON(jsonString) {
618
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat2' from JSON`);
619
+ }
620
+ /** @internal */
621
+ exports.GetAgentResponseFormatType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatType);
622
+ /** @internal */
623
+ exports.GetAgentResponseFormatType$outboundSchema = exports.GetAgentResponseFormatType$inboundSchema;
624
+ /**
625
+ * @internal
626
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
627
+ */
628
+ var GetAgentResponseFormatType$;
629
+ (function (GetAgentResponseFormatType$) {
630
+ /** @deprecated use `GetAgentResponseFormatType$inboundSchema` instead. */
631
+ GetAgentResponseFormatType$.inboundSchema = exports.GetAgentResponseFormatType$inboundSchema;
632
+ /** @deprecated use `GetAgentResponseFormatType$outboundSchema` instead. */
633
+ GetAgentResponseFormatType$.outboundSchema = exports.GetAgentResponseFormatType$outboundSchema;
634
+ })(GetAgentResponseFormatType$ || (exports.GetAgentResponseFormatType$ = GetAgentResponseFormatType$ = {}));
635
+ /** @internal */
636
+ exports.GetAgentResponseFormat1$inboundSchema = z.object({
637
+ type: exports.GetAgentResponseFormatType$inboundSchema,
638
+ });
639
+ /** @internal */
640
+ exports.GetAgentResponseFormat1$outboundSchema = z.object({
641
+ type: exports.GetAgentResponseFormatType$outboundSchema,
642
+ });
643
+ /**
644
+ * @internal
645
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
646
+ */
647
+ var GetAgentResponseFormat1$;
648
+ (function (GetAgentResponseFormat1$) {
649
+ /** @deprecated use `GetAgentResponseFormat1$inboundSchema` instead. */
650
+ GetAgentResponseFormat1$.inboundSchema = exports.GetAgentResponseFormat1$inboundSchema;
651
+ /** @deprecated use `GetAgentResponseFormat1$outboundSchema` instead. */
652
+ GetAgentResponseFormat1$.outboundSchema = exports.GetAgentResponseFormat1$outboundSchema;
653
+ })(GetAgentResponseFormat1$ || (exports.GetAgentResponseFormat1$ = GetAgentResponseFormat1$ = {}));
654
+ function getAgentResponseFormat1ToJSON(getAgentResponseFormat1) {
655
+ return JSON.stringify(exports.GetAgentResponseFormat1$outboundSchema.parse(getAgentResponseFormat1));
656
+ }
657
+ function getAgentResponseFormat1FromJSON(jsonString) {
658
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat1' from JSON`);
659
+ }
660
+ /** @internal */
661
+ exports.GetAgentResponseFormat$inboundSchema = z.union([
662
+ z.lazy(() => exports.GetAgentResponseFormat3$inboundSchema),
663
+ z.lazy(() => exports.GetAgentResponseFormat1$inboundSchema),
664
+ z.lazy(() => exports.GetAgentResponseFormat2$inboundSchema),
665
+ ]);
666
+ /** @internal */
667
+ exports.GetAgentResponseFormat$outboundSchema = z.union([
668
+ z.lazy(() => exports.GetAgentResponseFormat3$outboundSchema),
669
+ z.lazy(() => exports.GetAgentResponseFormat1$outboundSchema),
670
+ z.lazy(() => exports.GetAgentResponseFormat2$outboundSchema),
671
+ ]);
672
+ /**
673
+ * @internal
674
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
675
+ */
676
+ var GetAgentResponseFormat$;
677
+ (function (GetAgentResponseFormat$) {
678
+ /** @deprecated use `GetAgentResponseFormat$inboundSchema` instead. */
679
+ GetAgentResponseFormat$.inboundSchema = exports.GetAgentResponseFormat$inboundSchema;
680
+ /** @deprecated use `GetAgentResponseFormat$outboundSchema` instead. */
681
+ GetAgentResponseFormat$.outboundSchema = exports.GetAgentResponseFormat$outboundSchema;
682
+ })(GetAgentResponseFormat$ || (exports.GetAgentResponseFormat$ = GetAgentResponseFormat$ = {}));
683
+ function getAgentResponseFormatToJSON(getAgentResponseFormat) {
684
+ return JSON.stringify(exports.GetAgentResponseFormat$outboundSchema.parse(getAgentResponseFormat));
685
+ }
686
+ function getAgentResponseFormatFromJSON(jsonString) {
687
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormat' from JSON`);
688
+ }
689
+ /** @internal */
690
+ exports.GetAgentStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
691
+ /** @internal */
692
+ exports.GetAgentStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
693
+ /**
694
+ * @internal
695
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
696
+ */
697
+ var GetAgentStop$;
698
+ (function (GetAgentStop$) {
699
+ /** @deprecated use `GetAgentStop$inboundSchema` instead. */
700
+ GetAgentStop$.inboundSchema = exports.GetAgentStop$inboundSchema;
701
+ /** @deprecated use `GetAgentStop$outboundSchema` instead. */
702
+ GetAgentStop$.outboundSchema = exports.GetAgentStop$outboundSchema;
703
+ })(GetAgentStop$ || (exports.GetAgentStop$ = GetAgentStop$ = {}));
704
+ function getAgentStopToJSON(getAgentStop) {
705
+ return JSON.stringify(exports.GetAgentStop$outboundSchema.parse(getAgentStop));
706
+ }
707
+ function getAgentStopFromJSON(jsonString) {
708
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentStop' from JSON`);
709
+ }
710
+ /** @internal */
711
+ exports.GetAgentStreamOptions$inboundSchema = z.object({
712
+ include_usage: z.boolean().optional(),
713
+ }).transform((v) => {
714
+ return (0, primitives_js_1.remap)(v, {
715
+ "include_usage": "includeUsage",
716
+ });
717
+ });
718
+ /** @internal */
719
+ exports.GetAgentStreamOptions$outboundSchema = z.object({
720
+ includeUsage: z.boolean().optional(),
721
+ }).transform((v) => {
722
+ return (0, primitives_js_1.remap)(v, {
723
+ includeUsage: "include_usage",
724
+ });
725
+ });
726
+ /**
727
+ * @internal
728
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
729
+ */
730
+ var GetAgentStreamOptions$;
731
+ (function (GetAgentStreamOptions$) {
732
+ /** @deprecated use `GetAgentStreamOptions$inboundSchema` instead. */
733
+ GetAgentStreamOptions$.inboundSchema = exports.GetAgentStreamOptions$inboundSchema;
734
+ /** @deprecated use `GetAgentStreamOptions$outboundSchema` instead. */
735
+ GetAgentStreamOptions$.outboundSchema = exports.GetAgentStreamOptions$outboundSchema;
736
+ })(GetAgentStreamOptions$ || (exports.GetAgentStreamOptions$ = GetAgentStreamOptions$ = {}));
737
+ function getAgentStreamOptionsToJSON(getAgentStreamOptions) {
738
+ return JSON.stringify(exports.GetAgentStreamOptions$outboundSchema.parse(getAgentStreamOptions));
739
+ }
740
+ function getAgentStreamOptionsFromJSON(jsonString) {
741
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentStreamOptions' from JSON`);
742
+ }
743
+ /** @internal */
744
+ exports.GetAgentType$inboundSchema = z.nativeEnum(exports.GetAgentType);
745
+ /** @internal */
746
+ exports.GetAgentType$outboundSchema = exports.GetAgentType$inboundSchema;
747
+ /**
748
+ * @internal
749
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
750
+ */
751
+ var GetAgentType$;
752
+ (function (GetAgentType$) {
753
+ /** @deprecated use `GetAgentType$inboundSchema` instead. */
754
+ GetAgentType$.inboundSchema = exports.GetAgentType$inboundSchema;
755
+ /** @deprecated use `GetAgentType$outboundSchema` instead. */
756
+ GetAgentType$.outboundSchema = exports.GetAgentType$outboundSchema;
757
+ })(GetAgentType$ || (exports.GetAgentType$ = GetAgentType$ = {}));
758
+ /** @internal */
759
+ exports.GetAgentThinking$inboundSchema = z.object({
760
+ type: exports.GetAgentType$inboundSchema,
761
+ budget_tokens: z.number(),
762
+ }).transform((v) => {
763
+ return (0, primitives_js_1.remap)(v, {
764
+ "budget_tokens": "budgetTokens",
765
+ });
766
+ });
767
+ /** @internal */
768
+ exports.GetAgentThinking$outboundSchema = z.object({
769
+ type: exports.GetAgentType$outboundSchema,
770
+ budgetTokens: z.number(),
771
+ }).transform((v) => {
772
+ return (0, primitives_js_1.remap)(v, {
773
+ budgetTokens: "budget_tokens",
774
+ });
775
+ });
776
+ /**
777
+ * @internal
778
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
779
+ */
780
+ var GetAgentThinking$;
781
+ (function (GetAgentThinking$) {
782
+ /** @deprecated use `GetAgentThinking$inboundSchema` instead. */
783
+ GetAgentThinking$.inboundSchema = exports.GetAgentThinking$inboundSchema;
784
+ /** @deprecated use `GetAgentThinking$outboundSchema` instead. */
785
+ GetAgentThinking$.outboundSchema = exports.GetAgentThinking$outboundSchema;
786
+ })(GetAgentThinking$ || (exports.GetAgentThinking$ = GetAgentThinking$ = {}));
787
+ function getAgentThinkingToJSON(getAgentThinking) {
788
+ return JSON.stringify(exports.GetAgentThinking$outboundSchema.parse(getAgentThinking));
789
+ }
790
+ function getAgentThinkingFromJSON(jsonString) {
791
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentThinking' from JSON`);
792
+ }
793
+ /** @internal */
794
+ exports.GetAgentToolChoiceType$inboundSchema = z.nativeEnum(exports.GetAgentToolChoiceType);
795
+ /** @internal */
796
+ exports.GetAgentToolChoiceType$outboundSchema = exports.GetAgentToolChoiceType$inboundSchema;
797
+ /**
798
+ * @internal
799
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
800
+ */
801
+ var GetAgentToolChoiceType$;
802
+ (function (GetAgentToolChoiceType$) {
803
+ /** @deprecated use `GetAgentToolChoiceType$inboundSchema` instead. */
804
+ GetAgentToolChoiceType$.inboundSchema = exports.GetAgentToolChoiceType$inboundSchema;
805
+ /** @deprecated use `GetAgentToolChoiceType$outboundSchema` instead. */
806
+ GetAgentToolChoiceType$.outboundSchema = exports.GetAgentToolChoiceType$outboundSchema;
807
+ })(GetAgentToolChoiceType$ || (exports.GetAgentToolChoiceType$ = GetAgentToolChoiceType$ = {}));
808
+ /** @internal */
809
+ exports.GetAgentToolChoiceFunction$inboundSchema = z.object({
810
+ name: z.string().optional(),
811
+ });
812
+ /** @internal */
813
+ exports.GetAgentToolChoiceFunction$outboundSchema = z.object({
814
+ name: z.string().optional(),
815
+ });
816
+ /**
817
+ * @internal
818
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
819
+ */
820
+ var GetAgentToolChoiceFunction$;
821
+ (function (GetAgentToolChoiceFunction$) {
822
+ /** @deprecated use `GetAgentToolChoiceFunction$inboundSchema` instead. */
823
+ GetAgentToolChoiceFunction$.inboundSchema = exports.GetAgentToolChoiceFunction$inboundSchema;
824
+ /** @deprecated use `GetAgentToolChoiceFunction$outboundSchema` instead. */
825
+ GetAgentToolChoiceFunction$.outboundSchema = exports.GetAgentToolChoiceFunction$outboundSchema;
826
+ })(GetAgentToolChoiceFunction$ || (exports.GetAgentToolChoiceFunction$ = GetAgentToolChoiceFunction$ = {}));
827
+ function getAgentToolChoiceFunctionToJSON(getAgentToolChoiceFunction) {
828
+ return JSON.stringify(exports.GetAgentToolChoiceFunction$outboundSchema.parse(getAgentToolChoiceFunction));
829
+ }
830
+ function getAgentToolChoiceFunctionFromJSON(jsonString) {
831
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoiceFunction' from JSON`);
832
+ }
833
+ /** @internal */
834
+ exports.GetAgentToolChoice2$inboundSchema = z.object({
835
+ type: exports.GetAgentToolChoiceType$inboundSchema.optional(),
836
+ function: z.lazy(() => exports.GetAgentToolChoiceFunction$inboundSchema),
837
+ });
838
+ /** @internal */
839
+ exports.GetAgentToolChoice2$outboundSchema = z.object({
840
+ type: exports.GetAgentToolChoiceType$outboundSchema.optional(),
841
+ function: z.lazy(() => exports.GetAgentToolChoiceFunction$outboundSchema),
842
+ });
843
+ /**
844
+ * @internal
845
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
846
+ */
847
+ var GetAgentToolChoice2$;
848
+ (function (GetAgentToolChoice2$) {
849
+ /** @deprecated use `GetAgentToolChoice2$inboundSchema` instead. */
850
+ GetAgentToolChoice2$.inboundSchema = exports.GetAgentToolChoice2$inboundSchema;
851
+ /** @deprecated use `GetAgentToolChoice2$outboundSchema` instead. */
852
+ GetAgentToolChoice2$.outboundSchema = exports.GetAgentToolChoice2$outboundSchema;
853
+ })(GetAgentToolChoice2$ || (exports.GetAgentToolChoice2$ = GetAgentToolChoice2$ = {}));
854
+ function getAgentToolChoice2ToJSON(getAgentToolChoice2) {
855
+ return JSON.stringify(exports.GetAgentToolChoice2$outboundSchema.parse(getAgentToolChoice2));
856
+ }
857
+ function getAgentToolChoice2FromJSON(jsonString) {
858
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoice2' from JSON`);
859
+ }
860
+ /** @internal */
861
+ exports.GetAgentToolChoice1$inboundSchema = z.nativeEnum(exports.GetAgentToolChoice1);
862
+ /** @internal */
863
+ exports.GetAgentToolChoice1$outboundSchema = exports.GetAgentToolChoice1$inboundSchema;
864
+ /**
865
+ * @internal
866
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
867
+ */
868
+ var GetAgentToolChoice1$;
869
+ (function (GetAgentToolChoice1$) {
870
+ /** @deprecated use `GetAgentToolChoice1$inboundSchema` instead. */
871
+ GetAgentToolChoice1$.inboundSchema = exports.GetAgentToolChoice1$inboundSchema;
872
+ /** @deprecated use `GetAgentToolChoice1$outboundSchema` instead. */
873
+ GetAgentToolChoice1$.outboundSchema = exports.GetAgentToolChoice1$outboundSchema;
874
+ })(GetAgentToolChoice1$ || (exports.GetAgentToolChoice1$ = GetAgentToolChoice1$ = {}));
875
+ /** @internal */
876
+ exports.GetAgentToolChoice$inboundSchema = z.union([
877
+ z.lazy(() => exports.GetAgentToolChoice2$inboundSchema),
878
+ exports.GetAgentToolChoice1$inboundSchema,
879
+ ]);
880
+ /** @internal */
881
+ exports.GetAgentToolChoice$outboundSchema = z.union([
882
+ z.lazy(() => exports.GetAgentToolChoice2$outboundSchema),
883
+ exports.GetAgentToolChoice1$outboundSchema,
884
+ ]);
885
+ /**
886
+ * @internal
887
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
888
+ */
889
+ var GetAgentToolChoice$;
890
+ (function (GetAgentToolChoice$) {
891
+ /** @deprecated use `GetAgentToolChoice$inboundSchema` instead. */
892
+ GetAgentToolChoice$.inboundSchema = exports.GetAgentToolChoice$inboundSchema;
893
+ /** @deprecated use `GetAgentToolChoice$outboundSchema` instead. */
894
+ GetAgentToolChoice$.outboundSchema = exports.GetAgentToolChoice$outboundSchema;
895
+ })(GetAgentToolChoice$ || (exports.GetAgentToolChoice$ = GetAgentToolChoice$ = {}));
896
+ function getAgentToolChoiceToJSON(getAgentToolChoice) {
897
+ return JSON.stringify(exports.GetAgentToolChoice$outboundSchema.parse(getAgentToolChoice));
898
+ }
899
+ function getAgentToolChoiceFromJSON(jsonString) {
900
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoice' from JSON`);
901
+ }
902
+ /** @internal */
903
+ exports.GetAgentModalities$inboundSchema = z.nativeEnum(exports.GetAgentModalities);
904
+ /** @internal */
905
+ exports.GetAgentModalities$outboundSchema = exports.GetAgentModalities$inboundSchema;
906
+ /**
907
+ * @internal
908
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
909
+ */
910
+ var GetAgentModalities$;
911
+ (function (GetAgentModalities$) {
912
+ /** @deprecated use `GetAgentModalities$inboundSchema` instead. */
913
+ GetAgentModalities$.inboundSchema = exports.GetAgentModalities$inboundSchema;
914
+ /** @deprecated use `GetAgentModalities$outboundSchema` instead. */
915
+ GetAgentModalities$.outboundSchema = exports.GetAgentModalities$outboundSchema;
916
+ })(GetAgentModalities$ || (exports.GetAgentModalities$ = GetAgentModalities$ = {}));
917
+ /** @internal */
918
+ exports.GetAgentWebSearchOptions$inboundSchema = z.object({
919
+ enabled: z.boolean().optional(),
920
+ });
921
+ /** @internal */
922
+ exports.GetAgentWebSearchOptions$outboundSchema = z.object({
923
+ enabled: z.boolean().optional(),
924
+ });
925
+ /**
926
+ * @internal
927
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
928
+ */
929
+ var GetAgentWebSearchOptions$;
930
+ (function (GetAgentWebSearchOptions$) {
931
+ /** @deprecated use `GetAgentWebSearchOptions$inboundSchema` instead. */
932
+ GetAgentWebSearchOptions$.inboundSchema = exports.GetAgentWebSearchOptions$inboundSchema;
933
+ /** @deprecated use `GetAgentWebSearchOptions$outboundSchema` instead. */
934
+ GetAgentWebSearchOptions$.outboundSchema = exports.GetAgentWebSearchOptions$outboundSchema;
935
+ })(GetAgentWebSearchOptions$ || (exports.GetAgentWebSearchOptions$ = GetAgentWebSearchOptions$ = {}));
936
+ function getAgentWebSearchOptionsToJSON(getAgentWebSearchOptions) {
937
+ return JSON.stringify(exports.GetAgentWebSearchOptions$outboundSchema.parse(getAgentWebSearchOptions));
938
+ }
939
+ function getAgentWebSearchOptionsFromJSON(jsonString) {
940
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentWebSearchOptions' from JSON`);
941
+ }
942
+ /** @internal */
943
+ exports.GetAgentParameters$inboundSchema = z.object({
944
+ audio: z.nullable(z.lazy(() => exports.GetAgentAudio$inboundSchema)).optional(),
945
+ frequency_penalty: z.nullable(z.number()).optional(),
946
+ max_tokens: z.nullable(z.number().int()).optional(),
947
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
948
+ logprobs: z.nullable(z.boolean()).optional(),
949
+ top_logprobs: z.nullable(z.number().int()).optional(),
950
+ n: z.nullable(z.number().int()).optional(),
951
+ presence_penalty: z.nullable(z.number()).optional(),
952
+ response_format: z.union([
953
+ z.lazy(() => exports.GetAgentResponseFormat3$inboundSchema),
954
+ z.lazy(() => exports.GetAgentResponseFormat1$inboundSchema),
955
+ z.lazy(() => exports.GetAgentResponseFormat2$inboundSchema),
956
+ ]).optional(),
957
+ reasoning_effort: z.string().optional(),
958
+ verbosity: z.string().optional(),
959
+ seed: z.nullable(z.number()).optional(),
960
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
961
+ stream_options: z.nullable(z.lazy(() => exports.GetAgentStreamOptions$inboundSchema))
962
+ .optional(),
963
+ thinking: z.lazy(() => exports.GetAgentThinking$inboundSchema).optional(),
964
+ temperature: z.nullable(z.number()).optional(),
965
+ top_p: z.nullable(z.number()).optional(),
966
+ top_k: z.nullable(z.number()).optional(),
967
+ tool_choice: z.union([
968
+ z.lazy(() => exports.GetAgentToolChoice2$inboundSchema),
969
+ exports.GetAgentToolChoice1$inboundSchema,
970
+ ]).optional(),
971
+ parallel_tool_calls: z.boolean().optional(),
972
+ modalities: z.nullable(z.array(exports.GetAgentModalities$inboundSchema)).optional(),
973
+ web_search_options: z.lazy(() => exports.GetAgentWebSearchOptions$inboundSchema)
974
+ .optional(),
975
+ }).transform((v) => {
976
+ return (0, primitives_js_1.remap)(v, {
977
+ "frequency_penalty": "frequencyPenalty",
978
+ "max_tokens": "maxTokens",
979
+ "max_completion_tokens": "maxCompletionTokens",
980
+ "top_logprobs": "topLogprobs",
981
+ "presence_penalty": "presencePenalty",
982
+ "response_format": "responseFormat",
983
+ "reasoning_effort": "reasoningEffort",
984
+ "stream_options": "streamOptions",
985
+ "top_p": "topP",
986
+ "top_k": "topK",
987
+ "tool_choice": "toolChoice",
988
+ "parallel_tool_calls": "parallelToolCalls",
989
+ "web_search_options": "webSearchOptions",
990
+ });
991
+ });
992
+ /** @internal */
993
+ exports.GetAgentParameters$outboundSchema = z.object({
994
+ audio: z.nullable(z.lazy(() => exports.GetAgentAudio$outboundSchema)).optional(),
995
+ frequencyPenalty: z.nullable(z.number()).optional(),
996
+ maxTokens: z.nullable(z.number().int()).optional(),
997
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
998
+ logprobs: z.nullable(z.boolean()).optional(),
999
+ topLogprobs: z.nullable(z.number().int()).optional(),
1000
+ n: z.nullable(z.number().int()).optional(),
1001
+ presencePenalty: z.nullable(z.number()).optional(),
1002
+ responseFormat: z.union([
1003
+ z.lazy(() => exports.GetAgentResponseFormat3$outboundSchema),
1004
+ z.lazy(() => exports.GetAgentResponseFormat1$outboundSchema),
1005
+ z.lazy(() => exports.GetAgentResponseFormat2$outboundSchema),
1006
+ ]).optional(),
1007
+ reasoningEffort: z.string().optional(),
1008
+ verbosity: z.string().optional(),
1009
+ seed: z.nullable(z.number()).optional(),
1010
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1011
+ streamOptions: z.nullable(z.lazy(() => exports.GetAgentStreamOptions$outboundSchema))
1012
+ .optional(),
1013
+ thinking: z.lazy(() => exports.GetAgentThinking$outboundSchema).optional(),
1014
+ temperature: z.nullable(z.number()).optional(),
1015
+ topP: z.nullable(z.number()).optional(),
1016
+ topK: z.nullable(z.number()).optional(),
1017
+ toolChoice: z.union([
1018
+ z.lazy(() => exports.GetAgentToolChoice2$outboundSchema),
1019
+ exports.GetAgentToolChoice1$outboundSchema,
1020
+ ]).optional(),
1021
+ parallelToolCalls: z.boolean().optional(),
1022
+ modalities: z.nullable(z.array(exports.GetAgentModalities$outboundSchema)).optional(),
1023
+ webSearchOptions: z.lazy(() => exports.GetAgentWebSearchOptions$outboundSchema)
1024
+ .optional(),
1025
+ }).transform((v) => {
1026
+ return (0, primitives_js_1.remap)(v, {
1027
+ frequencyPenalty: "frequency_penalty",
1028
+ maxTokens: "max_tokens",
1029
+ maxCompletionTokens: "max_completion_tokens",
1030
+ topLogprobs: "top_logprobs",
1031
+ presencePenalty: "presence_penalty",
1032
+ responseFormat: "response_format",
1033
+ reasoningEffort: "reasoning_effort",
1034
+ streamOptions: "stream_options",
1035
+ topP: "top_p",
1036
+ topK: "top_k",
1037
+ toolChoice: "tool_choice",
1038
+ parallelToolCalls: "parallel_tool_calls",
1039
+ webSearchOptions: "web_search_options",
1040
+ });
1041
+ });
1042
+ /**
1043
+ * @internal
1044
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1045
+ */
1046
+ var GetAgentParameters$;
1047
+ (function (GetAgentParameters$) {
1048
+ /** @deprecated use `GetAgentParameters$inboundSchema` instead. */
1049
+ GetAgentParameters$.inboundSchema = exports.GetAgentParameters$inboundSchema;
1050
+ /** @deprecated use `GetAgentParameters$outboundSchema` instead. */
1051
+ GetAgentParameters$.outboundSchema = exports.GetAgentParameters$outboundSchema;
1052
+ })(GetAgentParameters$ || (exports.GetAgentParameters$ = GetAgentParameters$ = {}));
1053
+ function getAgentParametersToJSON(getAgentParameters) {
1054
+ return JSON.stringify(exports.GetAgentParameters$outboundSchema.parse(getAgentParameters));
1055
+ }
1056
+ function getAgentParametersFromJSON(jsonString) {
1057
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentParameters' from JSON`);
1058
+ }
1059
+ /** @internal */
1060
+ exports.GetAgentFallbackModelsVoice$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsVoice);
1061
+ /** @internal */
1062
+ exports.GetAgentFallbackModelsVoice$outboundSchema = exports.GetAgentFallbackModelsVoice$inboundSchema;
1063
+ /**
1064
+ * @internal
1065
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1066
+ */
1067
+ var GetAgentFallbackModelsVoice$;
1068
+ (function (GetAgentFallbackModelsVoice$) {
1069
+ /** @deprecated use `GetAgentFallbackModelsVoice$inboundSchema` instead. */
1070
+ GetAgentFallbackModelsVoice$.inboundSchema = exports.GetAgentFallbackModelsVoice$inboundSchema;
1071
+ /** @deprecated use `GetAgentFallbackModelsVoice$outboundSchema` instead. */
1072
+ GetAgentFallbackModelsVoice$.outboundSchema = exports.GetAgentFallbackModelsVoice$outboundSchema;
1073
+ })(GetAgentFallbackModelsVoice$ || (exports.GetAgentFallbackModelsVoice$ = GetAgentFallbackModelsVoice$ = {}));
1074
+ /** @internal */
1075
+ exports.GetAgentFallbackModelsFormat$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsFormat);
1076
+ /** @internal */
1077
+ exports.GetAgentFallbackModelsFormat$outboundSchema = exports.GetAgentFallbackModelsFormat$inboundSchema;
1078
+ /**
1079
+ * @internal
1080
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1081
+ */
1082
+ var GetAgentFallbackModelsFormat$;
1083
+ (function (GetAgentFallbackModelsFormat$) {
1084
+ /** @deprecated use `GetAgentFallbackModelsFormat$inboundSchema` instead. */
1085
+ GetAgentFallbackModelsFormat$.inboundSchema = exports.GetAgentFallbackModelsFormat$inboundSchema;
1086
+ /** @deprecated use `GetAgentFallbackModelsFormat$outboundSchema` instead. */
1087
+ GetAgentFallbackModelsFormat$.outboundSchema = exports.GetAgentFallbackModelsFormat$outboundSchema;
1088
+ })(GetAgentFallbackModelsFormat$ || (exports.GetAgentFallbackModelsFormat$ = GetAgentFallbackModelsFormat$ = {}));
1089
+ /** @internal */
1090
+ exports.GetAgentFallbackModelsAudio$inboundSchema = z.object({
1091
+ voice: exports.GetAgentFallbackModelsVoice$inboundSchema,
1092
+ format: exports.GetAgentFallbackModelsFormat$inboundSchema,
1093
+ });
1094
+ /** @internal */
1095
+ exports.GetAgentFallbackModelsAudio$outboundSchema = z.object({
1096
+ voice: exports.GetAgentFallbackModelsVoice$outboundSchema,
1097
+ format: exports.GetAgentFallbackModelsFormat$outboundSchema,
1098
+ });
1099
+ /**
1100
+ * @internal
1101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1102
+ */
1103
+ var GetAgentFallbackModelsAudio$;
1104
+ (function (GetAgentFallbackModelsAudio$) {
1105
+ /** @deprecated use `GetAgentFallbackModelsAudio$inboundSchema` instead. */
1106
+ GetAgentFallbackModelsAudio$.inboundSchema = exports.GetAgentFallbackModelsAudio$inboundSchema;
1107
+ /** @deprecated use `GetAgentFallbackModelsAudio$outboundSchema` instead. */
1108
+ GetAgentFallbackModelsAudio$.outboundSchema = exports.GetAgentFallbackModelsAudio$outboundSchema;
1109
+ })(GetAgentFallbackModelsAudio$ || (exports.GetAgentFallbackModelsAudio$ = GetAgentFallbackModelsAudio$ = {}));
1110
+ function getAgentFallbackModelsAudioToJSON(getAgentFallbackModelsAudio) {
1111
+ return JSON.stringify(exports.GetAgentFallbackModelsAudio$outboundSchema.parse(getAgentFallbackModelsAudio));
1112
+ }
1113
+ function getAgentFallbackModelsAudioFromJSON(jsonString) {
1114
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsAudio' from JSON`);
1115
+ }
1116
+ /** @internal */
1117
+ exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
1118
+ /** @internal */
1119
+ exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1120
+ /**
1121
+ * @internal
1122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1123
+ */
1124
+ var GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$;
1125
+ (function (GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$) {
1126
+ /** @deprecated use `GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
1127
+ GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$.inboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1128
+ /** @deprecated use `GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
1129
+ GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$.outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema;
1130
+ })(GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ || (exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ = GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$ = {}));
1131
+ /** @internal */
1132
+ exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema = z.object({
1133
+ description: z.string().optional(),
1134
+ name: z.string(),
1135
+ schema: z.any().optional(),
1136
+ strict: z.boolean().optional(),
1137
+ });
1138
+ /** @internal */
1139
+ exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema = z.object({
1140
+ description: z.string().optional(),
1141
+ name: z.string(),
1142
+ schema: z.any().optional(),
1143
+ strict: z.boolean().optional(),
1144
+ });
1145
+ /**
1146
+ * @internal
1147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1148
+ */
1149
+ var GetAgentResponseFormatAgentsJsonSchema$;
1150
+ (function (GetAgentResponseFormatAgentsJsonSchema$) {
1151
+ /** @deprecated use `GetAgentResponseFormatAgentsJsonSchema$inboundSchema` instead. */
1152
+ GetAgentResponseFormatAgentsJsonSchema$.inboundSchema = exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema;
1153
+ /** @deprecated use `GetAgentResponseFormatAgentsJsonSchema$outboundSchema` instead. */
1154
+ GetAgentResponseFormatAgentsJsonSchema$.outboundSchema = exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema;
1155
+ })(GetAgentResponseFormatAgentsJsonSchema$ || (exports.GetAgentResponseFormatAgentsJsonSchema$ = GetAgentResponseFormatAgentsJsonSchema$ = {}));
1156
+ function getAgentResponseFormatAgentsJsonSchemaToJSON(getAgentResponseFormatAgentsJsonSchema) {
1157
+ return JSON.stringify(exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema.parse(getAgentResponseFormatAgentsJsonSchema));
1158
+ }
1159
+ function getAgentResponseFormatAgentsJsonSchemaFromJSON(jsonString) {
1160
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgentsJsonSchema' from JSON`);
1161
+ }
1162
+ /** @internal */
1163
+ exports.GetAgentResponseFormatAgents3$inboundSchema = z.object({
1164
+ type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1165
+ json_schema: z.lazy(() => exports.GetAgentResponseFormatAgentsJsonSchema$inboundSchema),
1166
+ }).transform((v) => {
1167
+ return (0, primitives_js_1.remap)(v, {
1168
+ "json_schema": "jsonSchema",
1169
+ });
1170
+ });
1171
+ /** @internal */
1172
+ exports.GetAgentResponseFormatAgents3$outboundSchema = z.object({
1173
+ type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1174
+ jsonSchema: z.lazy(() => exports.GetAgentResponseFormatAgentsJsonSchema$outboundSchema),
1175
+ }).transform((v) => {
1176
+ return (0, primitives_js_1.remap)(v, {
1177
+ jsonSchema: "json_schema",
1178
+ });
1179
+ });
1180
+ /**
1181
+ * @internal
1182
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1183
+ */
1184
+ var GetAgentResponseFormatAgents3$;
1185
+ (function (GetAgentResponseFormatAgents3$) {
1186
+ /** @deprecated use `GetAgentResponseFormatAgents3$inboundSchema` instead. */
1187
+ GetAgentResponseFormatAgents3$.inboundSchema = exports.GetAgentResponseFormatAgents3$inboundSchema;
1188
+ /** @deprecated use `GetAgentResponseFormatAgents3$outboundSchema` instead. */
1189
+ GetAgentResponseFormatAgents3$.outboundSchema = exports.GetAgentResponseFormatAgents3$outboundSchema;
1190
+ })(GetAgentResponseFormatAgents3$ || (exports.GetAgentResponseFormatAgents3$ = GetAgentResponseFormatAgents3$ = {}));
1191
+ function getAgentResponseFormatAgents3ToJSON(getAgentResponseFormatAgents3) {
1192
+ return JSON.stringify(exports.GetAgentResponseFormatAgents3$outboundSchema.parse(getAgentResponseFormatAgents3));
1193
+ }
1194
+ function getAgentResponseFormatAgents3FromJSON(jsonString) {
1195
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgents3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgents3' from JSON`);
1196
+ }
1197
+ /** @internal */
1198
+ exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType);
1199
+ /** @internal */
1200
+ exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
1201
+ /**
1202
+ * @internal
1203
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1204
+ */
1205
+ var GetAgentResponseFormatAgentsResponse200ApplicationJSONType$;
1206
+ (function (GetAgentResponseFormatAgentsResponse200ApplicationJSONType$) {
1207
+ /** @deprecated use `GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema` instead. */
1208
+ GetAgentResponseFormatAgentsResponse200ApplicationJSONType$.inboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
1209
+ /** @deprecated use `GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema` instead. */
1210
+ GetAgentResponseFormatAgentsResponse200ApplicationJSONType$.outboundSchema = exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema;
1211
+ })(GetAgentResponseFormatAgentsResponse200ApplicationJSONType$ || (exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$ = GetAgentResponseFormatAgentsResponse200ApplicationJSONType$ = {}));
1212
+ /** @internal */
1213
+ exports.GetAgentResponseFormatAgents2$inboundSchema = z.object({
1214
+ type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
1215
+ });
1216
+ /** @internal */
1217
+ exports.GetAgentResponseFormatAgents2$outboundSchema = z.object({
1218
+ type: exports.GetAgentResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
1219
+ });
1220
+ /**
1221
+ * @internal
1222
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1223
+ */
1224
+ var GetAgentResponseFormatAgents2$;
1225
+ (function (GetAgentResponseFormatAgents2$) {
1226
+ /** @deprecated use `GetAgentResponseFormatAgents2$inboundSchema` instead. */
1227
+ GetAgentResponseFormatAgents2$.inboundSchema = exports.GetAgentResponseFormatAgents2$inboundSchema;
1228
+ /** @deprecated use `GetAgentResponseFormatAgents2$outboundSchema` instead. */
1229
+ GetAgentResponseFormatAgents2$.outboundSchema = exports.GetAgentResponseFormatAgents2$outboundSchema;
1230
+ })(GetAgentResponseFormatAgents2$ || (exports.GetAgentResponseFormatAgents2$ = GetAgentResponseFormatAgents2$ = {}));
1231
+ function getAgentResponseFormatAgents2ToJSON(getAgentResponseFormatAgents2) {
1232
+ return JSON.stringify(exports.GetAgentResponseFormatAgents2$outboundSchema.parse(getAgentResponseFormatAgents2));
1233
+ }
1234
+ function getAgentResponseFormatAgents2FromJSON(jsonString) {
1235
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgents2' from JSON`);
1236
+ }
1237
+ /** @internal */
1238
+ exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema = z
1239
+ .nativeEnum(exports.GetAgentResponseFormatAgentsResponse200Type);
1240
+ /** @internal */
1241
+ exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema;
1242
+ /**
1243
+ * @internal
1244
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1245
+ */
1246
+ var GetAgentResponseFormatAgentsResponse200Type$;
1247
+ (function (GetAgentResponseFormatAgentsResponse200Type$) {
1248
+ /** @deprecated use `GetAgentResponseFormatAgentsResponse200Type$inboundSchema` instead. */
1249
+ GetAgentResponseFormatAgentsResponse200Type$.inboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema;
1250
+ /** @deprecated use `GetAgentResponseFormatAgentsResponse200Type$outboundSchema` instead. */
1251
+ GetAgentResponseFormatAgentsResponse200Type$.outboundSchema = exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema;
1252
+ })(GetAgentResponseFormatAgentsResponse200Type$ || (exports.GetAgentResponseFormatAgentsResponse200Type$ = GetAgentResponseFormatAgentsResponse200Type$ = {}));
1253
+ /** @internal */
1254
+ exports.GetAgentResponseFormatAgents1$inboundSchema = z.object({
1255
+ type: exports.GetAgentResponseFormatAgentsResponse200Type$inboundSchema,
1256
+ });
1257
+ /** @internal */
1258
+ exports.GetAgentResponseFormatAgents1$outboundSchema = z.object({
1259
+ type: exports.GetAgentResponseFormatAgentsResponse200Type$outboundSchema,
1260
+ });
1261
+ /**
1262
+ * @internal
1263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1264
+ */
1265
+ var GetAgentResponseFormatAgents1$;
1266
+ (function (GetAgentResponseFormatAgents1$) {
1267
+ /** @deprecated use `GetAgentResponseFormatAgents1$inboundSchema` instead. */
1268
+ GetAgentResponseFormatAgents1$.inboundSchema = exports.GetAgentResponseFormatAgents1$inboundSchema;
1269
+ /** @deprecated use `GetAgentResponseFormatAgents1$outboundSchema` instead. */
1270
+ GetAgentResponseFormatAgents1$.outboundSchema = exports.GetAgentResponseFormatAgents1$outboundSchema;
1271
+ })(GetAgentResponseFormatAgents1$ || (exports.GetAgentResponseFormatAgents1$ = GetAgentResponseFormatAgents1$ = {}));
1272
+ function getAgentResponseFormatAgents1ToJSON(getAgentResponseFormatAgents1) {
1273
+ return JSON.stringify(exports.GetAgentResponseFormatAgents1$outboundSchema.parse(getAgentResponseFormatAgents1));
1274
+ }
1275
+ function getAgentResponseFormatAgents1FromJSON(jsonString) {
1276
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentResponseFormatAgents1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentResponseFormatAgents1' from JSON`);
1277
+ }
1278
+ /** @internal */
1279
+ exports.GetAgentFallbackModelsResponseFormat$inboundSchema = z.union([
1280
+ z.lazy(() => exports.GetAgentResponseFormatAgents3$inboundSchema),
1281
+ z.lazy(() => exports.GetAgentResponseFormatAgents1$inboundSchema),
1282
+ z.lazy(() => exports.GetAgentResponseFormatAgents2$inboundSchema),
1283
+ ]);
1284
+ /** @internal */
1285
+ exports.GetAgentFallbackModelsResponseFormat$outboundSchema = z.union([
1286
+ z.lazy(() => exports.GetAgentResponseFormatAgents3$outboundSchema),
1287
+ z.lazy(() => exports.GetAgentResponseFormatAgents1$outboundSchema),
1288
+ z.lazy(() => exports.GetAgentResponseFormatAgents2$outboundSchema),
1289
+ ]);
1290
+ /**
1291
+ * @internal
1292
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1293
+ */
1294
+ var GetAgentFallbackModelsResponseFormat$;
1295
+ (function (GetAgentFallbackModelsResponseFormat$) {
1296
+ /** @deprecated use `GetAgentFallbackModelsResponseFormat$inboundSchema` instead. */
1297
+ GetAgentFallbackModelsResponseFormat$.inboundSchema = exports.GetAgentFallbackModelsResponseFormat$inboundSchema;
1298
+ /** @deprecated use `GetAgentFallbackModelsResponseFormat$outboundSchema` instead. */
1299
+ GetAgentFallbackModelsResponseFormat$.outboundSchema = exports.GetAgentFallbackModelsResponseFormat$outboundSchema;
1300
+ })(GetAgentFallbackModelsResponseFormat$ || (exports.GetAgentFallbackModelsResponseFormat$ = GetAgentFallbackModelsResponseFormat$ = {}));
1301
+ function getAgentFallbackModelsResponseFormatToJSON(getAgentFallbackModelsResponseFormat) {
1302
+ return JSON.stringify(exports.GetAgentFallbackModelsResponseFormat$outboundSchema.parse(getAgentFallbackModelsResponseFormat));
1303
+ }
1304
+ function getAgentFallbackModelsResponseFormatFromJSON(jsonString) {
1305
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsResponseFormat' from JSON`);
1306
+ }
1307
+ /** @internal */
1308
+ exports.GetAgentFallbackModelsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
1309
+ /** @internal */
1310
+ exports.GetAgentFallbackModelsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
1311
+ /**
1312
+ * @internal
1313
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1314
+ */
1315
+ var GetAgentFallbackModelsStop$;
1316
+ (function (GetAgentFallbackModelsStop$) {
1317
+ /** @deprecated use `GetAgentFallbackModelsStop$inboundSchema` instead. */
1318
+ GetAgentFallbackModelsStop$.inboundSchema = exports.GetAgentFallbackModelsStop$inboundSchema;
1319
+ /** @deprecated use `GetAgentFallbackModelsStop$outboundSchema` instead. */
1320
+ GetAgentFallbackModelsStop$.outboundSchema = exports.GetAgentFallbackModelsStop$outboundSchema;
1321
+ })(GetAgentFallbackModelsStop$ || (exports.GetAgentFallbackModelsStop$ = GetAgentFallbackModelsStop$ = {}));
1322
+ function getAgentFallbackModelsStopToJSON(getAgentFallbackModelsStop) {
1323
+ return JSON.stringify(exports.GetAgentFallbackModelsStop$outboundSchema.parse(getAgentFallbackModelsStop));
1324
+ }
1325
+ function getAgentFallbackModelsStopFromJSON(jsonString) {
1326
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsStop' from JSON`);
1327
+ }
1328
+ /** @internal */
1329
+ exports.GetAgentFallbackModelsStreamOptions$inboundSchema = z.object({
1330
+ include_usage: z.boolean().optional(),
1331
+ }).transform((v) => {
1332
+ return (0, primitives_js_1.remap)(v, {
1333
+ "include_usage": "includeUsage",
1334
+ });
1335
+ });
1336
+ /** @internal */
1337
+ exports.GetAgentFallbackModelsStreamOptions$outboundSchema = z.object({
1338
+ includeUsage: z.boolean().optional(),
1339
+ }).transform((v) => {
1340
+ return (0, primitives_js_1.remap)(v, {
1341
+ includeUsage: "include_usage",
1342
+ });
1343
+ });
1344
+ /**
1345
+ * @internal
1346
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1347
+ */
1348
+ var GetAgentFallbackModelsStreamOptions$;
1349
+ (function (GetAgentFallbackModelsStreamOptions$) {
1350
+ /** @deprecated use `GetAgentFallbackModelsStreamOptions$inboundSchema` instead. */
1351
+ GetAgentFallbackModelsStreamOptions$.inboundSchema = exports.GetAgentFallbackModelsStreamOptions$inboundSchema;
1352
+ /** @deprecated use `GetAgentFallbackModelsStreamOptions$outboundSchema` instead. */
1353
+ GetAgentFallbackModelsStreamOptions$.outboundSchema = exports.GetAgentFallbackModelsStreamOptions$outboundSchema;
1354
+ })(GetAgentFallbackModelsStreamOptions$ || (exports.GetAgentFallbackModelsStreamOptions$ = GetAgentFallbackModelsStreamOptions$ = {}));
1355
+ function getAgentFallbackModelsStreamOptionsToJSON(getAgentFallbackModelsStreamOptions) {
1356
+ return JSON.stringify(exports.GetAgentFallbackModelsStreamOptions$outboundSchema.parse(getAgentFallbackModelsStreamOptions));
1357
+ }
1358
+ function getAgentFallbackModelsStreamOptionsFromJSON(jsonString) {
1359
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsStreamOptions' from JSON`);
1360
+ }
1361
+ /** @internal */
1362
+ exports.GetAgentFallbackModelsType$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsType);
1363
+ /** @internal */
1364
+ exports.GetAgentFallbackModelsType$outboundSchema = exports.GetAgentFallbackModelsType$inboundSchema;
1365
+ /**
1366
+ * @internal
1367
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1368
+ */
1369
+ var GetAgentFallbackModelsType$;
1370
+ (function (GetAgentFallbackModelsType$) {
1371
+ /** @deprecated use `GetAgentFallbackModelsType$inboundSchema` instead. */
1372
+ GetAgentFallbackModelsType$.inboundSchema = exports.GetAgentFallbackModelsType$inboundSchema;
1373
+ /** @deprecated use `GetAgentFallbackModelsType$outboundSchema` instead. */
1374
+ GetAgentFallbackModelsType$.outboundSchema = exports.GetAgentFallbackModelsType$outboundSchema;
1375
+ })(GetAgentFallbackModelsType$ || (exports.GetAgentFallbackModelsType$ = GetAgentFallbackModelsType$ = {}));
1376
+ /** @internal */
1377
+ exports.GetAgentFallbackModelsThinking$inboundSchema = z.object({
1378
+ type: exports.GetAgentFallbackModelsType$inboundSchema,
1379
+ budget_tokens: z.number(),
1380
+ }).transform((v) => {
1381
+ return (0, primitives_js_1.remap)(v, {
1382
+ "budget_tokens": "budgetTokens",
1383
+ });
1384
+ });
1385
+ /** @internal */
1386
+ exports.GetAgentFallbackModelsThinking$outboundSchema = z.object({
1387
+ type: exports.GetAgentFallbackModelsType$outboundSchema,
1388
+ budgetTokens: z.number(),
1389
+ }).transform((v) => {
1390
+ return (0, primitives_js_1.remap)(v, {
1391
+ budgetTokens: "budget_tokens",
1392
+ });
1393
+ });
1394
+ /**
1395
+ * @internal
1396
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1397
+ */
1398
+ var GetAgentFallbackModelsThinking$;
1399
+ (function (GetAgentFallbackModelsThinking$) {
1400
+ /** @deprecated use `GetAgentFallbackModelsThinking$inboundSchema` instead. */
1401
+ GetAgentFallbackModelsThinking$.inboundSchema = exports.GetAgentFallbackModelsThinking$inboundSchema;
1402
+ /** @deprecated use `GetAgentFallbackModelsThinking$outboundSchema` instead. */
1403
+ GetAgentFallbackModelsThinking$.outboundSchema = exports.GetAgentFallbackModelsThinking$outboundSchema;
1404
+ })(GetAgentFallbackModelsThinking$ || (exports.GetAgentFallbackModelsThinking$ = GetAgentFallbackModelsThinking$ = {}));
1405
+ function getAgentFallbackModelsThinkingToJSON(getAgentFallbackModelsThinking) {
1406
+ return JSON.stringify(exports.GetAgentFallbackModelsThinking$outboundSchema.parse(getAgentFallbackModelsThinking));
1407
+ }
1408
+ function getAgentFallbackModelsThinkingFromJSON(jsonString) {
1409
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsThinking' from JSON`);
1410
+ }
1411
+ /** @internal */
1412
+ exports.GetAgentToolChoiceAgentsType$inboundSchema = z.nativeEnum(exports.GetAgentToolChoiceAgentsType);
1413
+ /** @internal */
1414
+ exports.GetAgentToolChoiceAgentsType$outboundSchema = exports.GetAgentToolChoiceAgentsType$inboundSchema;
1415
+ /**
1416
+ * @internal
1417
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1418
+ */
1419
+ var GetAgentToolChoiceAgentsType$;
1420
+ (function (GetAgentToolChoiceAgentsType$) {
1421
+ /** @deprecated use `GetAgentToolChoiceAgentsType$inboundSchema` instead. */
1422
+ GetAgentToolChoiceAgentsType$.inboundSchema = exports.GetAgentToolChoiceAgentsType$inboundSchema;
1423
+ /** @deprecated use `GetAgentToolChoiceAgentsType$outboundSchema` instead. */
1424
+ GetAgentToolChoiceAgentsType$.outboundSchema = exports.GetAgentToolChoiceAgentsType$outboundSchema;
1425
+ })(GetAgentToolChoiceAgentsType$ || (exports.GetAgentToolChoiceAgentsType$ = GetAgentToolChoiceAgentsType$ = {}));
1426
+ /** @internal */
1427
+ exports.GetAgentToolChoiceAgentsFunction$inboundSchema = z.object({
1428
+ name: z.string().optional(),
1429
+ });
1430
+ /** @internal */
1431
+ exports.GetAgentToolChoiceAgentsFunction$outboundSchema = z.object({
1432
+ name: z.string().optional(),
1433
+ });
1434
+ /**
1435
+ * @internal
1436
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1437
+ */
1438
+ var GetAgentToolChoiceAgentsFunction$;
1439
+ (function (GetAgentToolChoiceAgentsFunction$) {
1440
+ /** @deprecated use `GetAgentToolChoiceAgentsFunction$inboundSchema` instead. */
1441
+ GetAgentToolChoiceAgentsFunction$.inboundSchema = exports.GetAgentToolChoiceAgentsFunction$inboundSchema;
1442
+ /** @deprecated use `GetAgentToolChoiceAgentsFunction$outboundSchema` instead. */
1443
+ GetAgentToolChoiceAgentsFunction$.outboundSchema = exports.GetAgentToolChoiceAgentsFunction$outboundSchema;
1444
+ })(GetAgentToolChoiceAgentsFunction$ || (exports.GetAgentToolChoiceAgentsFunction$ = GetAgentToolChoiceAgentsFunction$ = {}));
1445
+ function getAgentToolChoiceAgentsFunctionToJSON(getAgentToolChoiceAgentsFunction) {
1446
+ return JSON.stringify(exports.GetAgentToolChoiceAgentsFunction$outboundSchema.parse(getAgentToolChoiceAgentsFunction));
1447
+ }
1448
+ function getAgentToolChoiceAgentsFunctionFromJSON(jsonString) {
1449
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoiceAgentsFunction' from JSON`);
1450
+ }
1451
+ /** @internal */
1452
+ exports.GetAgentToolChoiceAgents2$inboundSchema = z.object({
1453
+ type: exports.GetAgentToolChoiceAgentsType$inboundSchema.optional(),
1454
+ function: z.lazy(() => exports.GetAgentToolChoiceAgentsFunction$inboundSchema),
1455
+ });
1456
+ /** @internal */
1457
+ exports.GetAgentToolChoiceAgents2$outboundSchema = z.object({
1458
+ type: exports.GetAgentToolChoiceAgentsType$outboundSchema.optional(),
1459
+ function: z.lazy(() => exports.GetAgentToolChoiceAgentsFunction$outboundSchema),
1460
+ });
1461
+ /**
1462
+ * @internal
1463
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1464
+ */
1465
+ var GetAgentToolChoiceAgents2$;
1466
+ (function (GetAgentToolChoiceAgents2$) {
1467
+ /** @deprecated use `GetAgentToolChoiceAgents2$inboundSchema` instead. */
1468
+ GetAgentToolChoiceAgents2$.inboundSchema = exports.GetAgentToolChoiceAgents2$inboundSchema;
1469
+ /** @deprecated use `GetAgentToolChoiceAgents2$outboundSchema` instead. */
1470
+ GetAgentToolChoiceAgents2$.outboundSchema = exports.GetAgentToolChoiceAgents2$outboundSchema;
1471
+ })(GetAgentToolChoiceAgents2$ || (exports.GetAgentToolChoiceAgents2$ = GetAgentToolChoiceAgents2$ = {}));
1472
+ function getAgentToolChoiceAgents2ToJSON(getAgentToolChoiceAgents2) {
1473
+ return JSON.stringify(exports.GetAgentToolChoiceAgents2$outboundSchema.parse(getAgentToolChoiceAgents2));
1474
+ }
1475
+ function getAgentToolChoiceAgents2FromJSON(jsonString) {
1476
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentToolChoiceAgents2' from JSON`);
1477
+ }
1478
+ /** @internal */
1479
+ exports.GetAgentToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.GetAgentToolChoiceAgents1);
1480
+ /** @internal */
1481
+ exports.GetAgentToolChoiceAgents1$outboundSchema = exports.GetAgentToolChoiceAgents1$inboundSchema;
1482
+ /**
1483
+ * @internal
1484
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1485
+ */
1486
+ var GetAgentToolChoiceAgents1$;
1487
+ (function (GetAgentToolChoiceAgents1$) {
1488
+ /** @deprecated use `GetAgentToolChoiceAgents1$inboundSchema` instead. */
1489
+ GetAgentToolChoiceAgents1$.inboundSchema = exports.GetAgentToolChoiceAgents1$inboundSchema;
1490
+ /** @deprecated use `GetAgentToolChoiceAgents1$outboundSchema` instead. */
1491
+ GetAgentToolChoiceAgents1$.outboundSchema = exports.GetAgentToolChoiceAgents1$outboundSchema;
1492
+ })(GetAgentToolChoiceAgents1$ || (exports.GetAgentToolChoiceAgents1$ = GetAgentToolChoiceAgents1$ = {}));
1493
+ /** @internal */
1494
+ exports.GetAgentFallbackModelsToolChoice$inboundSchema = z.union([
1495
+ z.lazy(() => exports.GetAgentToolChoiceAgents2$inboundSchema),
1496
+ exports.GetAgentToolChoiceAgents1$inboundSchema,
1497
+ ]);
1498
+ /** @internal */
1499
+ exports.GetAgentFallbackModelsToolChoice$outboundSchema = z.union([
1500
+ z.lazy(() => exports.GetAgentToolChoiceAgents2$outboundSchema),
1501
+ exports.GetAgentToolChoiceAgents1$outboundSchema,
1502
+ ]);
1503
+ /**
1504
+ * @internal
1505
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1506
+ */
1507
+ var GetAgentFallbackModelsToolChoice$;
1508
+ (function (GetAgentFallbackModelsToolChoice$) {
1509
+ /** @deprecated use `GetAgentFallbackModelsToolChoice$inboundSchema` instead. */
1510
+ GetAgentFallbackModelsToolChoice$.inboundSchema = exports.GetAgentFallbackModelsToolChoice$inboundSchema;
1511
+ /** @deprecated use `GetAgentFallbackModelsToolChoice$outboundSchema` instead. */
1512
+ GetAgentFallbackModelsToolChoice$.outboundSchema = exports.GetAgentFallbackModelsToolChoice$outboundSchema;
1513
+ })(GetAgentFallbackModelsToolChoice$ || (exports.GetAgentFallbackModelsToolChoice$ = GetAgentFallbackModelsToolChoice$ = {}));
1514
+ function getAgentFallbackModelsToolChoiceToJSON(getAgentFallbackModelsToolChoice) {
1515
+ return JSON.stringify(exports.GetAgentFallbackModelsToolChoice$outboundSchema.parse(getAgentFallbackModelsToolChoice));
1516
+ }
1517
+ function getAgentFallbackModelsToolChoiceFromJSON(jsonString) {
1518
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsToolChoice' from JSON`);
1519
+ }
1520
+ /** @internal */
1521
+ exports.GetAgentFallbackModelsModalities$inboundSchema = z.nativeEnum(exports.GetAgentFallbackModelsModalities);
1522
+ /** @internal */
1523
+ exports.GetAgentFallbackModelsModalities$outboundSchema = exports.GetAgentFallbackModelsModalities$inboundSchema;
1524
+ /**
1525
+ * @internal
1526
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1527
+ */
1528
+ var GetAgentFallbackModelsModalities$;
1529
+ (function (GetAgentFallbackModelsModalities$) {
1530
+ /** @deprecated use `GetAgentFallbackModelsModalities$inboundSchema` instead. */
1531
+ GetAgentFallbackModelsModalities$.inboundSchema = exports.GetAgentFallbackModelsModalities$inboundSchema;
1532
+ /** @deprecated use `GetAgentFallbackModelsModalities$outboundSchema` instead. */
1533
+ GetAgentFallbackModelsModalities$.outboundSchema = exports.GetAgentFallbackModelsModalities$outboundSchema;
1534
+ })(GetAgentFallbackModelsModalities$ || (exports.GetAgentFallbackModelsModalities$ = GetAgentFallbackModelsModalities$ = {}));
1535
+ /** @internal */
1536
+ exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema = z.object({
1537
+ enabled: z.boolean().optional(),
1538
+ });
1539
+ /** @internal */
1540
+ exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema = z.object({
1541
+ enabled: z.boolean().optional(),
1542
+ });
1543
+ /**
1544
+ * @internal
1545
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1546
+ */
1547
+ var GetAgentFallbackModelsWebSearchOptions$;
1548
+ (function (GetAgentFallbackModelsWebSearchOptions$) {
1549
+ /** @deprecated use `GetAgentFallbackModelsWebSearchOptions$inboundSchema` instead. */
1550
+ GetAgentFallbackModelsWebSearchOptions$.inboundSchema = exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema;
1551
+ /** @deprecated use `GetAgentFallbackModelsWebSearchOptions$outboundSchema` instead. */
1552
+ GetAgentFallbackModelsWebSearchOptions$.outboundSchema = exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema;
1553
+ })(GetAgentFallbackModelsWebSearchOptions$ || (exports.GetAgentFallbackModelsWebSearchOptions$ = GetAgentFallbackModelsWebSearchOptions$ = {}));
1554
+ function getAgentFallbackModelsWebSearchOptionsToJSON(getAgentFallbackModelsWebSearchOptions) {
1555
+ return JSON.stringify(exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema.parse(getAgentFallbackModelsWebSearchOptions));
1556
+ }
1557
+ function getAgentFallbackModelsWebSearchOptionsFromJSON(jsonString) {
1558
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsWebSearchOptions' from JSON`);
1559
+ }
1560
+ /** @internal */
1561
+ exports.GetAgentFallbackModelsParameters$inboundSchema = z.object({
1562
+ audio: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsAudio$inboundSchema))
1563
+ .optional(),
1564
+ frequency_penalty: z.nullable(z.number()).optional(),
1565
+ max_tokens: z.nullable(z.number().int()).optional(),
1566
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
1567
+ logprobs: z.nullable(z.boolean()).optional(),
1568
+ top_logprobs: z.nullable(z.number().int()).optional(),
1569
+ n: z.nullable(z.number().int()).optional(),
1570
+ presence_penalty: z.nullable(z.number()).optional(),
1571
+ response_format: z.union([
1572
+ z.lazy(() => exports.GetAgentResponseFormatAgents3$inboundSchema),
1573
+ z.lazy(() => exports.GetAgentResponseFormatAgents1$inboundSchema),
1574
+ z.lazy(() => exports.GetAgentResponseFormatAgents2$inboundSchema),
1575
+ ]).optional(),
1576
+ reasoning_effort: z.string().optional(),
1577
+ verbosity: z.string().optional(),
1578
+ seed: z.nullable(z.number()).optional(),
1579
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1580
+ stream_options: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsStreamOptions$inboundSchema)).optional(),
1581
+ thinking: z.lazy(() => exports.GetAgentFallbackModelsThinking$inboundSchema)
1582
+ .optional(),
1583
+ temperature: z.nullable(z.number()).optional(),
1584
+ top_p: z.nullable(z.number()).optional(),
1585
+ top_k: z.nullable(z.number()).optional(),
1586
+ tool_choice: z.union([
1587
+ z.lazy(() => exports.GetAgentToolChoiceAgents2$inboundSchema),
1588
+ exports.GetAgentToolChoiceAgents1$inboundSchema,
1589
+ ]).optional(),
1590
+ parallel_tool_calls: z.boolean().optional(),
1591
+ modalities: z.nullable(z.array(exports.GetAgentFallbackModelsModalities$inboundSchema)).optional(),
1592
+ web_search_options: z.lazy(() => exports.GetAgentFallbackModelsWebSearchOptions$inboundSchema).optional(),
1593
+ }).transform((v) => {
1594
+ return (0, primitives_js_1.remap)(v, {
1595
+ "frequency_penalty": "frequencyPenalty",
1596
+ "max_tokens": "maxTokens",
1597
+ "max_completion_tokens": "maxCompletionTokens",
1598
+ "top_logprobs": "topLogprobs",
1599
+ "presence_penalty": "presencePenalty",
1600
+ "response_format": "responseFormat",
1601
+ "reasoning_effort": "reasoningEffort",
1602
+ "stream_options": "streamOptions",
1603
+ "top_p": "topP",
1604
+ "top_k": "topK",
1605
+ "tool_choice": "toolChoice",
1606
+ "parallel_tool_calls": "parallelToolCalls",
1607
+ "web_search_options": "webSearchOptions",
1608
+ });
1609
+ });
1610
+ /** @internal */
1611
+ exports.GetAgentFallbackModelsParameters$outboundSchema = z.object({
1612
+ audio: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsAudio$outboundSchema))
1613
+ .optional(),
1614
+ frequencyPenalty: z.nullable(z.number()).optional(),
1615
+ maxTokens: z.nullable(z.number().int()).optional(),
1616
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
1617
+ logprobs: z.nullable(z.boolean()).optional(),
1618
+ topLogprobs: z.nullable(z.number().int()).optional(),
1619
+ n: z.nullable(z.number().int()).optional(),
1620
+ presencePenalty: z.nullable(z.number()).optional(),
1621
+ responseFormat: z.union([
1622
+ z.lazy(() => exports.GetAgentResponseFormatAgents3$outboundSchema),
1623
+ z.lazy(() => exports.GetAgentResponseFormatAgents1$outboundSchema),
1624
+ z.lazy(() => exports.GetAgentResponseFormatAgents2$outboundSchema),
1625
+ ]).optional(),
1626
+ reasoningEffort: z.string().optional(),
1627
+ verbosity: z.string().optional(),
1628
+ seed: z.nullable(z.number()).optional(),
1629
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1630
+ streamOptions: z.nullable(z.lazy(() => exports.GetAgentFallbackModelsStreamOptions$outboundSchema)).optional(),
1631
+ thinking: z.lazy(() => exports.GetAgentFallbackModelsThinking$outboundSchema)
1632
+ .optional(),
1633
+ temperature: z.nullable(z.number()).optional(),
1634
+ topP: z.nullable(z.number()).optional(),
1635
+ topK: z.nullable(z.number()).optional(),
1636
+ toolChoice: z.union([
1637
+ z.lazy(() => exports.GetAgentToolChoiceAgents2$outboundSchema),
1638
+ exports.GetAgentToolChoiceAgents1$outboundSchema,
1639
+ ]).optional(),
1640
+ parallelToolCalls: z.boolean().optional(),
1641
+ modalities: z.nullable(z.array(exports.GetAgentFallbackModelsModalities$outboundSchema)).optional(),
1642
+ webSearchOptions: z.lazy(() => exports.GetAgentFallbackModelsWebSearchOptions$outboundSchema).optional(),
1643
+ }).transform((v) => {
1644
+ return (0, primitives_js_1.remap)(v, {
1645
+ frequencyPenalty: "frequency_penalty",
1646
+ maxTokens: "max_tokens",
1647
+ maxCompletionTokens: "max_completion_tokens",
1648
+ topLogprobs: "top_logprobs",
1649
+ presencePenalty: "presence_penalty",
1650
+ responseFormat: "response_format",
1651
+ reasoningEffort: "reasoning_effort",
1652
+ streamOptions: "stream_options",
1653
+ topP: "top_p",
1654
+ topK: "top_k",
1655
+ toolChoice: "tool_choice",
1656
+ parallelToolCalls: "parallel_tool_calls",
1657
+ webSearchOptions: "web_search_options",
1658
+ });
1659
+ });
1660
+ /**
1661
+ * @internal
1662
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1663
+ */
1664
+ var GetAgentFallbackModelsParameters$;
1665
+ (function (GetAgentFallbackModelsParameters$) {
1666
+ /** @deprecated use `GetAgentFallbackModelsParameters$inboundSchema` instead. */
1667
+ GetAgentFallbackModelsParameters$.inboundSchema = exports.GetAgentFallbackModelsParameters$inboundSchema;
1668
+ /** @deprecated use `GetAgentFallbackModelsParameters$outboundSchema` instead. */
1669
+ GetAgentFallbackModelsParameters$.outboundSchema = exports.GetAgentFallbackModelsParameters$outboundSchema;
1670
+ })(GetAgentFallbackModelsParameters$ || (exports.GetAgentFallbackModelsParameters$ = GetAgentFallbackModelsParameters$ = {}));
1671
+ function getAgentFallbackModelsParametersToJSON(getAgentFallbackModelsParameters) {
1672
+ return JSON.stringify(exports.GetAgentFallbackModelsParameters$outboundSchema.parse(getAgentFallbackModelsParameters));
1673
+ }
1674
+ function getAgentFallbackModelsParametersFromJSON(jsonString) {
1675
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModelsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModelsParameters' from JSON`);
1676
+ }
1677
+ /** @internal */
1678
+ exports.GetAgentFallbackModels2$inboundSchema = z.object({
1679
+ id: z.string(),
1680
+ integration_id: z.nullable(z.string()).optional(),
1681
+ parameters: z.lazy(() => exports.GetAgentFallbackModelsParameters$inboundSchema)
1682
+ .optional(),
1683
+ }).transform((v) => {
1684
+ return (0, primitives_js_1.remap)(v, {
1685
+ "integration_id": "integrationId",
1686
+ });
1687
+ });
1688
+ /** @internal */
1689
+ exports.GetAgentFallbackModels2$outboundSchema = z.object({
1690
+ id: z.string(),
1691
+ integrationId: z.nullable(z.string()).optional(),
1692
+ parameters: z.lazy(() => exports.GetAgentFallbackModelsParameters$outboundSchema)
1693
+ .optional(),
1694
+ }).transform((v) => {
1695
+ return (0, primitives_js_1.remap)(v, {
1696
+ integrationId: "integration_id",
1697
+ });
1698
+ });
1699
+ /**
1700
+ * @internal
1701
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1702
+ */
1703
+ var GetAgentFallbackModels2$;
1704
+ (function (GetAgentFallbackModels2$) {
1705
+ /** @deprecated use `GetAgentFallbackModels2$inboundSchema` instead. */
1706
+ GetAgentFallbackModels2$.inboundSchema = exports.GetAgentFallbackModels2$inboundSchema;
1707
+ /** @deprecated use `GetAgentFallbackModels2$outboundSchema` instead. */
1708
+ GetAgentFallbackModels2$.outboundSchema = exports.GetAgentFallbackModels2$outboundSchema;
1709
+ })(GetAgentFallbackModels2$ || (exports.GetAgentFallbackModels2$ = GetAgentFallbackModels2$ = {}));
1710
+ function getAgentFallbackModels2ToJSON(getAgentFallbackModels2) {
1711
+ return JSON.stringify(exports.GetAgentFallbackModels2$outboundSchema.parse(getAgentFallbackModels2));
1712
+ }
1713
+ function getAgentFallbackModels2FromJSON(jsonString) {
1714
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModels2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModels2' from JSON`);
1715
+ }
1716
+ /** @internal */
1717
+ exports.GetAgentFallbackModels$inboundSchema = z.union([z.lazy(() => exports.GetAgentFallbackModels2$inboundSchema), z.string()]);
1718
+ /** @internal */
1719
+ exports.GetAgentFallbackModels$outboundSchema = z.union([z.lazy(() => exports.GetAgentFallbackModels2$outboundSchema), z.string()]);
1720
+ /**
1721
+ * @internal
1722
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1723
+ */
1724
+ var GetAgentFallbackModels$;
1725
+ (function (GetAgentFallbackModels$) {
1726
+ /** @deprecated use `GetAgentFallbackModels$inboundSchema` instead. */
1727
+ GetAgentFallbackModels$.inboundSchema = exports.GetAgentFallbackModels$inboundSchema;
1728
+ /** @deprecated use `GetAgentFallbackModels$outboundSchema` instead. */
1729
+ GetAgentFallbackModels$.outboundSchema = exports.GetAgentFallbackModels$outboundSchema;
1730
+ })(GetAgentFallbackModels$ || (exports.GetAgentFallbackModels$ = GetAgentFallbackModels$ = {}));
1731
+ function getAgentFallbackModelsToJSON(getAgentFallbackModels) {
1732
+ return JSON.stringify(exports.GetAgentFallbackModels$outboundSchema.parse(getAgentFallbackModels));
1733
+ }
1734
+ function getAgentFallbackModelsFromJSON(jsonString) {
1735
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAgentFallbackModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentFallbackModels' from JSON`);
1736
+ }
1737
+ /** @internal */
274
1738
  exports.GetAgentModel$inboundSchema = z.object({
275
1739
  id: z.string(),
276
1740
  integration_id: z.nullable(z.string()).optional(),
277
- fallback_models: z.nullable(z.array(z.string())).optional(),
278
- max_tokens: z.number().int().optional(),
279
- temperature: z.number().optional(),
1741
+ parameters: z.lazy(() => exports.GetAgentParameters$inboundSchema).optional(),
1742
+ fallback_models: z.nullable(z.array(z.union([
1743
+ z.lazy(() => exports.GetAgentFallbackModels2$inboundSchema),
1744
+ z.string(),
1745
+ ]))).optional(),
280
1746
  }).transform((v) => {
281
1747
  return (0, primitives_js_1.remap)(v, {
282
1748
  "integration_id": "integrationId",
283
1749
  "fallback_models": "fallbackModels",
284
- "max_tokens": "maxTokens",
285
1750
  });
286
1751
  });
287
1752
  /** @internal */
288
1753
  exports.GetAgentModel$outboundSchema = z.object({
289
1754
  id: z.string(),
290
1755
  integrationId: z.nullable(z.string()).optional(),
291
- fallbackModels: z.nullable(z.array(z.string())).optional(),
292
- maxTokens: z.number().int().optional(),
293
- temperature: z.number().optional(),
1756
+ parameters: z.lazy(() => exports.GetAgentParameters$outboundSchema).optional(),
1757
+ fallbackModels: z.nullable(z.array(z.union([
1758
+ z.lazy(() => exports.GetAgentFallbackModels2$outboundSchema),
1759
+ z.string(),
1760
+ ]))).optional(),
294
1761
  }).transform((v) => {
295
1762
  return (0, primitives_js_1.remap)(v, {
296
1763
  integrationId: "integration_id",
297
1764
  fallbackModels: "fallback_models",
298
- maxTokens: "max_tokens",
299
1765
  });
300
1766
  });
301
1767
  /**