@orq-ai/node 4.16.0-rc.57 → 4.16.0-rc.58

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 (138) hide show
  1. package/README.md +68 -52
  2. package/funcs/routerClassifyCreate.d.ts +2 -2
  3. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  4. package/funcs/routerClassifyCreate.js +2 -2
  5. package/funcs/routerClassifyCreate.js.map +1 -1
  6. package/funcs/routerDecisionsCreate.d.ts +18 -0
  7. package/funcs/routerDecisionsCreate.d.ts.map +1 -0
  8. package/funcs/routerDecisionsCreate.js +123 -0
  9. package/funcs/routerDecisionsCreate.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +2 -2
  12. package/lib/config.js +2 -2
  13. package/models/components/classifyanswer.d.ts +6 -47
  14. package/models/components/classifyanswer.d.ts.map +1 -1
  15. package/models/components/classifyanswer.js +11 -20
  16. package/models/components/classifyanswer.js.map +1 -1
  17. package/models/components/classifychoiceanswer.d.ts +24 -0
  18. package/models/components/classifychoiceanswer.d.ts.map +1 -0
  19. package/models/components/classifychoiceanswer.js +53 -0
  20. package/models/components/classifychoiceanswer.js.map +1 -0
  21. package/models/components/classifyinputtokensdetails.d.ts +17 -0
  22. package/models/components/classifyinputtokensdetails.d.ts.map +1 -0
  23. package/models/components/classifyinputtokensdetails.js +57 -0
  24. package/models/components/classifyinputtokensdetails.js.map +1 -0
  25. package/models/components/classifynoulanswer.d.ts +14 -0
  26. package/models/components/classifynoulanswer.d.ts.map +1 -0
  27. package/models/components/classifynoulanswer.js +51 -0
  28. package/models/components/classifynoulanswer.js.map +1 -0
  29. package/models/components/classifyrefusalanswer.d.ts +10 -0
  30. package/models/components/classifyrefusalanswer.d.ts.map +1 -0
  31. package/models/components/classifyrefusalanswer.js +50 -0
  32. package/models/components/classifyrefusalanswer.js.map +1 -0
  33. package/models/components/classifyretryconfig.d.ts +4 -4
  34. package/models/components/classifyretryconfig.d.ts.map +1 -1
  35. package/models/components/classifyretryconfig.js +1 -1
  36. package/models/components/classifyretryconfig.js.map +1 -1
  37. package/models/components/classifyscoreanswer.d.ts +30 -0
  38. package/models/components/classifyscoreanswer.d.ts.map +1 -0
  39. package/models/components/classifyscoreanswer.js +54 -0
  40. package/models/components/classifyscoreanswer.js.map +1 -0
  41. package/models/components/classifyusage.d.ts +4 -2
  42. package/models/components/classifyusage.d.ts.map +1 -1
  43. package/models/components/classifyusage.js +3 -0
  44. package/models/components/classifyusage.js.map +1 -1
  45. package/models/components/index.d.ts +5 -0
  46. package/models/components/index.d.ts.map +1 -1
  47. package/models/components/index.js +5 -0
  48. package/models/components/index.js.map +1 -1
  49. package/models/components/model.d.ts +4 -0
  50. package/models/components/model.d.ts.map +1 -1
  51. package/models/components/model.js +1 -0
  52. package/models/components/model.js.map +1 -1
  53. package/models/components/modelmetadata.d.ts +2 -0
  54. package/models/components/modelmetadata.d.ts.map +1 -1
  55. package/models/components/modelmetadata.js +4 -0
  56. package/models/components/modelmetadata.js.map +1 -1
  57. package/models/components/reasoningpart.js +1 -1
  58. package/models/errors/createclassify.d.ts +90 -6
  59. package/models/errors/createclassify.d.ts.map +1 -1
  60. package/models/errors/createclassify.js +116 -4
  61. package/models/errors/createclassify.js.map +1 -1
  62. package/models/errors/createdecisions.d.ts +151 -0
  63. package/models/errors/createdecisions.d.ts.map +1 -0
  64. package/models/errors/createdecisions.js +239 -0
  65. package/models/errors/createdecisions.js.map +1 -0
  66. package/models/errors/index.d.ts +1 -0
  67. package/models/errors/index.d.ts.map +1 -1
  68. package/models/errors/index.js +1 -0
  69. package/models/errors/index.js.map +1 -1
  70. package/models/operations/createclassify.d.ts +9 -4
  71. package/models/operations/createclassify.d.ts.map +1 -1
  72. package/models/operations/createclassify.js +2 -0
  73. package/models/operations/createclassify.js.map +1 -1
  74. package/models/operations/createdecisions.d.ts +237 -0
  75. package/models/operations/createdecisions.d.ts.map +1 -0
  76. package/models/operations/createdecisions.js +148 -0
  77. package/models/operations/createdecisions.js.map +1 -0
  78. package/models/operations/createtool.js +4 -4
  79. package/models/operations/getalltools.js +4 -4
  80. package/models/operations/getv2humanevalsets.js +2 -2
  81. package/models/operations/getv2humanevalsetsid.js +2 -2
  82. package/models/operations/index.d.ts +1 -0
  83. package/models/operations/index.d.ts.map +1 -1
  84. package/models/operations/index.js +1 -0
  85. package/models/operations/index.js.map +1 -1
  86. package/models/operations/patchv2humanevalsetsid.js +2 -2
  87. package/models/operations/postv2feedbackevaluation.js +4 -4
  88. package/models/operations/postv2humanevalsets.js +2 -2
  89. package/models/operations/retrievetool.js +4 -4
  90. package/models/operations/runagent.js +1 -1
  91. package/models/operations/streamrunagent.js +1 -1
  92. package/models/operations/updatetool.js +4 -4
  93. package/package.json +3 -3
  94. package/sdk/classify.d.ts +1 -1
  95. package/sdk/classify.js +1 -1
  96. package/sdk/decisions.d.ts +12 -0
  97. package/sdk/decisions.d.ts.map +1 -0
  98. package/sdk/decisions.js +22 -0
  99. package/sdk/decisions.js.map +1 -0
  100. package/sdk/router.d.ts +3 -0
  101. package/sdk/router.d.ts.map +1 -1
  102. package/sdk/router.js +4 -0
  103. package/sdk/router.js.map +1 -1
  104. package/src/funcs/routerClassifyCreate.ts +31 -3
  105. package/src/funcs/routerDecisionsCreate.ts +218 -0
  106. package/src/lib/config.ts +2 -2
  107. package/src/models/components/classifyanswer.ts +28 -56
  108. package/src/models/components/classifychoiceanswer.ts +46 -0
  109. package/src/models/components/classifyinputtokensdetails.ts +45 -0
  110. package/src/models/components/classifynoulanswer.ts +36 -0
  111. package/src/models/components/classifyrefusalanswer.ts +31 -0
  112. package/src/models/components/classifyretryconfig.ts +5 -5
  113. package/src/models/components/classifyscoreanswer.ts +51 -0
  114. package/src/models/components/classifyusage.ts +9 -2
  115. package/src/models/components/index.ts +5 -0
  116. package/src/models/components/model.ts +5 -0
  117. package/src/models/components/modelmetadata.ts +6 -0
  118. package/src/models/components/reasoningpart.ts +1 -1
  119. package/src/models/errors/createclassify.ts +214 -6
  120. package/src/models/errors/createdecisions.ts +363 -0
  121. package/src/models/errors/index.ts +1 -0
  122. package/src/models/operations/createclassify.ts +11 -4
  123. package/src/models/operations/createdecisions.ts +434 -0
  124. package/src/models/operations/createtool.ts +4 -4
  125. package/src/models/operations/getalltools.ts +4 -4
  126. package/src/models/operations/getv2humanevalsets.ts +2 -2
  127. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  128. package/src/models/operations/index.ts +1 -0
  129. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  130. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  131. package/src/models/operations/postv2humanevalsets.ts +2 -2
  132. package/src/models/operations/retrievetool.ts +4 -4
  133. package/src/models/operations/runagent.ts +1 -1
  134. package/src/models/operations/streamrunagent.ts +1 -1
  135. package/src/models/operations/updatetool.ts +4 -4
  136. package/src/sdk/classify.ts +1 -1
  137. package/src/sdk/decisions.ts +27 -0
  138. package/src/sdk/router.ts +6 -0
package/README.md CHANGED
@@ -574,6 +574,10 @@ run();
574
574
 
575
575
  * [create](docs/sdks/completions/README.md#create) - Create completion
576
576
 
577
+ #### [Router.Decisions](docs/sdks/decisions/README.md)
578
+
579
+ * [create](docs/sdks/decisions/README.md#create) - Decisions
580
+
577
581
  #### [Router.Embeddings](docs/sdks/embeddings/README.md)
578
582
 
579
583
  * [create](docs/sdks/embeddings/README.md#create) - Create embeddings
@@ -982,6 +986,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
982
986
  - [`routerChatCompletionsCreate`](docs/sdks/orqcompletions/README.md#create) - Create chat completion
983
987
  - [`routerClassifyCreate`](docs/sdks/classify/README.md#create) - Classify
984
988
  - [`routerCompletionsCreate`](docs/sdks/completions/README.md#create) - Create completion
989
+ - [`routerDecisionsCreate`](docs/sdks/decisions/README.md#create) - Decisions
985
990
  - [`routerEmbeddingsCreate`](docs/sdks/embeddings/README.md#create) - Create embeddings
986
991
  - [`routerImagesEditsCreate`](docs/sdks/edits/README.md#create) - Create image edit
987
992
  - [`routerImagesGenerationsCreate`](docs/sdks/generations/README.md#create) - Create image
@@ -1454,7 +1459,7 @@ run();
1454
1459
  **Primary error:**
1455
1460
  * [`OrqError`](./src/models/errors/orqerror.ts): The base class for HTTP error responses.
1456
1461
 
1457
- <details><summary>Less common errors (57)</summary>
1462
+ <details><summary>Less common errors (68)</summary>
1458
1463
 
1459
1464
  <br />
1460
1465
 
@@ -1467,57 +1472,68 @@ run();
1467
1472
 
1468
1473
 
1469
1474
  **Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
1470
- * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 5 of 336 methods.*
1471
- * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 336 methods.*
1472
- * [`CompactResponseResponseBody`](./src/models/errors/compactresponseresponsebody.ts): Model is required or request is invalid. Status code `400`. Applicable to 1 of 336 methods.*
1473
- * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 336 methods.*
1474
- * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 336 methods.*
1475
- * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 336 methods.*
1476
- * [`SearchWebResponseBody`](./src/models/errors/searchwebresponsebody.ts): Invalid request, unusable workspace integration, or a blocking guardrail. Check the request fields and workspace integration settings. Status code `400`. Applicable to 1 of 336 methods.*
1477
- * [`CreateClassifyResponseBody`](./src/models/errors/createclassifyresponsebody.ts): Malformed JSON or missing model. Status code `400`. Applicable to 1 of 336 methods.*
1478
- * [`CompactResponseResponsesResponseBody`](./src/models/errors/compactresponseresponsesresponsebody.ts): Unauthorized. Status code `401`. Applicable to 1 of 336 methods.*
1479
- * [`SearchWebWebsearchResponseBody`](./src/models/errors/searchwebwebsearchresponsebody.ts): Missing or invalid API key. Send a valid API key in the Authorization header. Status code `401`. Applicable to 1 of 336 methods.*
1480
- * [`SearchWebWebsearchResponseResponseBody`](./src/models/errors/searchwebwebsearchresponseresponsebody.ts): Managed search requires a positive ORQ credit balance. Add credits before retrying. BYOK does not require ORQ credits. Status code `402`. Applicable to 1 of 336 methods.*
1481
- * [`SearchWebWebsearchResponse403ResponseBody`](./src/models/errors/searchwebwebsearchresponse403responsebody.ts): The API key lacks websearch.execute permission. Status code `403`. Applicable to 1 of 336 methods.*
1482
- * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 336 methods.*
1483
- * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 336 methods.*
1484
- * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 336 methods.*
1485
- * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 336 methods.*
1486
- * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 336 methods.*
1487
- * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 336 methods.*
1488
- * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 336 methods.*
1489
- * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 336 methods.*
1490
- * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 336 methods.*
1491
- * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 336 methods.*
1492
- * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 336 methods.*
1493
- * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 336 methods.*
1494
- * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 336 methods.*
1495
- * [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 336 methods.*
1496
- * [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 336 methods.*
1497
- * [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of 336 methods.*
1498
- * [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 336 methods.*
1499
- * [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 336 methods.*
1500
- * [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 336 methods.*
1501
- * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 336 methods.*
1502
- * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 336 methods.*
1503
- * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 336 methods.*
1504
- * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 336 methods.*
1505
- * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 336 methods.*
1506
- * [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of 336 methods.*
1507
- * [`SearchWebWebsearchResponse415ResponseBody`](./src/models/errors/searchwebwebsearchresponse415responsebody.ts): Unsupported or missing Content-Type. Send application/json; an optional charset parameter is accepted. Status code `415`. Applicable to 1 of 336 methods.*
1508
- * [`SearchWebWebsearchResponse422ResponseBody`](./src/models/errors/searchwebwebsearchresponse422responsebody.ts): A configured guardrail evaluator could not complete its evaluation. Status code `422`. Applicable to 1 of 336 methods.*
1509
- * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 336 methods.*
1510
- * [`CreateClassifyRouterClassifyResponseBody`](./src/models/errors/createclassifyrouterclassifyresponsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of 336 methods.*
1511
- * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 336 methods.*
1512
- * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 336 methods.*
1513
- * [`SearchWebWebsearchResponse429ResponseBody`](./src/models/errors/searchwebwebsearchresponse429responsebody.ts): A workspace or provider rate limit, or a matching budget, was reached. Wait before retrying or raise the budget. Status code `429`. Applicable to 1 of 336 methods.*
1514
- * [`CreateClassifyRouterClassifyResponseResponseBody`](./src/models/errors/createclassifyrouterclassifyresponseresponsebody.ts): Rate limited by the provider. Status code `429`. Applicable to 1 of 336 methods.*
1515
- * [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 336 methods.*
1516
- * [`SearchWebWebsearchResponse500ResponseBody`](./src/models/errors/searchwebwebsearchresponse500responsebody.ts): Unexpected gateway error. Include the trace ID, if available, when reporting the failure. Status code `500`. Applicable to 1 of 336 methods.*
1517
- * [`CompactResponseResponsesResponseResponseBody`](./src/models/errors/compactresponseresponsesresponseresponsebody.ts): Failed to compact conversation. Status code `502`. Applicable to 1 of 336 methods.*
1518
- * [`SearchWebWebsearchResponse502ResponseBody`](./src/models/errors/searchwebwebsearchresponse502responsebody.ts): The search provider, PII detector, or guardrail service failed. Invalid upstream credentials can also produce this response. Status code `502`. Applicable to 1 of 336 methods.*
1519
- * [`SearchWebWebsearchResponse503ResponseBody`](./src/models/errors/searchwebwebsearchresponse503responsebody.ts): The gateway could not load workspace integrations. Retry when the credential store is available. Status code `503`. Applicable to 1 of 336 methods.*
1520
- * [`SearchWebWebsearchResponse504ResponseBody`](./src/models/errors/searchwebwebsearchresponse504responsebody.ts): The provider request timed out or was cancelled. Status code `504`. Applicable to 1 of 336 methods.*
1475
+ * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 5 of 337 methods.*
1476
+ * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 337 methods.*
1477
+ * [`CompactResponseResponseBody`](./src/models/errors/compactresponseresponsebody.ts): Model is required or request is invalid. Status code `400`. Applicable to 1 of 337 methods.*
1478
+ * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 337 methods.*
1479
+ * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 337 methods.*
1480
+ * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 337 methods.*
1481
+ * [`SearchWebResponseBody`](./src/models/errors/searchwebresponsebody.ts): Invalid request, unusable workspace integration, or a blocking guardrail. Check the request fields and workspace integration settings. Status code `400`. Applicable to 1 of 337 methods.*
1482
+ * [`CreateClassifyResponseBody`](./src/models/errors/createclassifyresponsebody.ts): Malformed JSON, missing or unsupported model, or invalid retry/fallback fields. Status code `400`. Applicable to 1 of 337 methods.*
1483
+ * [`CreateDecisionsResponseBody`](./src/models/errors/createdecisionsresponsebody.ts): Malformed JSON, missing or unsupported model, or invalid retry/fallback fields. Status code `400`. Applicable to 1 of 337 methods.*
1484
+ * [`CompactResponseResponsesResponseBody`](./src/models/errors/compactresponseresponsesresponsebody.ts): Unauthorized. Status code `401`. Applicable to 1 of 337 methods.*
1485
+ * [`SearchWebWebsearchResponseBody`](./src/models/errors/searchwebwebsearchresponsebody.ts): Missing or invalid API key. Send a valid API key in the Authorization header. Status code `401`. Applicable to 1 of 337 methods.*
1486
+ * [`CreateClassifyRouterClassifyResponseBody`](./src/models/errors/createclassifyrouterclassifyresponsebody.ts): Missing, invalid, expired or revoked API key. Status code `401`. Applicable to 1 of 337 methods.*
1487
+ * [`CreateDecisionsRouterDecisionsResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponsebody.ts): Missing, invalid, expired or revoked API key. Status code `401`. Applicable to 1 of 337 methods.*
1488
+ * [`SearchWebWebsearchResponseResponseBody`](./src/models/errors/searchwebwebsearchresponseresponsebody.ts): Managed search requires a positive ORQ credit balance. Add credits before retrying. BYOK does not require ORQ credits. Status code `402`. Applicable to 1 of 337 methods.*
1489
+ * [`SearchWebWebsearchResponse403ResponseBody`](./src/models/errors/searchwebwebsearchresponse403responsebody.ts): The API key lacks websearch.execute permission. Status code `403`. Applicable to 1 of 337 methods.*
1490
+ * [`CreateClassifyRouterClassifyResponseResponseBody`](./src/models/errors/createclassifyrouterclassifyresponseresponsebody.ts): The API key lacks classify permission, or the workspace or project cannot access the model. Status code `403`. Applicable to 1 of 337 methods.*
1491
+ * [`CreateDecisionsRouterDecisionsResponseResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponseresponsebody.ts): The API key lacks classify permission, or the workspace or project cannot access the model. Status code `403`. Applicable to 1 of 337 methods.*
1492
+ * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 337 methods.*
1493
+ * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 337 methods.*
1494
+ * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 337 methods.*
1495
+ * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 337 methods.*
1496
+ * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 337 methods.*
1497
+ * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 337 methods.*
1498
+ * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 337 methods.*
1499
+ * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 337 methods.*
1500
+ * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 337 methods.*
1501
+ * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 337 methods.*
1502
+ * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 337 methods.*
1503
+ * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 337 methods.*
1504
+ * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 337 methods.*
1505
+ * [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 337 methods.*
1506
+ * [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 337 methods.*
1507
+ * [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of 337 methods.*
1508
+ * [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 337 methods.*
1509
+ * [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 337 methods.*
1510
+ * [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 337 methods.*
1511
+ * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 337 methods.*
1512
+ * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 337 methods.*
1513
+ * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 337 methods.*
1514
+ * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 337 methods.*
1515
+ * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 337 methods.*
1516
+ * [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of 337 methods.*
1517
+ * [`SearchWebWebsearchResponse415ResponseBody`](./src/models/errors/searchwebwebsearchresponse415responsebody.ts): Unsupported or missing Content-Type. Send application/json; an optional charset parameter is accepted. Status code `415`. Applicable to 1 of 337 methods.*
1518
+ * [`SearchWebWebsearchResponse422ResponseBody`](./src/models/errors/searchwebwebsearchresponse422responsebody.ts): A configured guardrail evaluator could not complete its evaluation. Status code `422`. Applicable to 1 of 337 methods.*
1519
+ * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 337 methods.*
1520
+ * [`CreateClassifyRouterClassifyResponse422ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse422responsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of 337 methods.*
1521
+ * [`CreateDecisionsRouterDecisionsResponse422ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse422responsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of 337 methods.*
1522
+ * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 337 methods.*
1523
+ * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 337 methods.*
1524
+ * [`SearchWebWebsearchResponse429ResponseBody`](./src/models/errors/searchwebwebsearchresponse429responsebody.ts): A workspace or provider rate limit, or a matching budget, was reached. Wait before retrying or raise the budget. Status code `429`. Applicable to 1 of 337 methods.*
1525
+ * [`CreateClassifyRouterClassifyResponse429ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse429responsebody.ts): A plan rate limit, budget or provider rate limit was exceeded. Status code `429`. Applicable to 1 of 337 methods.*
1526
+ * [`CreateDecisionsRouterDecisionsResponse429ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse429responsebody.ts): A plan rate limit, budget or provider rate limit was exceeded. Status code `429`. Applicable to 1 of 337 methods.*
1527
+ * [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 337 methods.*
1528
+ * [`SearchWebWebsearchResponse500ResponseBody`](./src/models/errors/searchwebwebsearchresponse500responsebody.ts): Unexpected gateway error. Include the trace ID, if available, when reporting the failure. Status code `500`. Applicable to 1 of 337 methods.*
1529
+ * [`CreateClassifyRouterClassifyResponse500ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse500responsebody.ts): An internal model-resolution error occurred. Status code `500`. Applicable to 1 of 337 methods.*
1530
+ * [`CreateDecisionsRouterDecisionsResponse500ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse500responsebody.ts): An internal model-resolution error occurred. Status code `500`. Applicable to 1 of 337 methods.*
1531
+ * [`CompactResponseResponsesResponseResponseBody`](./src/models/errors/compactresponseresponsesresponseresponsebody.ts): Failed to compact conversation. Status code `502`. Applicable to 1 of 337 methods.*
1532
+ * [`SearchWebWebsearchResponse502ResponseBody`](./src/models/errors/searchwebwebsearchresponse502responsebody.ts): The search provider, PII detector, or guardrail service failed. Invalid upstream credentials can also produce this response. Status code `502`. Applicable to 1 of 337 methods.*
1533
+ * [`CreateClassifyRouterClassifyResponse502ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse502responsebody.ts): The upstream provider failed or returned an invalid classification response. Status code `502`. Applicable to 1 of 337 methods.*
1534
+ * [`CreateDecisionsRouterDecisionsResponse502ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse502responsebody.ts): The upstream provider failed or returned an invalid classification response. Status code `502`. Applicable to 1 of 337 methods.*
1535
+ * [`SearchWebWebsearchResponse503ResponseBody`](./src/models/errors/searchwebwebsearchresponse503responsebody.ts): The gateway could not load workspace integrations. Retry when the credential store is available. Status code `503`. Applicable to 1 of 337 methods.*
1536
+ * [`SearchWebWebsearchResponse504ResponseBody`](./src/models/errors/searchwebwebsearchresponse504responsebody.ts): The provider request timed out or was cancelled. Status code `504`. Applicable to 1 of 337 methods.*
1521
1537
  * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
1522
1538
 
1523
1539
  </details>
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Classify
13
13
  *
14
14
  * @remarks
15
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
15
+ * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
16
16
  */
17
- export declare function routerClassifyCreate(client: OrqCore, request: operations.CreateClassifyRequestBody, options?: RequestOptions): APIPromise<Result<operations.CreateClassifyResponseBody, errors.CreateClassifyResponseBody | errors.CreateClassifyRouterClassifyResponseBody | errors.CreateClassifyRouterClassifyResponseResponseBody | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ export declare function routerClassifyCreate(client: OrqCore, request: operations.CreateClassifyRequestBody, options?: RequestOptions): APIPromise<Result<operations.CreateClassifyResponseBody, errors.CreateClassifyResponseBody | errors.CreateClassifyRouterClassifyResponseBody | errors.CreateClassifyRouterClassifyResponseResponseBody | errors.CreateClassifyRouterClassifyResponse422ResponseBody | errors.CreateClassifyRouterClassifyResponse429ResponseBody | errors.CreateClassifyRouterClassifyResponse500ResponseBody | errors.CreateClassifyRouterClassifyResponse502ResponseBody | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=routerClassifyCreate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routerClassifyCreate.d.ts","sourceRoot":"","sources":["../src/funcs/routerClassifyCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2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M,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,0BAA0B,GACjC,MAAM,CAAC,wCAAwC,GAC/C,MAAM,CAAC,gDAAgD,GACvD,MAAM,CAAC,mDAAmD,GAC1D,MAAM,CAAC,mDAAmD,GAC1D,MAAM,CAAC,mDAAmD,GAC1D,MAAM,CAAC,mDAAmD,GAC1D,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
51
51
  * Classify
52
52
  *
53
53
  * @remarks
54
- * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
54
+ * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
55
55
  */
56
56
  function routerClassifyCreate(client, request, options) {
57
57
  return new async_js_1.APIPromise($do(client, request, options));
@@ -110,7 +110,7 @@ async function $do(client, request, options) {
110
110
  const responseFields = {
111
111
  HttpMeta: { Response: response, Request: req },
112
112
  };
113
- const [result] = await M.match(M.json(200, operations.CreateClassifyResponseBody$inboundSchema), M.jsonErr(400, errors.CreateClassifyResponseBody$inboundSchema), M.jsonErr(422, errors.CreateClassifyRouterClassifyResponseBody$inboundSchema), M.jsonErr(429, errors.CreateClassifyRouterClassifyResponseResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
113
+ const [result] = await M.match(M.json(200, operations.CreateClassifyResponseBody$inboundSchema), M.jsonErr(400, errors.CreateClassifyResponseBody$inboundSchema), M.jsonErr(401, errors.CreateClassifyRouterClassifyResponseBody$inboundSchema), M.jsonErr(403, errors.CreateClassifyRouterClassifyResponseResponseBody$inboundSchema), M.jsonErr(422, errors.CreateClassifyRouterClassifyResponse422ResponseBody$inboundSchema), M.jsonErr(429, errors.CreateClassifyRouterClassifyResponse429ResponseBody$inboundSchema), M.jsonErr(500, errors.CreateClassifyRouterClassifyResponse500ResponseBody$inboundSchema), M.jsonErr(502, errors.CreateClassifyRouterClassifyResponse502ResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
114
114
  if (!result.ok) {
115
115
  return [result, { status: "complete", request: req, response }];
116
116
  }
@@ -1 +1 @@
1
- {"version":3,"file":"routerClassifyCreate.js","sourceRoot":"","sources":["../src/funcs/routerClassifyCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,oDAyBC;AAtDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAA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O,CACP,GAAG,EACH,MAAM,CAAC,iEAAiE,CACzE,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { OrqError } from "../models/errors/orqerror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Decisions
13
+ *
14
+ * @remarks
15
+ * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
16
+ */
17
+ export declare function routerDecisionsCreate(client: OrqCore, request: operations.CreateDecisionsRequestBody, options?: RequestOptions): APIPromise<Result<operations.CreateDecisionsResponseBody, errors.CreateDecisionsResponseBody | errors.CreateDecisionsRouterDecisionsResponseBody | errors.CreateDecisionsRouterDecisionsResponseResponseBody | errors.CreateDecisionsRouterDecisionsResponse422ResponseBody | errors.CreateDecisionsRouterDecisionsResponse429ResponseBody | errors.CreateDecisionsRouterDecisionsResponse500ResponseBody | errors.CreateDecisionsRouterDecisionsResponse502ResponseBody | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=routerDecisionsCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routerDecisionsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/routerDecisionsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,2BAA2B,EACpC,MAAM,CAAC,2BAA2B,GAClC,MAAM,CAAC,0CAA0C,GACjD,MAAM,CAAC,kDAAkD,GACzD,MAAM,CAAC,qDAAqD,GAC5D,MAAM,CAAC,qDAAqD,GAC5D,MAAM,CAAC,qDAAqD,GAC5D,MAAM,CAAC,qDAAqD,GAC5D,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.routerDecisionsCreate = routerDecisionsCreate;
40
+ const encodings_js_1 = require("../lib/encodings.js");
41
+ const http_js_1 = require("../lib/http.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const errors = __importStar(require("../models/errors/index.js"));
48
+ const operations = __importStar(require("../models/operations/index.js"));
49
+ const async_js_1 = require("../types/async.js");
50
+ /**
51
+ * Decisions
52
+ *
53
+ * @remarks
54
+ * **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against a native classify provider, including OpenAI Decisions with `openai/gpt-6-luna`, or a chat model that supports classify emulation. Emulated models answer through one structured-output call and their probabilities are model-reported rather than calibrated. Native providers can return `refusal` for individual questions; refused answers contain only `type`. The request and response follow the TypeSafe classification contract; `model` in the response identifies the primary or fallback model that answered and `usage` carries the computed cost like the Responses API. Both `/v3/router/classify` and `/v3/router/decisions` use this contract, including ordered `fallbacks`, request-level `retry`, and `identity` attribution. Both require `classify.execute`. This endpoint currently does not apply PII plugins or guardrails.
55
+ */
56
+ function routerDecisionsCreate(client, request, options) {
57
+ return new async_js_1.APIPromise($do(client, request, options));
58
+ }
59
+ async function $do(client, request, options) {
60
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateDecisionsRequestBody$outboundSchema.parse(value), "Input validation failed");
61
+ if (!parsed.ok) {
62
+ return [parsed, { status: "invalid" }];
63
+ }
64
+ const payload = parsed.value;
65
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
66
+ const path = (0, url_js_1.pathToFunc)("/v3/router/decisions")();
67
+ const headers = new Headers((0, primitives_js_1.compactMap)({
68
+ "Content-Type": "application/json",
69
+ Accept: "application/json",
70
+ }));
71
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
72
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
73
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
74
+ const context = {
75
+ options: client._options,
76
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
77
+ operationID: "CreateDecisions",
78
+ oAuth2Scopes: null,
79
+ resolvedSecurity: requestSecurity,
80
+ securitySource: client._options.apiKey,
81
+ retryConfig: options?.retries
82
+ || client._options.retryConfig
83
+ || { strategy: "none" },
84
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
85
+ };
86
+ const requestRes = client._createRequest(context, {
87
+ security: requestSecurity,
88
+ method: "POST",
89
+ baseURL: options?.serverURL,
90
+ path: path,
91
+ headers: headers,
92
+ body: body,
93
+ userAgent: client._options.userAgent,
94
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
95
+ }, options);
96
+ if (!requestRes.ok) {
97
+ return [requestRes, { status: "invalid" }];
98
+ }
99
+ const req = requestRes.value;
100
+ const doResult = await client._do(req, {
101
+ context,
102
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
103
+ retryConfig: context.retryConfig,
104
+ retryCodes: context.retryCodes,
105
+ });
106
+ if (!doResult.ok) {
107
+ return [doResult, { status: "request-error", request: req }];
108
+ }
109
+ const response = doResult.value;
110
+ const responseFields = {
111
+ HttpMeta: { Response: response, Request: req },
112
+ };
113
+ const [result] = await M.match(M.json(200, operations.CreateDecisionsResponseBody$inboundSchema), M.jsonErr(400, errors.CreateDecisionsResponseBody$inboundSchema), M.jsonErr(401, errors.CreateDecisionsRouterDecisionsResponseBody$inboundSchema), M.jsonErr(403, errors.CreateDecisionsRouterDecisionsResponseResponseBody$inboundSchema), M.jsonErr(422, errors
114
+ .CreateDecisionsRouterDecisionsResponse422ResponseBody$inboundSchema), M.jsonErr(429, errors
115
+ .CreateDecisionsRouterDecisionsResponse429ResponseBody$inboundSchema), M.jsonErr(500, errors
116
+ .CreateDecisionsRouterDecisionsResponse500ResponseBody$inboundSchema), M.jsonErr(502, errors
117
+ .CreateDecisionsRouterDecisionsResponse502ResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
118
+ if (!result.ok) {
119
+ return [result, { status: "complete", request: req, response }];
120
+ }
121
+ return [result, { status: "complete", request: req, response }];
122
+ }
123
+ //# sourceMappingURL=routerDecisionsCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routerDecisionsCreate.js","sourceRoot":"","sources":["../src/funcs/routerDecisionsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,sDA6BC;AA1DD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,qBAAqB,CACnC,MAAe,EACf,OAA8C,EAC9C,OAAwB;IAqBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAA8C,EAC9C,OAAwB;IAwBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,yCAAyC,CAAC,KAAK,CAAC,KAAK,CAAC,EACnE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;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C,yCAAyC,CAAC,EACjE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,yCAAyC,CAAC,EAChE,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,wDAAwD,CAChE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM,CAAC,gEAAgE,CACxE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,mEAAmE,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,mEAAmE,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,mEAAmE,CACvE,EACD,CAAC,CAAC,OAAO,CACP,GAAG,EACH,MAAM;SACH,mEAAmE,CACvE,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.16.0-rc.57",
5
+ "version": "4.16.0-rc.58",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0";
34
- readonly sdkVersion: "4.16.0-rc.57";
34
+ readonly sdkVersion: "4.16.0-rc.58";
35
35
  readonly genVersion: "2.943.0";
36
- readonly userAgent: "speakeasy-sdk/typescript 4.16.0-rc.57 2.943.0 2.0 @orq-ai/node";
36
+ readonly userAgent: "speakeasy-sdk/typescript 4.16.0-rc.58 2.943.0 2.0 @orq-ai/node";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "2.0",
31
- sdkVersion: "4.16.0-rc.57",
31
+ sdkVersion: "4.16.0-rc.58",
32
32
  genVersion: "2.943.0",
33
- userAgent: "speakeasy-sdk/typescript 4.16.0-rc.57 2.943.0 2.0 @orq-ai/node",
33
+ userAgent: "speakeasy-sdk/typescript 4.16.0-rc.58 2.943.0 2.0 @orq-ai/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -1,55 +1,14 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { ClassifyChoiceAnswer } from "./classifychoiceanswer.js";
5
+ import { ClassifyNoulAnswer } from "./classifynoulanswer.js";
6
+ import { ClassifyRefusalAnswer } from "./classifyrefusalanswer.js";
7
+ import { ClassifyScoreAnswer } from "./classifyscoreanswer.js";
5
8
  /**
6
- * The question type this answer belongs to.
9
+ * One answer to a classification question. The type selects the answer fields. A refusal contains only type.
7
10
  */
8
- export declare const ClassifyAnswerType: {
9
- readonly Noul: "noul";
10
- readonly Choice: "choice";
11
- readonly Score: "score";
12
- };
13
- /**
14
- * The question type this answer belongs to.
15
- */
16
- export type ClassifyAnswerType = ClosedEnum<typeof ClassifyAnswerType>;
17
- export type ClassifyAnswer = {
18
- /**
19
- * The selected option. Present for choice answers.
20
- */
21
- choice?: string | undefined;
22
- /**
23
- * How sure the model is of the answer it selected: on chat models the largest value in probabilities, so it adds nothing the distribution does not; typesafe/jev-latest returns its own calibrated value, which can sit below the largest probability. Present for choice and score answers.
24
- */
25
- confidence?: number | undefined;
26
- /**
27
- * Level index to level description. Present for score answers.
28
- */
29
- legend?: {
30
- [k: string]: string;
31
- } | undefined;
32
- /**
33
- * Probability between 0 and 1 that the statement holds. Present for noul answers.
34
- */
35
- noul?: number | undefined;
36
- /**
37
- * Probability distribution over the options or levels. Present for choice and score answers.
38
- */
39
- probabilities?: {
40
- [k: string]: number;
41
- } | undefined;
42
- /**
43
- * Position on the scale, not an index: on chat models the weighted index, each level index multiplied by that level probability and summed, so the value is usually fractional; typesafe/jev-latest returns its own score. Present for score answers.
44
- */
45
- score?: number | undefined;
46
- /**
47
- * The question type this answer belongs to.
48
- */
49
- type: ClassifyAnswerType;
50
- };
51
- /** @internal */
52
- export declare const ClassifyAnswerType$inboundSchema: z.ZodNativeEnum<typeof ClassifyAnswerType>;
11
+ export type ClassifyAnswer = ClassifyChoiceAnswer | ClassifyNoulAnswer | ClassifyRefusalAnswer | ClassifyScoreAnswer;
53
12
  /** @internal */
54
13
  export declare const ClassifyAnswer$inboundSchema: z.ZodType<ClassifyAnswer, z.ZodTypeDef, unknown>;
55
14
  export declare function classifyAnswerFromJSON(jsonString: string): SafeParseResult<ClassifyAnswer, SDKValidationError>;
@@ -1 +1 @@
1
- {"version":3,"file":"classifyanswer.d.ts","sourceRoot":"","sources":["../../src/models/components/classifyanswer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;A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C,CAAC;AACrE,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -36,30 +36,21 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ClassifyAnswer$inboundSchema = exports.ClassifyAnswerType$inboundSchema = exports.ClassifyAnswerType = void 0;
39
+ exports.ClassifyAnswer$inboundSchema = void 0;
40
40
  exports.classifyAnswerFromJSON = classifyAnswerFromJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  const schemas_js_1 = require("../../lib/schemas.js");
43
- /**
44
- * The question type this answer belongs to.
45
- */
46
- exports.ClassifyAnswerType = {
47
- Noul: "noul",
48
- Choice: "choice",
49
- Score: "score",
50
- };
51
- /** @internal */
52
- exports.ClassifyAnswerType$inboundSchema = z.nativeEnum(exports.ClassifyAnswerType);
43
+ const classifychoiceanswer_js_1 = require("./classifychoiceanswer.js");
44
+ const classifynoulanswer_js_1 = require("./classifynoulanswer.js");
45
+ const classifyrefusalanswer_js_1 = require("./classifyrefusalanswer.js");
46
+ const classifyscoreanswer_js_1 = require("./classifyscoreanswer.js");
53
47
  /** @internal */
54
- exports.ClassifyAnswer$inboundSchema = z.object({
55
- choice: z.string().optional(),
56
- confidence: z.number().optional(),
57
- legend: z.record(z.string()).optional(),
58
- noul: z.number().optional(),
59
- probabilities: z.record(z.number()).optional(),
60
- score: z.number().optional(),
61
- type: exports.ClassifyAnswerType$inboundSchema,
62
- });
48
+ exports.ClassifyAnswer$inboundSchema = z.union([
49
+ classifychoiceanswer_js_1.ClassifyChoiceAnswer$inboundSchema,
50
+ classifynoulanswer_js_1.ClassifyNoulAnswer$inboundSchema,
51
+ classifyrefusalanswer_js_1.ClassifyRefusalAnswer$inboundSchema,
52
+ classifyscoreanswer_js_1.ClassifyScoreAnswer$inboundSchema,
53
+ ]);
63
54
  function classifyAnswerFromJSON(jsonString) {
64
55
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ClassifyAnswer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ClassifyAnswer' from JSON`);
65
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"classifyanswer.js","sourceRoot":"","sources":["../../src/models/components/classifyanswer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,wDAQC;AA9ED,0CAA4B;AAC5B,qDAAiD;AAKjD;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAqCX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAErC,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,wCAAgC;CACvC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"classifyanswer.js","sourceRoot":"","sources":["../../src/models/components/classifyanswer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CH,wDAQC;AAlDD,0CAA4B;AAC5B,qDAAiD;AAGjD,uEAGmC;AACnC,mEAGiC;AACjC,yEAGoC;AACpC,qEAGkC;AAWlC,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,KAAK,CAAC;IACV,4DAAkC;IAClC,wDAAgC;IAChC,8DAAmC;IACnC,0DAAiC;CAClC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,24 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type ClassifyChoiceAnswer = {
5
+ /**
6
+ * The selected option. Present for choice answers.
7
+ */
8
+ choice: string;
9
+ /**
10
+ * How sure the model is of the answer it selected: on emulated chat models the largest value in probabilities, so it adds nothing the distribution does not; native providers return their own confidence value, which can sit below the largest probability. Present for choice and score answers.
11
+ */
12
+ confidence?: number | undefined;
13
+ /**
14
+ * Probability distribution over the options or levels. Present for choice and score answers.
15
+ */
16
+ probabilities?: {
17
+ [k: string]: number;
18
+ } | undefined;
19
+ type: "choice";
20
+ };
21
+ /** @internal */
22
+ export declare const ClassifyChoiceAnswer$inboundSchema: z.ZodType<ClassifyChoiceAnswer, z.ZodTypeDef, unknown>;
23
+ export declare function classifyChoiceAnswerFromJSON(jsonString: string): SafeParseResult<ClassifyChoiceAnswer, SDKValidationError>;
24
+ //# sourceMappingURL=classifychoiceanswer.d.ts.map