@orq-ai/node 4.5.2 → 4.6.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -184
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +0 -178
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -187
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -182
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -204
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -189
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -171
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -171
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -186
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -198
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -273
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -263
- package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
- package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
- package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -497
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -161
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -346
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -263
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -517
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
- package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
- package/packages/orq-rc/src/models/components/datapart.ts +0 -38
- package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
- package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
- package/packages/orq-rc/src/models/components/filepart.ts +0 -218
- package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
- package/packages/orq-rc/src/models/components/index.ts +0 -59
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
- package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
- package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
- package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
- package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
- package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
- package/packages/orq-rc/src/models/components/security.ts +0 -32
- package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
- package/packages/orq-rc/src/models/components/textpart.ts +0 -54
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
- package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
- package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
- package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -35
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6393
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -644
- package/packages/orq-rc/src/models/operations/createannotation.ts +0 -166
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6392
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
- package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3418
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
- package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -4170
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
- package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
- package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5391
- package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
- package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3325
- package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
- package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
- package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -79
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -729
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -1269
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4653
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3165
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -2842
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3090
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3135
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
- package/packages/orq-rc/src/models/operations/index.ts +0 -116
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -777
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1253
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -2754
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
- package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3210
- package/packages/orq-rc/src/models/operations/parse.ts +0 -777
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -252
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
- package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2814
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4927
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -668
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5089
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6824
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4152
- package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5473
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2810
- package/packages/orq-rc/src/sdk/agents.ts +0 -234
- package/packages/orq-rc/src/sdk/annotations.ts +0 -39
- package/packages/orq-rc/src/sdk/audio.ts +0 -25
- package/packages/orq-rc/src/sdk/chat.ts +0 -13
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/completions.ts +0 -32
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/edits.ts +0 -27
- package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
- package/packages/orq-rc/src/sdk/evals.ts +0 -84
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/generations.ts +0 -27
- package/packages/orq-rc/src/sdk/identities.ts +0 -99
- package/packages/orq-rc/src/sdk/images.ts +0 -25
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/moderations.ts +0 -24
- package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
- package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/rerank.ts +0 -27
- package/packages/orq-rc/src/sdk/responses.ts +0 -53
- package/packages/orq-rc/src/sdk/router.ts +0 -72
- package/packages/orq-rc/src/sdk/sdk.ts +0 -115
- package/packages/orq-rc/src/sdk/speech.ts +0 -27
- package/packages/orq-rc/src/sdk/tools.ts +0 -135
- package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
- package/packages/orq-rc/src/sdk/translations.ts +0 -24
- package/packages/orq-rc/src/sdk/variations.ts +0 -27
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -35
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import { DataPart, DataPart$inboundSchema } from "./datapart.js";
|
|
12
|
-
import { ErrorPart, ErrorPart$inboundSchema } from "./errorpart.js";
|
|
13
|
-
import { FilePart, FilePart$inboundSchema } from "./filepart.js";
|
|
14
|
-
import { TextPart, TextPart$inboundSchema } from "./textpart.js";
|
|
15
|
-
import { ToolCallPart, ToolCallPart$inboundSchema } from "./toolcallpart.js";
|
|
16
|
-
import {
|
|
17
|
-
ToolResultPart,
|
|
18
|
-
ToolResultPart$inboundSchema,
|
|
19
|
-
} from "./toolresultpart.js";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Extended A2A message role
|
|
23
|
-
*/
|
|
24
|
-
export const AgentStartedStreamingEventRole = {
|
|
25
|
-
User: "user",
|
|
26
|
-
Agent: "agent",
|
|
27
|
-
Tool: "tool",
|
|
28
|
-
System: "system",
|
|
29
|
-
} as const;
|
|
30
|
-
/**
|
|
31
|
-
* Extended A2A message role
|
|
32
|
-
*/
|
|
33
|
-
export type AgentStartedStreamingEventRole = ClosedEnum<
|
|
34
|
-
typeof AgentStartedStreamingEventRole
|
|
35
|
-
>;
|
|
36
|
-
|
|
37
|
-
export type AgentStartedStreamingEventParts =
|
|
38
|
-
| TextPart
|
|
39
|
-
| ErrorPart
|
|
40
|
-
| DataPart
|
|
41
|
-
| FilePart
|
|
42
|
-
| ToolCallPart
|
|
43
|
-
| ToolResultPart;
|
|
44
|
-
|
|
45
|
-
export type InputMessage = {
|
|
46
|
-
messageId?: string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Extended A2A message role
|
|
49
|
-
*/
|
|
50
|
-
role: AgentStartedStreamingEventRole;
|
|
51
|
-
parts: Array<
|
|
52
|
-
TextPart | ErrorPart | DataPart | FilePart | ToolCallPart | ToolResultPart
|
|
53
|
-
>;
|
|
54
|
-
metadata?: { [k: string]: any } | undefined;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
59
|
-
*/
|
|
60
|
-
export const ToolApprovalRequired = {
|
|
61
|
-
All: "all",
|
|
62
|
-
RespectTool: "respect_tool",
|
|
63
|
-
None: "none",
|
|
64
|
-
} as const;
|
|
65
|
-
/**
|
|
66
|
-
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
67
|
-
*/
|
|
68
|
-
export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
|
|
69
|
-
|
|
70
|
-
export type AgentStartedStreamingEventConditions = {
|
|
71
|
-
/**
|
|
72
|
-
* The argument of the tool call to evaluate
|
|
73
|
-
*/
|
|
74
|
-
condition: string;
|
|
75
|
-
/**
|
|
76
|
-
* The operator to use
|
|
77
|
-
*/
|
|
78
|
-
operator: string;
|
|
79
|
-
/**
|
|
80
|
-
* The value to compare against
|
|
81
|
-
*/
|
|
82
|
-
value: string;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export type Tools = {
|
|
86
|
-
/**
|
|
87
|
-
* The id of the resource
|
|
88
|
-
*/
|
|
89
|
-
id: string;
|
|
90
|
-
/**
|
|
91
|
-
* Optional tool key for custom tools
|
|
92
|
-
*/
|
|
93
|
-
key?: string | undefined;
|
|
94
|
-
actionType: string;
|
|
95
|
-
displayName?: string | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Optional tool description
|
|
98
|
-
*/
|
|
99
|
-
description?: string | undefined;
|
|
100
|
-
requiresApproval: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
103
|
-
*/
|
|
104
|
-
toolId?: string | undefined;
|
|
105
|
-
conditions?: Array<AgentStartedStreamingEventConditions> | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
|
|
108
|
-
*/
|
|
109
|
-
timeout: number;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
114
|
-
*/
|
|
115
|
-
export const ExecuteOn = {
|
|
116
|
-
Input: "input",
|
|
117
|
-
Output: "output",
|
|
118
|
-
} as const;
|
|
119
|
-
/**
|
|
120
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
121
|
-
*/
|
|
122
|
-
export type ExecuteOn = ClosedEnum<typeof ExecuteOn>;
|
|
123
|
-
|
|
124
|
-
export type Evaluators = {
|
|
125
|
-
/**
|
|
126
|
-
* Unique key or identifier of the evaluator
|
|
127
|
-
*/
|
|
128
|
-
id: string;
|
|
129
|
-
/**
|
|
130
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
131
|
-
*/
|
|
132
|
-
sampleRate: number;
|
|
133
|
-
/**
|
|
134
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
135
|
-
*/
|
|
136
|
-
executeOn: ExecuteOn;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
141
|
-
*/
|
|
142
|
-
export const AgentStartedStreamingEventExecuteOn = {
|
|
143
|
-
Input: "input",
|
|
144
|
-
Output: "output",
|
|
145
|
-
} as const;
|
|
146
|
-
/**
|
|
147
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
148
|
-
*/
|
|
149
|
-
export type AgentStartedStreamingEventExecuteOn = ClosedEnum<
|
|
150
|
-
typeof AgentStartedStreamingEventExecuteOn
|
|
151
|
-
>;
|
|
152
|
-
|
|
153
|
-
export type Guardrails = {
|
|
154
|
-
/**
|
|
155
|
-
* Unique key or identifier of the evaluator
|
|
156
|
-
*/
|
|
157
|
-
id: string;
|
|
158
|
-
/**
|
|
159
|
-
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
160
|
-
*/
|
|
161
|
-
sampleRate: number;
|
|
162
|
-
/**
|
|
163
|
-
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
164
|
-
*/
|
|
165
|
-
executeOn: AgentStartedStreamingEventExecuteOn;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export type Settings = {
|
|
169
|
-
/**
|
|
170
|
-
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
171
|
-
*/
|
|
172
|
-
maxIterations: number;
|
|
173
|
-
/**
|
|
174
|
-
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
175
|
-
*/
|
|
176
|
-
maxExecutionTime: number;
|
|
177
|
-
/**
|
|
178
|
-
* Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
|
|
179
|
-
*/
|
|
180
|
-
maxCost: number;
|
|
181
|
-
/**
|
|
182
|
-
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
183
|
-
*/
|
|
184
|
-
toolApprovalRequired: ToolApprovalRequired;
|
|
185
|
-
tools?: Array<Tools> | undefined;
|
|
186
|
-
/**
|
|
187
|
-
* Configuration for an evaluator applied to the agent
|
|
188
|
-
*/
|
|
189
|
-
evaluators?: Array<Evaluators> | undefined;
|
|
190
|
-
/**
|
|
191
|
-
* Configuration for a guardrail applied to the agent
|
|
192
|
-
*/
|
|
193
|
-
guardrails?: Array<Guardrails> | undefined;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
export const AgentSource = {
|
|
197
|
-
Internal: "internal",
|
|
198
|
-
External: "external",
|
|
199
|
-
Experiment: "experiment",
|
|
200
|
-
} as const;
|
|
201
|
-
export type AgentSource = ClosedEnum<typeof AgentSource>;
|
|
202
|
-
|
|
203
|
-
export type AgentStartedStreamingEventData = {
|
|
204
|
-
workflowRunId: string;
|
|
205
|
-
integrationId?: string | undefined;
|
|
206
|
-
inputMessage: InputMessage;
|
|
207
|
-
modelId: string;
|
|
208
|
-
instructions: string;
|
|
209
|
-
systemPrompt: string;
|
|
210
|
-
settings?: Settings | undefined;
|
|
211
|
-
agentManifestId: string;
|
|
212
|
-
agentKey: string;
|
|
213
|
-
agentDescription?: string | null | undefined;
|
|
214
|
-
agentSource?: AgentSource | null | undefined;
|
|
215
|
-
variables?: { [k: string]: any } | undefined;
|
|
216
|
-
toolExecutionId?: string | undefined;
|
|
217
|
-
isContinuation?: boolean | undefined;
|
|
218
|
-
stream?: boolean | undefined;
|
|
219
|
-
responseId?: string | undefined;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Emitted when the agent begins processing. Contains configuration details including the model, instructions, system prompt, and input message.
|
|
224
|
-
*/
|
|
225
|
-
export type AgentStartedStreamingEvent = {
|
|
226
|
-
type: "event.agents.started";
|
|
227
|
-
/**
|
|
228
|
-
* ISO timestamp of the event
|
|
229
|
-
*/
|
|
230
|
-
timestamp: string;
|
|
231
|
-
data: AgentStartedStreamingEventData;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/** @internal */
|
|
235
|
-
export const AgentStartedStreamingEventRole$inboundSchema: z.ZodNativeEnum<
|
|
236
|
-
typeof AgentStartedStreamingEventRole
|
|
237
|
-
> = z.nativeEnum(AgentStartedStreamingEventRole);
|
|
238
|
-
|
|
239
|
-
/** @internal */
|
|
240
|
-
export const AgentStartedStreamingEventParts$inboundSchema: z.ZodType<
|
|
241
|
-
AgentStartedStreamingEventParts,
|
|
242
|
-
z.ZodTypeDef,
|
|
243
|
-
unknown
|
|
244
|
-
> = z.union([
|
|
245
|
-
TextPart$inboundSchema,
|
|
246
|
-
ErrorPart$inboundSchema,
|
|
247
|
-
DataPart$inboundSchema,
|
|
248
|
-
FilePart$inboundSchema,
|
|
249
|
-
ToolCallPart$inboundSchema,
|
|
250
|
-
ToolResultPart$inboundSchema,
|
|
251
|
-
]);
|
|
252
|
-
|
|
253
|
-
export function agentStartedStreamingEventPartsFromJSON(
|
|
254
|
-
jsonString: string,
|
|
255
|
-
): SafeParseResult<AgentStartedStreamingEventParts, SDKValidationError> {
|
|
256
|
-
return safeParse(
|
|
257
|
-
jsonString,
|
|
258
|
-
(x) => AgentStartedStreamingEventParts$inboundSchema.parse(JSON.parse(x)),
|
|
259
|
-
`Failed to parse 'AgentStartedStreamingEventParts' from JSON`,
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/** @internal */
|
|
264
|
-
export const InputMessage$inboundSchema: z.ZodType<
|
|
265
|
-
InputMessage,
|
|
266
|
-
z.ZodTypeDef,
|
|
267
|
-
unknown
|
|
268
|
-
> = z.object({
|
|
269
|
-
messageId: z.string().optional(),
|
|
270
|
-
role: AgentStartedStreamingEventRole$inboundSchema,
|
|
271
|
-
parts: z.array(
|
|
272
|
-
z.union([
|
|
273
|
-
TextPart$inboundSchema,
|
|
274
|
-
ErrorPart$inboundSchema,
|
|
275
|
-
DataPart$inboundSchema,
|
|
276
|
-
FilePart$inboundSchema,
|
|
277
|
-
ToolCallPart$inboundSchema,
|
|
278
|
-
ToolResultPart$inboundSchema,
|
|
279
|
-
]),
|
|
280
|
-
),
|
|
281
|
-
metadata: z.record(z.any()).optional(),
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
export function inputMessageFromJSON(
|
|
285
|
-
jsonString: string,
|
|
286
|
-
): SafeParseResult<InputMessage, SDKValidationError> {
|
|
287
|
-
return safeParse(
|
|
288
|
-
jsonString,
|
|
289
|
-
(x) => InputMessage$inboundSchema.parse(JSON.parse(x)),
|
|
290
|
-
`Failed to parse 'InputMessage' from JSON`,
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/** @internal */
|
|
295
|
-
export const ToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
|
|
296
|
-
typeof ToolApprovalRequired
|
|
297
|
-
> = z.nativeEnum(ToolApprovalRequired);
|
|
298
|
-
|
|
299
|
-
/** @internal */
|
|
300
|
-
export const AgentStartedStreamingEventConditions$inboundSchema: z.ZodType<
|
|
301
|
-
AgentStartedStreamingEventConditions,
|
|
302
|
-
z.ZodTypeDef,
|
|
303
|
-
unknown
|
|
304
|
-
> = z.object({
|
|
305
|
-
condition: z.string(),
|
|
306
|
-
operator: z.string(),
|
|
307
|
-
value: z.string(),
|
|
308
|
-
});
|
|
309
|
-
|
|
310
|
-
export function agentStartedStreamingEventConditionsFromJSON(
|
|
311
|
-
jsonString: string,
|
|
312
|
-
): SafeParseResult<AgentStartedStreamingEventConditions, SDKValidationError> {
|
|
313
|
-
return safeParse(
|
|
314
|
-
jsonString,
|
|
315
|
-
(x) =>
|
|
316
|
-
AgentStartedStreamingEventConditions$inboundSchema.parse(JSON.parse(x)),
|
|
317
|
-
`Failed to parse 'AgentStartedStreamingEventConditions' from JSON`,
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/** @internal */
|
|
322
|
-
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
323
|
-
.object({
|
|
324
|
-
id: z.string(),
|
|
325
|
-
key: z.string().optional(),
|
|
326
|
-
action_type: z.string(),
|
|
327
|
-
display_name: z.string().optional(),
|
|
328
|
-
description: z.string().optional(),
|
|
329
|
-
requires_approval: z.boolean().default(false),
|
|
330
|
-
tool_id: z.string().optional(),
|
|
331
|
-
conditions: z.array(
|
|
332
|
-
z.lazy(() => AgentStartedStreamingEventConditions$inboundSchema),
|
|
333
|
-
).optional(),
|
|
334
|
-
timeout: z.number().default(120),
|
|
335
|
-
}).transform((v) => {
|
|
336
|
-
return remap$(v, {
|
|
337
|
-
"action_type": "actionType",
|
|
338
|
-
"display_name": "displayName",
|
|
339
|
-
"requires_approval": "requiresApproval",
|
|
340
|
-
"tool_id": "toolId",
|
|
341
|
-
});
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
export function toolsFromJSON(
|
|
345
|
-
jsonString: string,
|
|
346
|
-
): SafeParseResult<Tools, SDKValidationError> {
|
|
347
|
-
return safeParse(
|
|
348
|
-
jsonString,
|
|
349
|
-
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
350
|
-
`Failed to parse 'Tools' from JSON`,
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/** @internal */
|
|
355
|
-
export const ExecuteOn$inboundSchema: z.ZodNativeEnum<typeof ExecuteOn> = z
|
|
356
|
-
.nativeEnum(ExecuteOn);
|
|
357
|
-
|
|
358
|
-
/** @internal */
|
|
359
|
-
export const Evaluators$inboundSchema: z.ZodType<
|
|
360
|
-
Evaluators,
|
|
361
|
-
z.ZodTypeDef,
|
|
362
|
-
unknown
|
|
363
|
-
> = z.object({
|
|
364
|
-
id: z.string(),
|
|
365
|
-
sample_rate: z.number().default(50),
|
|
366
|
-
execute_on: ExecuteOn$inboundSchema,
|
|
367
|
-
}).transform((v) => {
|
|
368
|
-
return remap$(v, {
|
|
369
|
-
"sample_rate": "sampleRate",
|
|
370
|
-
"execute_on": "executeOn",
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
|
|
374
|
-
export function evaluatorsFromJSON(
|
|
375
|
-
jsonString: string,
|
|
376
|
-
): SafeParseResult<Evaluators, SDKValidationError> {
|
|
377
|
-
return safeParse(
|
|
378
|
-
jsonString,
|
|
379
|
-
(x) => Evaluators$inboundSchema.parse(JSON.parse(x)),
|
|
380
|
-
`Failed to parse 'Evaluators' from JSON`,
|
|
381
|
-
);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/** @internal */
|
|
385
|
-
export const AgentStartedStreamingEventExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
386
|
-
typeof AgentStartedStreamingEventExecuteOn
|
|
387
|
-
> = z.nativeEnum(AgentStartedStreamingEventExecuteOn);
|
|
388
|
-
|
|
389
|
-
/** @internal */
|
|
390
|
-
export const Guardrails$inboundSchema: z.ZodType<
|
|
391
|
-
Guardrails,
|
|
392
|
-
z.ZodTypeDef,
|
|
393
|
-
unknown
|
|
394
|
-
> = z.object({
|
|
395
|
-
id: z.string(),
|
|
396
|
-
sample_rate: z.number().default(50),
|
|
397
|
-
execute_on: AgentStartedStreamingEventExecuteOn$inboundSchema,
|
|
398
|
-
}).transform((v) => {
|
|
399
|
-
return remap$(v, {
|
|
400
|
-
"sample_rate": "sampleRate",
|
|
401
|
-
"execute_on": "executeOn",
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
export function guardrailsFromJSON(
|
|
406
|
-
jsonString: string,
|
|
407
|
-
): SafeParseResult<Guardrails, SDKValidationError> {
|
|
408
|
-
return safeParse(
|
|
409
|
-
jsonString,
|
|
410
|
-
(x) => Guardrails$inboundSchema.parse(JSON.parse(x)),
|
|
411
|
-
`Failed to parse 'Guardrails' from JSON`,
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/** @internal */
|
|
416
|
-
export const Settings$inboundSchema: z.ZodType<
|
|
417
|
-
Settings,
|
|
418
|
-
z.ZodTypeDef,
|
|
419
|
-
unknown
|
|
420
|
-
> = z.object({
|
|
421
|
-
max_iterations: z.number().int().default(100),
|
|
422
|
-
max_execution_time: z.number().int().default(600),
|
|
423
|
-
max_cost: z.number().default(0),
|
|
424
|
-
tool_approval_required: ToolApprovalRequired$inboundSchema.default(
|
|
425
|
-
"respect_tool",
|
|
426
|
-
),
|
|
427
|
-
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
428
|
-
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
429
|
-
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
430
|
-
}).transform((v) => {
|
|
431
|
-
return remap$(v, {
|
|
432
|
-
"max_iterations": "maxIterations",
|
|
433
|
-
"max_execution_time": "maxExecutionTime",
|
|
434
|
-
"max_cost": "maxCost",
|
|
435
|
-
"tool_approval_required": "toolApprovalRequired",
|
|
436
|
-
});
|
|
437
|
-
});
|
|
438
|
-
|
|
439
|
-
export function settingsFromJSON(
|
|
440
|
-
jsonString: string,
|
|
441
|
-
): SafeParseResult<Settings, SDKValidationError> {
|
|
442
|
-
return safeParse(
|
|
443
|
-
jsonString,
|
|
444
|
-
(x) => Settings$inboundSchema.parse(JSON.parse(x)),
|
|
445
|
-
`Failed to parse 'Settings' from JSON`,
|
|
446
|
-
);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/** @internal */
|
|
450
|
-
export const AgentSource$inboundSchema: z.ZodNativeEnum<typeof AgentSource> = z
|
|
451
|
-
.nativeEnum(AgentSource);
|
|
452
|
-
|
|
453
|
-
/** @internal */
|
|
454
|
-
export const AgentStartedStreamingEventData$inboundSchema: z.ZodType<
|
|
455
|
-
AgentStartedStreamingEventData,
|
|
456
|
-
z.ZodTypeDef,
|
|
457
|
-
unknown
|
|
458
|
-
> = z.object({
|
|
459
|
-
workflowRunId: z.string(),
|
|
460
|
-
integration_id: z.string().optional(),
|
|
461
|
-
inputMessage: z.lazy(() => InputMessage$inboundSchema),
|
|
462
|
-
modelId: z.string(),
|
|
463
|
-
instructions: z.string(),
|
|
464
|
-
system_prompt: z.string(),
|
|
465
|
-
settings: z.lazy(() => Settings$inboundSchema).optional(),
|
|
466
|
-
agent_manifest_id: z.string(),
|
|
467
|
-
agent_key: z.string(),
|
|
468
|
-
agent_description: z.nullable(z.string()).optional(),
|
|
469
|
-
agent_source: z.nullable(AgentSource$inboundSchema).optional(),
|
|
470
|
-
variables: z.record(z.any()).optional(),
|
|
471
|
-
tool_execution_id: z.string().optional(),
|
|
472
|
-
is_continuation: z.boolean().optional(),
|
|
473
|
-
stream: z.boolean().optional(),
|
|
474
|
-
responseId: z.string().optional(),
|
|
475
|
-
}).transform((v) => {
|
|
476
|
-
return remap$(v, {
|
|
477
|
-
"integration_id": "integrationId",
|
|
478
|
-
"system_prompt": "systemPrompt",
|
|
479
|
-
"agent_manifest_id": "agentManifestId",
|
|
480
|
-
"agent_key": "agentKey",
|
|
481
|
-
"agent_description": "agentDescription",
|
|
482
|
-
"agent_source": "agentSource",
|
|
483
|
-
"tool_execution_id": "toolExecutionId",
|
|
484
|
-
"is_continuation": "isContinuation",
|
|
485
|
-
});
|
|
486
|
-
});
|
|
487
|
-
|
|
488
|
-
export function agentStartedStreamingEventDataFromJSON(
|
|
489
|
-
jsonString: string,
|
|
490
|
-
): SafeParseResult<AgentStartedStreamingEventData, SDKValidationError> {
|
|
491
|
-
return safeParse(
|
|
492
|
-
jsonString,
|
|
493
|
-
(x) => AgentStartedStreamingEventData$inboundSchema.parse(JSON.parse(x)),
|
|
494
|
-
`Failed to parse 'AgentStartedStreamingEventData' from JSON`,
|
|
495
|
-
);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/** @internal */
|
|
499
|
-
export const AgentStartedStreamingEvent$inboundSchema: z.ZodType<
|
|
500
|
-
AgentStartedStreamingEvent,
|
|
501
|
-
z.ZodTypeDef,
|
|
502
|
-
unknown
|
|
503
|
-
> = z.object({
|
|
504
|
-
type: z.literal("event.agents.started"),
|
|
505
|
-
timestamp: z.string(),
|
|
506
|
-
data: z.lazy(() => AgentStartedStreamingEventData$inboundSchema),
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
export function agentStartedStreamingEventFromJSON(
|
|
510
|
-
jsonString: string,
|
|
511
|
-
): SafeParseResult<AgentStartedStreamingEvent, SDKValidationError> {
|
|
512
|
-
return safeParse(
|
|
513
|
-
jsonString,
|
|
514
|
-
(x) => AgentStartedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
|
|
515
|
-
`Failed to parse 'AgentStartedStreamingEvent' from JSON`,
|
|
516
|
-
);
|
|
517
|
-
}
|