@orq-ai/node 3.13.6 → 3.13.8
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/README.md +0 -1
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +330 -330
- package/bin/mcp-server.js.map +168 -168
- package/examples/package-lock.json +1 -1
- package/funcs/agentsList.js +1 -1
- package/funcs/agentsList.js.map +1 -1
- package/funcs/agentsListActions.js +1 -1
- package/funcs/agentsListActions.js.map +1 -1
- package/funcs/agentsListTasks.js +1 -1
- package/funcs/agentsListTasks.js.map +1 -1
- package/funcs/agentsRetrieve.js +1 -1
- package/funcs/agentsRetrieve.js.map +1 -1
- package/funcs/agentsRetrieveAction.js +1 -1
- package/funcs/agentsRetrieveAction.js.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +1 -1
- package/funcs/agentsStreamRun.js +1 -1
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/budgetsCreate.js +1 -1
- package/funcs/budgetsCreate.js.map +1 -1
- package/funcs/budgetsDelete.js +1 -1
- package/funcs/budgetsDelete.js.map +1 -1
- package/funcs/budgetsGet.js +1 -1
- package/funcs/budgetsGet.js.map +1 -1
- package/funcs/budgetsList.js +1 -1
- package/funcs/budgetsList.js.map +1 -1
- package/funcs/budgetsUpdate.js +1 -1
- package/funcs/budgetsUpdate.js.map +1 -1
- package/funcs/chunkingParse.js +1 -1
- package/funcs/chunkingParse.js.map +1 -1
- package/funcs/contactsCreate.js +1 -1
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/contactsDelete.js +1 -1
- package/funcs/contactsDelete.js.map +1 -1
- package/funcs/contactsList.js +1 -1
- package/funcs/contactsList.js.map +1 -1
- package/funcs/contactsRetrieve.js +1 -1
- package/funcs/contactsRetrieve.js.map +1 -1
- package/funcs/contactsUpdate.js +1 -1
- package/funcs/contactsUpdate.js.map +1 -1
- package/funcs/datasetsClear.js +1 -1
- package/funcs/datasetsClear.js.map +1 -1
- package/funcs/datasetsCreate.js +1 -1
- package/funcs/datasetsCreate.js.map +1 -1
- package/funcs/datasetsCreateDatapoint.js +1 -1
- package/funcs/datasetsCreateDatapoint.js.map +1 -1
- package/funcs/datasetsDelete.js +1 -1
- package/funcs/datasetsDelete.js.map +1 -1
- package/funcs/datasetsDeleteDatapoint.js +1 -1
- package/funcs/datasetsDeleteDatapoint.js.map +1 -1
- package/funcs/datasetsList.js +1 -1
- package/funcs/datasetsList.js.map +1 -1
- package/funcs/datasetsListDatapoints.js +1 -1
- package/funcs/datasetsListDatapoints.js.map +1 -1
- package/funcs/datasetsRetrieve.js +1 -1
- package/funcs/datasetsRetrieve.js.map +1 -1
- package/funcs/datasetsRetrieveDatapoint.js +1 -1
- package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
- package/funcs/datasetsUpdate.js +1 -1
- package/funcs/datasetsUpdate.js.map +1 -1
- package/funcs/datasetsUpdateDatapoint.js +1 -1
- package/funcs/datasetsUpdateDatapoint.js.map +1 -1
- package/funcs/deploymentsGetConfig.js +1 -1
- package/funcs/deploymentsGetConfig.js.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/deploymentsList.js +1 -1
- package/funcs/deploymentsList.js.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +1 -1
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/deploymentsStream.js +1 -1
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/evalsAgeAppropriate.js +1 -1
- package/funcs/evalsAgeAppropriate.js.map +1 -1
- package/funcs/evalsAll.js +1 -1
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/evalsBertScore.js +1 -1
- package/funcs/evalsBertScore.js.map +1 -1
- package/funcs/evalsBleuScore.js +1 -1
- package/funcs/evalsBleuScore.js.map +1 -1
- package/funcs/evalsBotDetection.js +1 -1
- package/funcs/evalsBotDetection.js.map +1 -1
- package/funcs/evalsContains.js +1 -1
- package/funcs/evalsContains.js.map +1 -1
- package/funcs/evalsContainsAll.js +1 -1
- package/funcs/evalsContainsAll.js.map +1 -1
- package/funcs/evalsContainsAny.js +1 -1
- package/funcs/evalsContainsAny.js.map +1 -1
- package/funcs/evalsContainsEmail.js +1 -1
- package/funcs/evalsContainsEmail.js.map +1 -1
- package/funcs/evalsContainsNone.js +1 -1
- package/funcs/evalsContainsNone.js.map +1 -1
- package/funcs/evalsContainsUrl.js +1 -1
- package/funcs/evalsContainsUrl.js.map +1 -1
- package/funcs/evalsContainsValidLink.js +1 -1
- package/funcs/evalsContainsValidLink.js.map +1 -1
- package/funcs/evalsCreate.js +1 -1
- package/funcs/evalsCreate.js.map +1 -1
- package/funcs/evalsDelete.js +1 -1
- package/funcs/evalsDelete.js.map +1 -1
- package/funcs/evalsEndsWith.js +1 -1
- package/funcs/evalsEndsWith.js.map +1 -1
- package/funcs/evalsExactMatch.js +1 -1
- package/funcs/evalsExactMatch.js.map +1 -1
- package/funcs/evalsFactCheckingKnowledgeBase.js +1 -1
- package/funcs/evalsFactCheckingKnowledgeBase.js.map +1 -1
- package/funcs/evalsGrammar.js +1 -1
- package/funcs/evalsGrammar.js.map +1 -1
- package/funcs/evalsInvoke.js +1 -1
- package/funcs/evalsInvoke.js.map +1 -1
- package/funcs/evalsLengthBetween.js +1 -1
- package/funcs/evalsLengthBetween.js.map +1 -1
- package/funcs/evalsLengthGreaterThan.js +1 -1
- package/funcs/evalsLengthGreaterThan.js.map +1 -1
- package/funcs/evalsLengthLessThan.js +1 -1
- package/funcs/evalsLengthLessThan.js.map +1 -1
- package/funcs/evalsLocalization.js +1 -1
- package/funcs/evalsLocalization.js.map +1 -1
- package/funcs/evalsPii.js +1 -1
- package/funcs/evalsPii.js.map +1 -1
- package/funcs/evalsRagasCoherence.js +1 -1
- package/funcs/evalsRagasCoherence.js.map +1 -1
- package/funcs/evalsRagasConciseness.js +1 -1
- package/funcs/evalsRagasConciseness.js.map +1 -1
- package/funcs/evalsRagasContextEntitiesRecall.js +1 -1
- package/funcs/evalsRagasContextEntitiesRecall.js.map +1 -1
- package/funcs/evalsRagasContextPrecision.js +1 -1
- package/funcs/evalsRagasContextPrecision.js.map +1 -1
- package/funcs/evalsRagasContextRecall.js +1 -1
- package/funcs/evalsRagasContextRecall.js.map +1 -1
- package/funcs/evalsRagasCorrectness.js +1 -1
- package/funcs/evalsRagasCorrectness.js.map +1 -1
- package/funcs/evalsRagasFaithfulness.js +1 -1
- package/funcs/evalsRagasFaithfulness.js.map +1 -1
- package/funcs/evalsRagasHarmfulness.js +1 -1
- package/funcs/evalsRagasHarmfulness.js.map +1 -1
- package/funcs/evalsRagasMaliciousness.js +1 -1
- package/funcs/evalsRagasMaliciousness.js.map +1 -1
- package/funcs/evalsRagasNoiseSensitivity.js +1 -1
- package/funcs/evalsRagasNoiseSensitivity.js.map +1 -1
- package/funcs/evalsRagasResponseRelevancy.js +1 -1
- package/funcs/evalsRagasResponseRelevancy.js.map +1 -1
- package/funcs/evalsRagasSummarization.js +1 -1
- package/funcs/evalsRagasSummarization.js.map +1 -1
- package/funcs/evalsSentimentClassification.js +1 -1
- package/funcs/evalsSentimentClassification.js.map +1 -1
- package/funcs/evalsSummarization.js +1 -1
- package/funcs/evalsSummarization.js.map +1 -1
- package/funcs/evalsToneOfVoice.js +1 -1
- package/funcs/evalsToneOfVoice.js.map +1 -1
- package/funcs/evalsTranslation.js +1 -1
- package/funcs/evalsTranslation.js.map +1 -1
- package/funcs/evalsUpdate.js +1 -1
- package/funcs/evalsUpdate.js.map +1 -1
- package/funcs/evalsValidJson.js +1 -1
- package/funcs/evalsValidJson.js.map +1 -1
- package/funcs/feedbackCreate.js +1 -1
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesCreate.js +1 -1
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.js +1 -1
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.js +1 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.js +1 -1
- package/funcs/filesList.js.map +1 -1
- package/funcs/knowledgeCreate.js +1 -1
- package/funcs/knowledgeCreate.js.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/knowledgeCreateDatasource.js +1 -1
- package/funcs/knowledgeCreateDatasource.js.map +1 -1
- package/funcs/knowledgeDelete.js +1 -1
- package/funcs/knowledgeDelete.js.map +1 -1
- package/funcs/knowledgeDeleteChunk.js +1 -1
- package/funcs/knowledgeDeleteChunk.js.map +1 -1
- package/funcs/knowledgeDeleteDatasource.js +1 -1
- package/funcs/knowledgeDeleteDatasource.js.map +1 -1
- package/funcs/knowledgeList.js +1 -1
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/knowledgeListChunks.js +1 -1
- package/funcs/knowledgeListChunks.js.map +1 -1
- package/funcs/knowledgeListDatasources.js +1 -1
- package/funcs/knowledgeListDatasources.js.map +1 -1
- package/funcs/knowledgeRetrieve.js +1 -1
- package/funcs/knowledgeRetrieve.js.map +1 -1
- package/funcs/knowledgeRetrieveChunk.js +1 -1
- package/funcs/knowledgeRetrieveChunk.js.map +1 -1
- package/funcs/knowledgeRetrieveDatasource.js +1 -1
- package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
- package/funcs/knowledgeSearch.js +1 -1
- package/funcs/knowledgeSearch.js.map +1 -1
- package/funcs/knowledgeUpdate.js +1 -1
- package/funcs/knowledgeUpdate.js.map +1 -1
- package/funcs/knowledgeUpdateChunk.js +1 -1
- package/funcs/knowledgeUpdateChunk.js.map +1 -1
- package/funcs/knowledgeUpdateDatasource.js +1 -1
- package/funcs/knowledgeUpdateDatasource.js.map +1 -1
- package/funcs/memoryStoresCreate.js +1 -1
- package/funcs/memoryStoresCreate.js.map +1 -1
- package/funcs/memoryStoresCreateDocument.js +1 -1
- package/funcs/memoryStoresCreateDocument.js.map +1 -1
- package/funcs/memoryStoresCreateMemory.js +1 -1
- package/funcs/memoryStoresCreateMemory.js.map +1 -1
- package/funcs/memoryStoresDelete.js +1 -1
- package/funcs/memoryStoresDelete.js.map +1 -1
- package/funcs/memoryStoresDeleteDocument.js +1 -1
- package/funcs/memoryStoresDeleteDocument.js.map +1 -1
- package/funcs/memoryStoresDeleteMemory.js +1 -1
- package/funcs/memoryStoresDeleteMemory.js.map +1 -1
- package/funcs/memoryStoresList.js +1 -1
- package/funcs/memoryStoresList.js.map +1 -1
- package/funcs/memoryStoresListDocuments.js +1 -1
- package/funcs/memoryStoresListDocuments.js.map +1 -1
- package/funcs/memoryStoresListMemories.js +1 -1
- package/funcs/memoryStoresListMemories.js.map +1 -1
- package/funcs/memoryStoresRetrieve.js +1 -1
- package/funcs/memoryStoresRetrieve.js.map +1 -1
- package/funcs/memoryStoresRetrieveDocument.js +1 -1
- package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
- package/funcs/memoryStoresRetrieveMemory.js +1 -1
- package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
- package/funcs/memoryStoresUpdate.js +1 -1
- package/funcs/memoryStoresUpdate.js.map +1 -1
- package/funcs/memoryStoresUpdateDocument.js +1 -1
- package/funcs/memoryStoresUpdateDocument.js.map +1 -1
- package/funcs/memoryStoresUpdateMemory.js +1 -1
- package/funcs/memoryStoresUpdateMemory.js.map +1 -1
- package/funcs/modelsList.js +1 -1
- package/funcs/modelsList.js.map +1 -1
- package/funcs/promptsCreate.js +1 -1
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.js +1 -1
- package/funcs/promptsGetVersion.js.map +1 -1
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsListVersions.js +1 -1
- package/funcs/promptsListVersions.js.map +1 -1
- package/funcs/promptsRetrieve.js +1 -1
- package/funcs/promptsRetrieve.js.map +1 -1
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigsRetrieve.js +1 -1
- package/funcs/remoteconfigsRetrieve.js.map +1 -1
- package/funcs/toolsCreate.js +1 -1
- package/funcs/toolsCreate.js.map +1 -1
- package/funcs/toolsDelete.js +1 -1
- package/funcs/toolsDelete.js.map +1 -1
- package/funcs/toolsDuplicate.js +1 -1
- package/funcs/toolsDuplicate.js.map +1 -1
- package/funcs/toolsList.js +1 -1
- package/funcs/toolsList.js.map +1 -1
- package/funcs/toolsRetrieve.js +1 -1
- package/funcs/toolsRetrieve.js.map +1 -1
- package/funcs/toolsUpdate.js +1 -1
- package/funcs/toolsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.js +2 -2
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/README.md +98 -94
- package/packages/orq-rc/RUNTIMES.md +6 -6
- package/packages/orq-rc/docs/sdks/agents/README.md +269 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
- package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsListActions.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStream.ts +191 -0
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/chunkingParse.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsList.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsClear.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsAll.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsBertScore.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsBleuScore.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsBotDetection.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContains.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsAll.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsAny.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsNone.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsEndsWith.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsExactMatch.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsGrammar.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsLocalization.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsPii.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsSummarization.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsTranslation.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsValidJson.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/filesGet.ts +1 -1
- package/packages/orq-rc/src/funcs/filesList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +1 -1
- package/packages/orq-rc/src/funcs/modelsList.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +5 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/index.ts +2 -0
- package/packages/orq-rc/src/models/operations/invokeagent.ts +1561 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +443 -374
- package/packages/orq-rc/src/models/operations/streamagent.ts +1365 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +207 -165
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +1 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/agents.ts +36 -0
- package/src/funcs/agentsList.ts +1 -1
- package/src/funcs/agentsListActions.ts +1 -1
- package/src/funcs/agentsListTasks.ts +1 -1
- package/src/funcs/agentsRetrieve.ts +1 -1
- package/src/funcs/agentsRetrieveAction.ts +1 -1
- package/src/funcs/agentsRetrieveTask.ts +1 -1
- package/src/funcs/agentsRun.ts +1 -1
- package/src/funcs/agentsStreamRun.ts +1 -1
- package/src/funcs/budgetsCreate.ts +1 -1
- package/src/funcs/budgetsDelete.ts +1 -1
- package/src/funcs/budgetsGet.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -1
- package/src/funcs/budgetsUpdate.ts +1 -1
- package/src/funcs/chunkingParse.ts +1 -1
- package/src/funcs/contactsCreate.ts +1 -1
- package/src/funcs/contactsDelete.ts +1 -1
- package/src/funcs/contactsList.ts +1 -1
- package/src/funcs/contactsRetrieve.ts +1 -1
- package/src/funcs/contactsUpdate.ts +1 -1
- package/src/funcs/datasetsClear.ts +1 -1
- package/src/funcs/datasetsCreate.ts +1 -1
- package/src/funcs/datasetsCreateDatapoint.ts +1 -1
- package/src/funcs/datasetsDelete.ts +1 -1
- package/src/funcs/datasetsDeleteDatapoint.ts +1 -1
- package/src/funcs/datasetsList.ts +1 -1
- package/src/funcs/datasetsListDatapoints.ts +1 -1
- package/src/funcs/datasetsRetrieve.ts +1 -1
- package/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
- package/src/funcs/datasetsUpdate.ts +1 -1
- package/src/funcs/datasetsUpdateDatapoint.ts +1 -1
- package/src/funcs/deploymentsGetConfig.ts +1 -1
- package/src/funcs/deploymentsInvoke.ts +1 -1
- package/src/funcs/deploymentsList.ts +1 -1
- package/src/funcs/deploymentsMetricsCreate.ts +1 -1
- package/src/funcs/deploymentsStream.ts +1 -1
- package/src/funcs/evalsAgeAppropriate.ts +1 -1
- package/src/funcs/evalsAll.ts +1 -1
- package/src/funcs/evalsBertScore.ts +1 -1
- package/src/funcs/evalsBleuScore.ts +1 -1
- package/src/funcs/evalsBotDetection.ts +1 -1
- package/src/funcs/evalsContains.ts +1 -1
- package/src/funcs/evalsContainsAll.ts +1 -1
- package/src/funcs/evalsContainsAny.ts +1 -1
- package/src/funcs/evalsContainsEmail.ts +1 -1
- package/src/funcs/evalsContainsNone.ts +1 -1
- package/src/funcs/evalsContainsUrl.ts +1 -1
- package/src/funcs/evalsContainsValidLink.ts +1 -1
- package/src/funcs/evalsCreate.ts +1 -1
- package/src/funcs/evalsDelete.ts +1 -1
- package/src/funcs/evalsEndsWith.ts +1 -1
- package/src/funcs/evalsExactMatch.ts +1 -1
- package/src/funcs/evalsFactCheckingKnowledgeBase.ts +1 -1
- package/src/funcs/evalsGrammar.ts +1 -1
- package/src/funcs/evalsInvoke.ts +1 -1
- package/src/funcs/evalsLengthBetween.ts +1 -1
- package/src/funcs/evalsLengthGreaterThan.ts +1 -1
- package/src/funcs/evalsLengthLessThan.ts +1 -1
- package/src/funcs/evalsLocalization.ts +1 -1
- package/src/funcs/evalsPii.ts +1 -1
- package/src/funcs/evalsRagasCoherence.ts +1 -1
- package/src/funcs/evalsRagasConciseness.ts +1 -1
- package/src/funcs/evalsRagasContextEntitiesRecall.ts +1 -1
- package/src/funcs/evalsRagasContextPrecision.ts +1 -1
- package/src/funcs/evalsRagasContextRecall.ts +1 -1
- package/src/funcs/evalsRagasCorrectness.ts +1 -1
- package/src/funcs/evalsRagasFaithfulness.ts +1 -1
- package/src/funcs/evalsRagasHarmfulness.ts +1 -1
- package/src/funcs/evalsRagasMaliciousness.ts +1 -1
- package/src/funcs/evalsRagasNoiseSensitivity.ts +1 -1
- package/src/funcs/evalsRagasResponseRelevancy.ts +1 -1
- package/src/funcs/evalsRagasSummarization.ts +1 -1
- package/src/funcs/evalsSentimentClassification.ts +1 -1
- package/src/funcs/evalsSummarization.ts +1 -1
- package/src/funcs/evalsToneOfVoice.ts +1 -1
- package/src/funcs/evalsTranslation.ts +1 -1
- package/src/funcs/evalsUpdate.ts +1 -1
- package/src/funcs/evalsValidJson.ts +1 -1
- package/src/funcs/feedbackCreate.ts +1 -1
- package/src/funcs/filesCreate.ts +1 -1
- package/src/funcs/filesDelete.ts +1 -1
- package/src/funcs/filesGet.ts +1 -1
- package/src/funcs/filesList.ts +1 -1
- package/src/funcs/knowledgeCreate.ts +1 -1
- package/src/funcs/knowledgeCreateChunks.ts +1 -1
- package/src/funcs/knowledgeCreateDatasource.ts +1 -1
- package/src/funcs/knowledgeDelete.ts +1 -1
- package/src/funcs/knowledgeDeleteChunk.ts +1 -1
- package/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/src/funcs/knowledgeList.ts +1 -1
- package/src/funcs/knowledgeListChunks.ts +1 -1
- package/src/funcs/knowledgeListDatasources.ts +1 -1
- package/src/funcs/knowledgeRetrieve.ts +1 -1
- package/src/funcs/knowledgeRetrieveChunk.ts +1 -1
- package/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
- package/src/funcs/knowledgeSearch.ts +1 -1
- package/src/funcs/knowledgeUpdate.ts +1 -1
- package/src/funcs/knowledgeUpdateChunk.ts +1 -1
- package/src/funcs/knowledgeUpdateDatasource.ts +1 -1
- package/src/funcs/memoryStoresCreate.ts +1 -1
- package/src/funcs/memoryStoresCreateDocument.ts +1 -1
- package/src/funcs/memoryStoresCreateMemory.ts +1 -1
- package/src/funcs/memoryStoresDelete.ts +1 -1
- package/src/funcs/memoryStoresDeleteDocument.ts +1 -1
- package/src/funcs/memoryStoresDeleteMemory.ts +1 -1
- package/src/funcs/memoryStoresList.ts +1 -1
- package/src/funcs/memoryStoresListDocuments.ts +1 -1
- package/src/funcs/memoryStoresListMemories.ts +1 -1
- package/src/funcs/memoryStoresRetrieve.ts +1 -1
- package/src/funcs/memoryStoresRetrieveDocument.ts +1 -1
- package/src/funcs/memoryStoresRetrieveMemory.ts +1 -1
- package/src/funcs/memoryStoresUpdate.ts +1 -1
- package/src/funcs/memoryStoresUpdateDocument.ts +1 -1
- package/src/funcs/memoryStoresUpdateMemory.ts +1 -1
- package/src/funcs/modelsList.ts +1 -1
- package/src/funcs/promptsCreate.ts +1 -1
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/promptsGetVersion.ts +1 -1
- package/src/funcs/promptsList.ts +1 -1
- package/src/funcs/promptsListVersions.ts +1 -1
- package/src/funcs/promptsRetrieve.ts +1 -1
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/funcs/remoteconfigsRetrieve.ts +1 -1
- package/src/funcs/toolsCreate.ts +1 -1
- package/src/funcs/toolsDelete.ts +1 -1
- package/src/funcs/toolsDuplicate.ts +1 -1
- package/src/funcs/toolsList.ts +1 -1
- package/src/funcs/toolsRetrieve.ts +1 -1
- package/src/funcs/toolsUpdate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +2 -2
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
|
@@ -12,56 +12,62 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Tool message
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const RunAgentRoleToolMessage = {
|
|
16
16
|
Tool: "tool",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* Tool message
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type RunAgentRoleToolMessage = ClosedEnum<
|
|
22
|
+
typeof RunAgentRoleToolMessage
|
|
23
|
+
>;
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
26
|
* User message
|
|
25
27
|
*/
|
|
26
|
-
export const
|
|
28
|
+
export const RunAgentRoleUserMessage = {
|
|
27
29
|
User: "user",
|
|
28
30
|
} as const;
|
|
29
31
|
/**
|
|
30
32
|
* User message
|
|
31
33
|
*/
|
|
32
|
-
export type
|
|
34
|
+
export type RunAgentRoleUserMessage = ClosedEnum<
|
|
35
|
+
typeof RunAgentRoleUserMessage
|
|
36
|
+
>;
|
|
33
37
|
|
|
34
38
|
/**
|
|
35
39
|
* Message role (user or tool for continuing executions)
|
|
36
40
|
*/
|
|
37
|
-
export type RunAgentRole =
|
|
41
|
+
export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
38
42
|
|
|
39
|
-
export const
|
|
43
|
+
export const RunAgentPublicMessagePartAgentsRequestKind = {
|
|
40
44
|
ToolResult: "tool_result",
|
|
41
45
|
} as const;
|
|
42
|
-
export type
|
|
43
|
-
typeof
|
|
46
|
+
export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
47
|
+
typeof RunAgentPublicMessagePartAgentsRequestKind
|
|
44
48
|
>;
|
|
45
49
|
|
|
46
50
|
/**
|
|
47
51
|
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
48
52
|
*/
|
|
49
|
-
export type
|
|
50
|
-
kind:
|
|
53
|
+
export type PublicMessagePartToolResultPart = {
|
|
54
|
+
kind: RunAgentPublicMessagePartAgentsRequestKind;
|
|
51
55
|
toolCallId: string;
|
|
52
56
|
result?: any | undefined;
|
|
53
57
|
metadata?: { [k: string]: any } | undefined;
|
|
54
58
|
};
|
|
55
59
|
|
|
56
|
-
export const
|
|
60
|
+
export const RunAgentPublicMessagePartAgentsKind = {
|
|
57
61
|
File: "file",
|
|
58
62
|
} as const;
|
|
59
|
-
export type
|
|
63
|
+
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
64
|
+
typeof RunAgentPublicMessagePartAgentsKind
|
|
65
|
+
>;
|
|
60
66
|
|
|
61
67
|
/**
|
|
62
68
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
63
69
|
*/
|
|
64
|
-
export type
|
|
70
|
+
export type FileFileInURIFormat = {
|
|
65
71
|
/**
|
|
66
72
|
* URL for the File content
|
|
67
73
|
*/
|
|
@@ -79,7 +85,7 @@ export type FileInURIFormat = {
|
|
|
79
85
|
/**
|
|
80
86
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
81
87
|
*/
|
|
82
|
-
export type
|
|
88
|
+
export type FileBinaryFormat = {
|
|
83
89
|
/**
|
|
84
90
|
* base64 encoded content of the file
|
|
85
91
|
*/
|
|
@@ -94,39 +100,46 @@ export type BinaryFormat = {
|
|
|
94
100
|
name?: string | undefined;
|
|
95
101
|
};
|
|
96
102
|
|
|
97
|
-
export type
|
|
103
|
+
export type RunAgentPublicMessagePartFile =
|
|
104
|
+
| FileBinaryFormat
|
|
105
|
+
| FileFileInURIFormat;
|
|
98
106
|
|
|
99
107
|
/**
|
|
100
108
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
101
109
|
*/
|
|
102
|
-
export type
|
|
103
|
-
kind:
|
|
104
|
-
file:
|
|
110
|
+
export type PublicMessagePartFilePart = {
|
|
111
|
+
kind: RunAgentPublicMessagePartAgentsKind;
|
|
112
|
+
file: FileBinaryFormat | FileFileInURIFormat;
|
|
105
113
|
metadata?: { [k: string]: any } | undefined;
|
|
106
114
|
};
|
|
107
115
|
|
|
108
|
-
export const
|
|
116
|
+
export const RunAgentPublicMessagePartKind = {
|
|
109
117
|
Text: "text",
|
|
110
118
|
} as const;
|
|
111
|
-
export type
|
|
119
|
+
export type RunAgentPublicMessagePartKind = ClosedEnum<
|
|
120
|
+
typeof RunAgentPublicMessagePartKind
|
|
121
|
+
>;
|
|
112
122
|
|
|
113
123
|
/**
|
|
114
124
|
* Text content part. Use this to send text messages to the agent.
|
|
115
125
|
*/
|
|
116
|
-
export type
|
|
117
|
-
kind:
|
|
126
|
+
export type PublicMessagePartTextPart = {
|
|
127
|
+
kind: RunAgentPublicMessagePartKind;
|
|
118
128
|
text: string;
|
|
119
129
|
};
|
|
120
130
|
|
|
121
131
|
/**
|
|
122
132
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
123
133
|
*/
|
|
124
|
-
export type
|
|
134
|
+
export type RunAgentPublicMessagePart =
|
|
135
|
+
| PublicMessagePartTextPart
|
|
136
|
+
| PublicMessagePartFilePart
|
|
137
|
+
| PublicMessagePartToolResultPart;
|
|
125
138
|
|
|
126
139
|
/**
|
|
127
140
|
* The A2A format message containing the task for the agent to perform.
|
|
128
141
|
*/
|
|
129
|
-
export type
|
|
142
|
+
export type RunAgentMessage = {
|
|
130
143
|
/**
|
|
131
144
|
* Optional A2A message ID in ULID format
|
|
132
145
|
*/
|
|
@@ -134,17 +147,21 @@ export type Message = {
|
|
|
134
147
|
/**
|
|
135
148
|
* Message role (user or tool for continuing executions)
|
|
136
149
|
*/
|
|
137
|
-
role:
|
|
150
|
+
role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
138
151
|
/**
|
|
139
152
|
* A2A message parts (text, file, or tool_result only)
|
|
140
153
|
*/
|
|
141
|
-
parts: Array<
|
|
154
|
+
parts: Array<
|
|
155
|
+
| PublicMessagePartTextPart
|
|
156
|
+
| PublicMessagePartFilePart
|
|
157
|
+
| PublicMessagePartToolResultPart
|
|
158
|
+
>;
|
|
142
159
|
};
|
|
143
160
|
|
|
144
161
|
/**
|
|
145
162
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
146
163
|
*/
|
|
147
|
-
export type
|
|
164
|
+
export type RunAgentContact = {
|
|
148
165
|
/**
|
|
149
166
|
* Unique identifier for the contact
|
|
150
167
|
*/
|
|
@@ -188,7 +205,7 @@ export type RunAgentThread = {
|
|
|
188
205
|
/**
|
|
189
206
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
190
207
|
*/
|
|
191
|
-
export type
|
|
208
|
+
export type RunAgentMemory = {
|
|
192
209
|
/**
|
|
193
210
|
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
194
211
|
*/
|
|
@@ -714,7 +731,7 @@ export type RunAgentRequestBody = {
|
|
|
714
731
|
/**
|
|
715
732
|
* The A2A format message containing the task for the agent to perform.
|
|
716
733
|
*/
|
|
717
|
-
message:
|
|
734
|
+
message: RunAgentMessage;
|
|
718
735
|
/**
|
|
719
736
|
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
720
737
|
*/
|
|
@@ -722,7 +739,7 @@ export type RunAgentRequestBody = {
|
|
|
722
739
|
/**
|
|
723
740
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
724
741
|
*/
|
|
725
|
-
contact?:
|
|
742
|
+
contact?: RunAgentContact | undefined;
|
|
726
743
|
/**
|
|
727
744
|
* Thread information to group related requests
|
|
728
745
|
*/
|
|
@@ -730,7 +747,7 @@ export type RunAgentRequestBody = {
|
|
|
730
747
|
/**
|
|
731
748
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
732
749
|
*/
|
|
733
|
-
memory?:
|
|
750
|
+
memory?: RunAgentMemory | undefined;
|
|
734
751
|
/**
|
|
735
752
|
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
736
753
|
*/
|
|
@@ -811,7 +828,7 @@ export type RunAgentAgentsRole = ClosedEnum<typeof RunAgentAgentsRole>;
|
|
|
811
828
|
/**
|
|
812
829
|
* Optional status message
|
|
813
830
|
*/
|
|
814
|
-
export type
|
|
831
|
+
export type RunAgentAgentsMessage = {
|
|
815
832
|
kind: RunAgentAgentsKind;
|
|
816
833
|
messageId: string;
|
|
817
834
|
/**
|
|
@@ -836,7 +853,7 @@ export type RunAgentStatus = {
|
|
|
836
853
|
/**
|
|
837
854
|
* Optional status message
|
|
838
855
|
*/
|
|
839
|
-
message?:
|
|
856
|
+
message?: RunAgentAgentsMessage | undefined;
|
|
840
857
|
};
|
|
841
858
|
|
|
842
859
|
/**
|
|
@@ -866,45 +883,45 @@ export type RunAgentResponseBody = {
|
|
|
866
883
|
};
|
|
867
884
|
|
|
868
885
|
/** @internal */
|
|
869
|
-
export const
|
|
870
|
-
typeof
|
|
871
|
-
> = z.nativeEnum(
|
|
886
|
+
export const RunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
887
|
+
typeof RunAgentRoleToolMessage
|
|
888
|
+
> = z.nativeEnum(RunAgentRoleToolMessage);
|
|
872
889
|
|
|
873
890
|
/** @internal */
|
|
874
|
-
export const
|
|
875
|
-
typeof
|
|
876
|
-
> =
|
|
891
|
+
export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
892
|
+
typeof RunAgentRoleToolMessage
|
|
893
|
+
> = RunAgentRoleToolMessage$inboundSchema;
|
|
877
894
|
|
|
878
895
|
/**
|
|
879
896
|
* @internal
|
|
880
897
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
881
898
|
*/
|
|
882
|
-
export namespace
|
|
883
|
-
/** @deprecated use `
|
|
884
|
-
export const inboundSchema =
|
|
885
|
-
/** @deprecated use `
|
|
886
|
-
export const outboundSchema =
|
|
899
|
+
export namespace RunAgentRoleToolMessage$ {
|
|
900
|
+
/** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
|
|
901
|
+
export const inboundSchema = RunAgentRoleToolMessage$inboundSchema;
|
|
902
|
+
/** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
|
|
903
|
+
export const outboundSchema = RunAgentRoleToolMessage$outboundSchema;
|
|
887
904
|
}
|
|
888
905
|
|
|
889
906
|
/** @internal */
|
|
890
|
-
export const
|
|
891
|
-
typeof
|
|
892
|
-
> = z.nativeEnum(
|
|
907
|
+
export const RunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
908
|
+
typeof RunAgentRoleUserMessage
|
|
909
|
+
> = z.nativeEnum(RunAgentRoleUserMessage);
|
|
893
910
|
|
|
894
911
|
/** @internal */
|
|
895
|
-
export const
|
|
896
|
-
typeof
|
|
897
|
-
> =
|
|
912
|
+
export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
913
|
+
typeof RunAgentRoleUserMessage
|
|
914
|
+
> = RunAgentRoleUserMessage$inboundSchema;
|
|
898
915
|
|
|
899
916
|
/**
|
|
900
917
|
* @internal
|
|
901
918
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
902
919
|
*/
|
|
903
|
-
export namespace
|
|
904
|
-
/** @deprecated use `
|
|
905
|
-
export const inboundSchema =
|
|
906
|
-
/** @deprecated use `
|
|
907
|
-
export const outboundSchema =
|
|
920
|
+
export namespace RunAgentRoleUserMessage$ {
|
|
921
|
+
/** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
|
|
922
|
+
export const inboundSchema = RunAgentRoleUserMessage$inboundSchema;
|
|
923
|
+
/** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
|
|
924
|
+
export const outboundSchema = RunAgentRoleUserMessage$outboundSchema;
|
|
908
925
|
}
|
|
909
926
|
|
|
910
927
|
/** @internal */
|
|
@@ -912,7 +929,10 @@ export const RunAgentRole$inboundSchema: z.ZodType<
|
|
|
912
929
|
RunAgentRole,
|
|
913
930
|
z.ZodTypeDef,
|
|
914
931
|
unknown
|
|
915
|
-
> = z.union([
|
|
932
|
+
> = z.union([
|
|
933
|
+
RunAgentRoleUserMessage$inboundSchema,
|
|
934
|
+
RunAgentRoleToolMessage$inboundSchema,
|
|
935
|
+
]);
|
|
916
936
|
|
|
917
937
|
/** @internal */
|
|
918
938
|
export type RunAgentRole$Outbound = string | string;
|
|
@@ -922,7 +942,10 @@ export const RunAgentRole$outboundSchema: z.ZodType<
|
|
|
922
942
|
RunAgentRole$Outbound,
|
|
923
943
|
z.ZodTypeDef,
|
|
924
944
|
RunAgentRole
|
|
925
|
-
> = z.union([
|
|
945
|
+
> = z.union([
|
|
946
|
+
RunAgentRoleUserMessage$outboundSchema,
|
|
947
|
+
RunAgentRoleToolMessage$outboundSchema,
|
|
948
|
+
]);
|
|
926
949
|
|
|
927
950
|
/**
|
|
928
951
|
* @internal
|
|
@@ -952,33 +975,35 @@ export function runAgentRoleFromJSON(
|
|
|
952
975
|
}
|
|
953
976
|
|
|
954
977
|
/** @internal */
|
|
955
|
-
export const
|
|
956
|
-
typeof
|
|
957
|
-
|
|
978
|
+
export const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema:
|
|
979
|
+
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> = z
|
|
980
|
+
.nativeEnum(RunAgentPublicMessagePartAgentsRequestKind);
|
|
958
981
|
|
|
959
982
|
/** @internal */
|
|
960
|
-
export const
|
|
961
|
-
typeof
|
|
962
|
-
|
|
983
|
+
export const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
|
|
984
|
+
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> =
|
|
985
|
+
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
963
986
|
|
|
964
987
|
/**
|
|
965
988
|
* @internal
|
|
966
989
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
967
990
|
*/
|
|
968
|
-
export namespace
|
|
969
|
-
/** @deprecated use `
|
|
970
|
-
export const inboundSchema =
|
|
971
|
-
|
|
972
|
-
|
|
991
|
+
export namespace RunAgentPublicMessagePartAgentsRequestKind$ {
|
|
992
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
|
|
993
|
+
export const inboundSchema =
|
|
994
|
+
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
995
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
|
|
996
|
+
export const outboundSchema =
|
|
997
|
+
RunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
|
|
973
998
|
}
|
|
974
999
|
|
|
975
1000
|
/** @internal */
|
|
976
|
-
export const
|
|
977
|
-
|
|
1001
|
+
export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
1002
|
+
PublicMessagePartToolResultPart,
|
|
978
1003
|
z.ZodTypeDef,
|
|
979
1004
|
unknown
|
|
980
1005
|
> = z.object({
|
|
981
|
-
kind:
|
|
1006
|
+
kind: RunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
982
1007
|
tool_call_id: z.string(),
|
|
983
1008
|
result: z.any().optional(),
|
|
984
1009
|
metadata: z.record(z.any()).optional(),
|
|
@@ -989,7 +1014,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
|
|
|
989
1014
|
});
|
|
990
1015
|
|
|
991
1016
|
/** @internal */
|
|
992
|
-
export type
|
|
1017
|
+
export type PublicMessagePartToolResultPart$Outbound = {
|
|
993
1018
|
kind: string;
|
|
994
1019
|
tool_call_id: string;
|
|
995
1020
|
result?: any | undefined;
|
|
@@ -997,12 +1022,12 @@ export type ToolResultPart$Outbound = {
|
|
|
997
1022
|
};
|
|
998
1023
|
|
|
999
1024
|
/** @internal */
|
|
1000
|
-
export const
|
|
1001
|
-
|
|
1025
|
+
export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
1026
|
+
PublicMessagePartToolResultPart$Outbound,
|
|
1002
1027
|
z.ZodTypeDef,
|
|
1003
|
-
|
|
1028
|
+
PublicMessagePartToolResultPart
|
|
1004
1029
|
> = z.object({
|
|
1005
|
-
kind:
|
|
1030
|
+
kind: RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
1006
1031
|
toolCallId: z.string(),
|
|
1007
1032
|
result: z.any().optional(),
|
|
1008
1033
|
metadata: z.record(z.any()).optional(),
|
|
@@ -1016,53 +1041,61 @@ export const ToolResultPart$outboundSchema: z.ZodType<
|
|
|
1016
1041
|
* @internal
|
|
1017
1042
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1018
1043
|
*/
|
|
1019
|
-
export namespace
|
|
1020
|
-
/** @deprecated use `
|
|
1021
|
-
export const inboundSchema =
|
|
1022
|
-
/** @deprecated use `
|
|
1023
|
-
export const outboundSchema =
|
|
1024
|
-
/** @deprecated use `
|
|
1025
|
-
export type Outbound =
|
|
1044
|
+
export namespace PublicMessagePartToolResultPart$ {
|
|
1045
|
+
/** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
|
|
1046
|
+
export const inboundSchema = PublicMessagePartToolResultPart$inboundSchema;
|
|
1047
|
+
/** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
|
|
1048
|
+
export const outboundSchema = PublicMessagePartToolResultPart$outboundSchema;
|
|
1049
|
+
/** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
|
|
1050
|
+
export type Outbound = PublicMessagePartToolResultPart$Outbound;
|
|
1026
1051
|
}
|
|
1027
1052
|
|
|
1028
|
-
export function
|
|
1029
|
-
|
|
1053
|
+
export function publicMessagePartToolResultPartToJSON(
|
|
1054
|
+
publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
|
|
1055
|
+
): string {
|
|
1056
|
+
return JSON.stringify(
|
|
1057
|
+
PublicMessagePartToolResultPart$outboundSchema.parse(
|
|
1058
|
+
publicMessagePartToolResultPart,
|
|
1059
|
+
),
|
|
1060
|
+
);
|
|
1030
1061
|
}
|
|
1031
1062
|
|
|
1032
|
-
export function
|
|
1063
|
+
export function publicMessagePartToolResultPartFromJSON(
|
|
1033
1064
|
jsonString: string,
|
|
1034
|
-
): SafeParseResult<
|
|
1065
|
+
): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
|
|
1035
1066
|
return safeParse(
|
|
1036
1067
|
jsonString,
|
|
1037
|
-
(x) =>
|
|
1038
|
-
`Failed to parse '
|
|
1068
|
+
(x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
1069
|
+
`Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
|
|
1039
1070
|
);
|
|
1040
1071
|
}
|
|
1041
1072
|
|
|
1042
1073
|
/** @internal */
|
|
1043
|
-
export const
|
|
1044
|
-
typeof
|
|
1045
|
-
> = z.nativeEnum(
|
|
1074
|
+
export const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
1075
|
+
typeof RunAgentPublicMessagePartAgentsKind
|
|
1076
|
+
> = z.nativeEnum(RunAgentPublicMessagePartAgentsKind);
|
|
1046
1077
|
|
|
1047
1078
|
/** @internal */
|
|
1048
|
-
export const
|
|
1049
|
-
typeof
|
|
1050
|
-
|
|
1079
|
+
export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
1080
|
+
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind> =
|
|
1081
|
+
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
1051
1082
|
|
|
1052
1083
|
/**
|
|
1053
1084
|
* @internal
|
|
1054
1085
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1055
1086
|
*/
|
|
1056
|
-
export namespace
|
|
1057
|
-
/** @deprecated use `
|
|
1058
|
-
export const inboundSchema =
|
|
1059
|
-
|
|
1060
|
-
|
|
1087
|
+
export namespace RunAgentPublicMessagePartAgentsKind$ {
|
|
1088
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
|
|
1089
|
+
export const inboundSchema =
|
|
1090
|
+
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
1091
|
+
/** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
|
|
1092
|
+
export const outboundSchema =
|
|
1093
|
+
RunAgentPublicMessagePartAgentsKind$outboundSchema;
|
|
1061
1094
|
}
|
|
1062
1095
|
|
|
1063
1096
|
/** @internal */
|
|
1064
|
-
export const
|
|
1065
|
-
|
|
1097
|
+
export const FileFileInURIFormat$inboundSchema: z.ZodType<
|
|
1098
|
+
FileFileInURIFormat,
|
|
1066
1099
|
z.ZodTypeDef,
|
|
1067
1100
|
unknown
|
|
1068
1101
|
> = z.object({
|
|
@@ -1072,17 +1105,17 @@ export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
|
1072
1105
|
});
|
|
1073
1106
|
|
|
1074
1107
|
/** @internal */
|
|
1075
|
-
export type
|
|
1108
|
+
export type FileFileInURIFormat$Outbound = {
|
|
1076
1109
|
uri: string;
|
|
1077
1110
|
mimeType?: string | undefined;
|
|
1078
1111
|
name?: string | undefined;
|
|
1079
1112
|
};
|
|
1080
1113
|
|
|
1081
1114
|
/** @internal */
|
|
1082
|
-
export const
|
|
1083
|
-
|
|
1115
|
+
export const FileFileInURIFormat$outboundSchema: z.ZodType<
|
|
1116
|
+
FileFileInURIFormat$Outbound,
|
|
1084
1117
|
z.ZodTypeDef,
|
|
1085
|
-
|
|
1118
|
+
FileFileInURIFormat
|
|
1086
1119
|
> = z.object({
|
|
1087
1120
|
uri: z.string(),
|
|
1088
1121
|
mimeType: z.string().optional(),
|
|
@@ -1093,34 +1126,36 @@ export const FileInURIFormat$outboundSchema: z.ZodType<
|
|
|
1093
1126
|
* @internal
|
|
1094
1127
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1095
1128
|
*/
|
|
1096
|
-
export namespace
|
|
1097
|
-
/** @deprecated use `
|
|
1098
|
-
export const inboundSchema =
|
|
1099
|
-
/** @deprecated use `
|
|
1100
|
-
export const outboundSchema =
|
|
1101
|
-
/** @deprecated use `
|
|
1102
|
-
export type Outbound =
|
|
1129
|
+
export namespace FileFileInURIFormat$ {
|
|
1130
|
+
/** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
|
|
1131
|
+
export const inboundSchema = FileFileInURIFormat$inboundSchema;
|
|
1132
|
+
/** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
|
|
1133
|
+
export const outboundSchema = FileFileInURIFormat$outboundSchema;
|
|
1134
|
+
/** @deprecated use `FileFileInURIFormat$Outbound` instead. */
|
|
1135
|
+
export type Outbound = FileFileInURIFormat$Outbound;
|
|
1103
1136
|
}
|
|
1104
1137
|
|
|
1105
|
-
export function
|
|
1106
|
-
|
|
1138
|
+
export function fileFileInURIFormatToJSON(
|
|
1139
|
+
fileFileInURIFormat: FileFileInURIFormat,
|
|
1107
1140
|
): string {
|
|
1108
|
-
return JSON.stringify(
|
|
1141
|
+
return JSON.stringify(
|
|
1142
|
+
FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
|
|
1143
|
+
);
|
|
1109
1144
|
}
|
|
1110
1145
|
|
|
1111
|
-
export function
|
|
1146
|
+
export function fileFileInURIFormatFromJSON(
|
|
1112
1147
|
jsonString: string,
|
|
1113
|
-
): SafeParseResult<
|
|
1148
|
+
): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
|
|
1114
1149
|
return safeParse(
|
|
1115
1150
|
jsonString,
|
|
1116
|
-
(x) =>
|
|
1117
|
-
`Failed to parse '
|
|
1151
|
+
(x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1152
|
+
`Failed to parse 'FileFileInURIFormat' from JSON`,
|
|
1118
1153
|
);
|
|
1119
1154
|
}
|
|
1120
1155
|
|
|
1121
1156
|
/** @internal */
|
|
1122
|
-
export const
|
|
1123
|
-
|
|
1157
|
+
export const FileBinaryFormat$inboundSchema: z.ZodType<
|
|
1158
|
+
FileBinaryFormat,
|
|
1124
1159
|
z.ZodTypeDef,
|
|
1125
1160
|
unknown
|
|
1126
1161
|
> = z.object({
|
|
@@ -1130,17 +1165,17 @@ export const BinaryFormat$inboundSchema: z.ZodType<
|
|
|
1130
1165
|
});
|
|
1131
1166
|
|
|
1132
1167
|
/** @internal */
|
|
1133
|
-
export type
|
|
1168
|
+
export type FileBinaryFormat$Outbound = {
|
|
1134
1169
|
bytes: string;
|
|
1135
1170
|
mimeType?: string | undefined;
|
|
1136
1171
|
name?: string | undefined;
|
|
1137
1172
|
};
|
|
1138
1173
|
|
|
1139
1174
|
/** @internal */
|
|
1140
|
-
export const
|
|
1141
|
-
|
|
1175
|
+
export const FileBinaryFormat$outboundSchema: z.ZodType<
|
|
1176
|
+
FileBinaryFormat$Outbound,
|
|
1142
1177
|
z.ZodTypeDef,
|
|
1143
|
-
|
|
1178
|
+
FileBinaryFormat
|
|
1144
1179
|
> = z.object({
|
|
1145
1180
|
bytes: z.string(),
|
|
1146
1181
|
mimeType: z.string().optional(),
|
|
@@ -1151,116 +1186,122 @@ export const BinaryFormat$outboundSchema: z.ZodType<
|
|
|
1151
1186
|
* @internal
|
|
1152
1187
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1153
1188
|
*/
|
|
1154
|
-
export namespace
|
|
1155
|
-
/** @deprecated use `
|
|
1156
|
-
export const inboundSchema =
|
|
1157
|
-
/** @deprecated use `
|
|
1158
|
-
export const outboundSchema =
|
|
1159
|
-
/** @deprecated use `
|
|
1160
|
-
export type Outbound =
|
|
1189
|
+
export namespace FileBinaryFormat$ {
|
|
1190
|
+
/** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
|
|
1191
|
+
export const inboundSchema = FileBinaryFormat$inboundSchema;
|
|
1192
|
+
/** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
|
|
1193
|
+
export const outboundSchema = FileBinaryFormat$outboundSchema;
|
|
1194
|
+
/** @deprecated use `FileBinaryFormat$Outbound` instead. */
|
|
1195
|
+
export type Outbound = FileBinaryFormat$Outbound;
|
|
1161
1196
|
}
|
|
1162
1197
|
|
|
1163
|
-
export function
|
|
1164
|
-
|
|
1198
|
+
export function fileBinaryFormatToJSON(
|
|
1199
|
+
fileBinaryFormat: FileBinaryFormat,
|
|
1200
|
+
): string {
|
|
1201
|
+
return JSON.stringify(
|
|
1202
|
+
FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
|
|
1203
|
+
);
|
|
1165
1204
|
}
|
|
1166
1205
|
|
|
1167
|
-
export function
|
|
1206
|
+
export function fileBinaryFormatFromJSON(
|
|
1168
1207
|
jsonString: string,
|
|
1169
|
-
): SafeParseResult<
|
|
1208
|
+
): SafeParseResult<FileBinaryFormat, SDKValidationError> {
|
|
1170
1209
|
return safeParse(
|
|
1171
1210
|
jsonString,
|
|
1172
|
-
(x) =>
|
|
1173
|
-
`Failed to parse '
|
|
1211
|
+
(x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1212
|
+
`Failed to parse 'FileBinaryFormat' from JSON`,
|
|
1174
1213
|
);
|
|
1175
1214
|
}
|
|
1176
1215
|
|
|
1177
1216
|
/** @internal */
|
|
1178
|
-
export const
|
|
1179
|
-
|
|
1217
|
+
export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
1218
|
+
RunAgentPublicMessagePartFile,
|
|
1180
1219
|
z.ZodTypeDef,
|
|
1181
1220
|
unknown
|
|
1182
1221
|
> = z.union([
|
|
1183
|
-
z.lazy(() =>
|
|
1184
|
-
z.lazy(() =>
|
|
1222
|
+
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
1223
|
+
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
1185
1224
|
]);
|
|
1186
1225
|
|
|
1187
1226
|
/** @internal */
|
|
1188
|
-
export type
|
|
1189
|
-
|
|
|
1190
|
-
|
|
|
1227
|
+
export type RunAgentPublicMessagePartFile$Outbound =
|
|
1228
|
+
| FileBinaryFormat$Outbound
|
|
1229
|
+
| FileFileInURIFormat$Outbound;
|
|
1191
1230
|
|
|
1192
1231
|
/** @internal */
|
|
1193
|
-
export const
|
|
1194
|
-
|
|
1232
|
+
export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
1233
|
+
RunAgentPublicMessagePartFile$Outbound,
|
|
1195
1234
|
z.ZodTypeDef,
|
|
1196
|
-
|
|
1235
|
+
RunAgentPublicMessagePartFile
|
|
1197
1236
|
> = z.union([
|
|
1198
|
-
z.lazy(() =>
|
|
1199
|
-
z.lazy(() =>
|
|
1237
|
+
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
1238
|
+
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
1200
1239
|
]);
|
|
1201
1240
|
|
|
1202
1241
|
/**
|
|
1203
1242
|
* @internal
|
|
1204
1243
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1205
1244
|
*/
|
|
1206
|
-
export namespace
|
|
1207
|
-
/** @deprecated use `
|
|
1208
|
-
export const inboundSchema =
|
|
1209
|
-
/** @deprecated use `
|
|
1210
|
-
export const outboundSchema =
|
|
1211
|
-
/** @deprecated use `
|
|
1212
|
-
export type Outbound =
|
|
1245
|
+
export namespace RunAgentPublicMessagePartFile$ {
|
|
1246
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
|
|
1247
|
+
export const inboundSchema = RunAgentPublicMessagePartFile$inboundSchema;
|
|
1248
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
|
|
1249
|
+
export const outboundSchema = RunAgentPublicMessagePartFile$outboundSchema;
|
|
1250
|
+
/** @deprecated use `RunAgentPublicMessagePartFile$Outbound` instead. */
|
|
1251
|
+
export type Outbound = RunAgentPublicMessagePartFile$Outbound;
|
|
1213
1252
|
}
|
|
1214
1253
|
|
|
1215
|
-
export function
|
|
1216
|
-
|
|
1254
|
+
export function runAgentPublicMessagePartFileToJSON(
|
|
1255
|
+
runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile,
|
|
1217
1256
|
): string {
|
|
1218
1257
|
return JSON.stringify(
|
|
1219
|
-
|
|
1258
|
+
RunAgentPublicMessagePartFile$outboundSchema.parse(
|
|
1259
|
+
runAgentPublicMessagePartFile,
|
|
1260
|
+
),
|
|
1220
1261
|
);
|
|
1221
1262
|
}
|
|
1222
1263
|
|
|
1223
|
-
export function
|
|
1264
|
+
export function runAgentPublicMessagePartFileFromJSON(
|
|
1224
1265
|
jsonString: string,
|
|
1225
|
-
): SafeParseResult<
|
|
1266
|
+
): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError> {
|
|
1226
1267
|
return safeParse(
|
|
1227
1268
|
jsonString,
|
|
1228
|
-
(x) =>
|
|
1229
|
-
`Failed to parse '
|
|
1269
|
+
(x) => RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
1270
|
+
`Failed to parse 'RunAgentPublicMessagePartFile' from JSON`,
|
|
1230
1271
|
);
|
|
1231
1272
|
}
|
|
1232
1273
|
|
|
1233
1274
|
/** @internal */
|
|
1234
|
-
export const
|
|
1235
|
-
|
|
1275
|
+
export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
1276
|
+
PublicMessagePartFilePart,
|
|
1236
1277
|
z.ZodTypeDef,
|
|
1237
1278
|
unknown
|
|
1238
1279
|
> = z.object({
|
|
1239
|
-
kind:
|
|
1280
|
+
kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
1240
1281
|
file: z.union([
|
|
1241
|
-
z.lazy(() =>
|
|
1242
|
-
z.lazy(() =>
|
|
1282
|
+
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
1283
|
+
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
1243
1284
|
]),
|
|
1244
1285
|
metadata: z.record(z.any()).optional(),
|
|
1245
1286
|
});
|
|
1246
1287
|
|
|
1247
1288
|
/** @internal */
|
|
1248
|
-
export type
|
|
1289
|
+
export type PublicMessagePartFilePart$Outbound = {
|
|
1249
1290
|
kind: string;
|
|
1250
|
-
file:
|
|
1291
|
+
file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
|
|
1251
1292
|
metadata?: { [k: string]: any } | undefined;
|
|
1252
1293
|
};
|
|
1253
1294
|
|
|
1254
1295
|
/** @internal */
|
|
1255
|
-
export const
|
|
1256
|
-
|
|
1296
|
+
export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
1297
|
+
PublicMessagePartFilePart$Outbound,
|
|
1257
1298
|
z.ZodTypeDef,
|
|
1258
|
-
|
|
1299
|
+
PublicMessagePartFilePart
|
|
1259
1300
|
> = z.object({
|
|
1260
|
-
kind:
|
|
1301
|
+
kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
1261
1302
|
file: z.union([
|
|
1262
|
-
z.lazy(() =>
|
|
1263
|
-
z.lazy(() =>
|
|
1303
|
+
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
1304
|
+
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
1264
1305
|
]),
|
|
1265
1306
|
metadata: z.record(z.any()).optional(),
|
|
1266
1307
|
});
|
|
@@ -1269,72 +1310,77 @@ export const FilePart$outboundSchema: z.ZodType<
|
|
|
1269
1310
|
* @internal
|
|
1270
1311
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1271
1312
|
*/
|
|
1272
|
-
export namespace
|
|
1273
|
-
/** @deprecated use `
|
|
1274
|
-
export const inboundSchema =
|
|
1275
|
-
/** @deprecated use `
|
|
1276
|
-
export const outboundSchema =
|
|
1277
|
-
/** @deprecated use `
|
|
1278
|
-
export type Outbound =
|
|
1313
|
+
export namespace PublicMessagePartFilePart$ {
|
|
1314
|
+
/** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
|
|
1315
|
+
export const inboundSchema = PublicMessagePartFilePart$inboundSchema;
|
|
1316
|
+
/** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
|
|
1317
|
+
export const outboundSchema = PublicMessagePartFilePart$outboundSchema;
|
|
1318
|
+
/** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
|
|
1319
|
+
export type Outbound = PublicMessagePartFilePart$Outbound;
|
|
1279
1320
|
}
|
|
1280
1321
|
|
|
1281
|
-
export function
|
|
1282
|
-
|
|
1322
|
+
export function publicMessagePartFilePartToJSON(
|
|
1323
|
+
publicMessagePartFilePart: PublicMessagePartFilePart,
|
|
1324
|
+
): string {
|
|
1325
|
+
return JSON.stringify(
|
|
1326
|
+
PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
|
|
1327
|
+
);
|
|
1283
1328
|
}
|
|
1284
1329
|
|
|
1285
|
-
export function
|
|
1330
|
+
export function publicMessagePartFilePartFromJSON(
|
|
1286
1331
|
jsonString: string,
|
|
1287
|
-
): SafeParseResult<
|
|
1332
|
+
): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
|
|
1288
1333
|
return safeParse(
|
|
1289
1334
|
jsonString,
|
|
1290
|
-
(x) =>
|
|
1291
|
-
`Failed to parse '
|
|
1335
|
+
(x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
1336
|
+
`Failed to parse 'PublicMessagePartFilePart' from JSON`,
|
|
1292
1337
|
);
|
|
1293
1338
|
}
|
|
1294
1339
|
|
|
1295
1340
|
/** @internal */
|
|
1296
|
-
export const
|
|
1297
|
-
|
|
1298
|
-
);
|
|
1341
|
+
export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
1342
|
+
typeof RunAgentPublicMessagePartKind
|
|
1343
|
+
> = z.nativeEnum(RunAgentPublicMessagePartKind);
|
|
1299
1344
|
|
|
1300
1345
|
/** @internal */
|
|
1301
|
-
export const
|
|
1302
|
-
|
|
1346
|
+
export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
1347
|
+
typeof RunAgentPublicMessagePartKind
|
|
1348
|
+
> = RunAgentPublicMessagePartKind$inboundSchema;
|
|
1303
1349
|
|
|
1304
1350
|
/**
|
|
1305
1351
|
* @internal
|
|
1306
1352
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1307
1353
|
*/
|
|
1308
|
-
export namespace
|
|
1309
|
-
/** @deprecated use `
|
|
1310
|
-
export const inboundSchema =
|
|
1311
|
-
/** @deprecated use `
|
|
1312
|
-
export const outboundSchema =
|
|
1354
|
+
export namespace RunAgentPublicMessagePartKind$ {
|
|
1355
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
1356
|
+
export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
|
|
1357
|
+
/** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
1358
|
+
export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
|
|
1313
1359
|
}
|
|
1314
1360
|
|
|
1315
1361
|
/** @internal */
|
|
1316
|
-
export const
|
|
1317
|
-
|
|
1362
|
+
export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
1363
|
+
PublicMessagePartTextPart,
|
|
1318
1364
|
z.ZodTypeDef,
|
|
1319
1365
|
unknown
|
|
1320
1366
|
> = z.object({
|
|
1321
|
-
kind:
|
|
1367
|
+
kind: RunAgentPublicMessagePartKind$inboundSchema,
|
|
1322
1368
|
text: z.string(),
|
|
1323
1369
|
});
|
|
1324
1370
|
|
|
1325
1371
|
/** @internal */
|
|
1326
|
-
export type
|
|
1372
|
+
export type PublicMessagePartTextPart$Outbound = {
|
|
1327
1373
|
kind: string;
|
|
1328
1374
|
text: string;
|
|
1329
1375
|
};
|
|
1330
1376
|
|
|
1331
1377
|
/** @internal */
|
|
1332
|
-
export const
|
|
1333
|
-
|
|
1378
|
+
export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
1379
|
+
PublicMessagePartTextPart$Outbound,
|
|
1334
1380
|
z.ZodTypeDef,
|
|
1335
|
-
|
|
1381
|
+
PublicMessagePartTextPart
|
|
1336
1382
|
> = z.object({
|
|
1337
|
-
kind:
|
|
1383
|
+
kind: RunAgentPublicMessagePartKind$outboundSchema,
|
|
1338
1384
|
text: z.string(),
|
|
1339
1385
|
});
|
|
1340
1386
|
|
|
@@ -1342,128 +1388,139 @@ export const TextPart$outboundSchema: z.ZodType<
|
|
|
1342
1388
|
* @internal
|
|
1343
1389
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1344
1390
|
*/
|
|
1345
|
-
export namespace
|
|
1346
|
-
/** @deprecated use `
|
|
1347
|
-
export const inboundSchema =
|
|
1348
|
-
/** @deprecated use `
|
|
1349
|
-
export const outboundSchema =
|
|
1350
|
-
/** @deprecated use `
|
|
1351
|
-
export type Outbound =
|
|
1391
|
+
export namespace PublicMessagePartTextPart$ {
|
|
1392
|
+
/** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
|
|
1393
|
+
export const inboundSchema = PublicMessagePartTextPart$inboundSchema;
|
|
1394
|
+
/** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
|
|
1395
|
+
export const outboundSchema = PublicMessagePartTextPart$outboundSchema;
|
|
1396
|
+
/** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
|
|
1397
|
+
export type Outbound = PublicMessagePartTextPart$Outbound;
|
|
1352
1398
|
}
|
|
1353
1399
|
|
|
1354
|
-
export function
|
|
1355
|
-
|
|
1400
|
+
export function publicMessagePartTextPartToJSON(
|
|
1401
|
+
publicMessagePartTextPart: PublicMessagePartTextPart,
|
|
1402
|
+
): string {
|
|
1403
|
+
return JSON.stringify(
|
|
1404
|
+
PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
|
|
1405
|
+
);
|
|
1356
1406
|
}
|
|
1357
1407
|
|
|
1358
|
-
export function
|
|
1408
|
+
export function publicMessagePartTextPartFromJSON(
|
|
1359
1409
|
jsonString: string,
|
|
1360
|
-
): SafeParseResult<
|
|
1410
|
+
): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
|
|
1361
1411
|
return safeParse(
|
|
1362
1412
|
jsonString,
|
|
1363
|
-
(x) =>
|
|
1364
|
-
`Failed to parse '
|
|
1413
|
+
(x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
1414
|
+
`Failed to parse 'PublicMessagePartTextPart' from JSON`,
|
|
1365
1415
|
);
|
|
1366
1416
|
}
|
|
1367
1417
|
|
|
1368
1418
|
/** @internal */
|
|
1369
|
-
export const
|
|
1370
|
-
|
|
1419
|
+
export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
1420
|
+
RunAgentPublicMessagePart,
|
|
1371
1421
|
z.ZodTypeDef,
|
|
1372
1422
|
unknown
|
|
1373
1423
|
> = z.union([
|
|
1374
|
-
z.lazy(() =>
|
|
1375
|
-
z.lazy(() =>
|
|
1376
|
-
z.lazy(() =>
|
|
1424
|
+
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
1425
|
+
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
1426
|
+
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
1377
1427
|
]);
|
|
1378
1428
|
|
|
1379
1429
|
/** @internal */
|
|
1380
|
-
export type
|
|
1381
|
-
|
|
|
1382
|
-
|
|
|
1383
|
-
|
|
|
1430
|
+
export type RunAgentPublicMessagePart$Outbound =
|
|
1431
|
+
| PublicMessagePartTextPart$Outbound
|
|
1432
|
+
| PublicMessagePartFilePart$Outbound
|
|
1433
|
+
| PublicMessagePartToolResultPart$Outbound;
|
|
1384
1434
|
|
|
1385
1435
|
/** @internal */
|
|
1386
|
-
export const
|
|
1387
|
-
|
|
1436
|
+
export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
1437
|
+
RunAgentPublicMessagePart$Outbound,
|
|
1388
1438
|
z.ZodTypeDef,
|
|
1389
|
-
|
|
1439
|
+
RunAgentPublicMessagePart
|
|
1390
1440
|
> = z.union([
|
|
1391
|
-
z.lazy(() =>
|
|
1392
|
-
z.lazy(() =>
|
|
1393
|
-
z.lazy(() =>
|
|
1441
|
+
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
1442
|
+
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
1443
|
+
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
1394
1444
|
]);
|
|
1395
1445
|
|
|
1396
1446
|
/**
|
|
1397
1447
|
* @internal
|
|
1398
1448
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1399
1449
|
*/
|
|
1400
|
-
export namespace
|
|
1401
|
-
/** @deprecated use `
|
|
1402
|
-
export const inboundSchema =
|
|
1403
|
-
/** @deprecated use `
|
|
1404
|
-
export const outboundSchema =
|
|
1405
|
-
/** @deprecated use `
|
|
1406
|
-
export type Outbound =
|
|
1450
|
+
export namespace RunAgentPublicMessagePart$ {
|
|
1451
|
+
/** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
|
|
1452
|
+
export const inboundSchema = RunAgentPublicMessagePart$inboundSchema;
|
|
1453
|
+
/** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
|
|
1454
|
+
export const outboundSchema = RunAgentPublicMessagePart$outboundSchema;
|
|
1455
|
+
/** @deprecated use `RunAgentPublicMessagePart$Outbound` instead. */
|
|
1456
|
+
export type Outbound = RunAgentPublicMessagePart$Outbound;
|
|
1407
1457
|
}
|
|
1408
1458
|
|
|
1409
|
-
export function
|
|
1410
|
-
|
|
1459
|
+
export function runAgentPublicMessagePartToJSON(
|
|
1460
|
+
runAgentPublicMessagePart: RunAgentPublicMessagePart,
|
|
1411
1461
|
): string {
|
|
1412
1462
|
return JSON.stringify(
|
|
1413
|
-
|
|
1463
|
+
RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
|
|
1414
1464
|
);
|
|
1415
1465
|
}
|
|
1416
1466
|
|
|
1417
|
-
export function
|
|
1467
|
+
export function runAgentPublicMessagePartFromJSON(
|
|
1418
1468
|
jsonString: string,
|
|
1419
|
-
): SafeParseResult<
|
|
1469
|
+
): SafeParseResult<RunAgentPublicMessagePart, SDKValidationError> {
|
|
1420
1470
|
return safeParse(
|
|
1421
1471
|
jsonString,
|
|
1422
|
-
(x) =>
|
|
1423
|
-
`Failed to parse '
|
|
1472
|
+
(x) => RunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
1473
|
+
`Failed to parse 'RunAgentPublicMessagePart' from JSON`,
|
|
1424
1474
|
);
|
|
1425
1475
|
}
|
|
1426
1476
|
|
|
1427
1477
|
/** @internal */
|
|
1428
|
-
export const
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1478
|
+
export const RunAgentMessage$inboundSchema: z.ZodType<
|
|
1479
|
+
RunAgentMessage,
|
|
1480
|
+
z.ZodTypeDef,
|
|
1481
|
+
unknown
|
|
1482
|
+
> = z.object({
|
|
1483
|
+
messageId: z.string().optional(),
|
|
1484
|
+
role: z.union([
|
|
1485
|
+
RunAgentRoleUserMessage$inboundSchema,
|
|
1486
|
+
RunAgentRoleToolMessage$inboundSchema,
|
|
1487
|
+
]),
|
|
1488
|
+
parts: z.array(
|
|
1489
|
+
z.union([
|
|
1490
|
+
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
1491
|
+
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
1492
|
+
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
1434
1493
|
]),
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
z.lazy(() => TextPart$inboundSchema),
|
|
1438
|
-
z.lazy(() => FilePart$inboundSchema),
|
|
1439
|
-
z.lazy(() => ToolResultPart$inboundSchema),
|
|
1440
|
-
]),
|
|
1441
|
-
),
|
|
1442
|
-
});
|
|
1494
|
+
),
|
|
1495
|
+
});
|
|
1443
1496
|
|
|
1444
1497
|
/** @internal */
|
|
1445
|
-
export type
|
|
1498
|
+
export type RunAgentMessage$Outbound = {
|
|
1446
1499
|
messageId?: string | undefined;
|
|
1447
1500
|
role: string | string;
|
|
1448
|
-
parts: Array<
|
|
1501
|
+
parts: Array<
|
|
1502
|
+
| PublicMessagePartTextPart$Outbound
|
|
1503
|
+
| PublicMessagePartFilePart$Outbound
|
|
1504
|
+
| PublicMessagePartToolResultPart$Outbound
|
|
1505
|
+
>;
|
|
1449
1506
|
};
|
|
1450
1507
|
|
|
1451
1508
|
/** @internal */
|
|
1452
|
-
export const
|
|
1453
|
-
|
|
1509
|
+
export const RunAgentMessage$outboundSchema: z.ZodType<
|
|
1510
|
+
RunAgentMessage$Outbound,
|
|
1454
1511
|
z.ZodTypeDef,
|
|
1455
|
-
|
|
1512
|
+
RunAgentMessage
|
|
1456
1513
|
> = z.object({
|
|
1457
1514
|
messageId: z.string().optional(),
|
|
1458
1515
|
role: z.union([
|
|
1459
|
-
|
|
1460
|
-
|
|
1516
|
+
RunAgentRoleUserMessage$outboundSchema,
|
|
1517
|
+
RunAgentRoleToolMessage$outboundSchema,
|
|
1461
1518
|
]),
|
|
1462
1519
|
parts: z.array(
|
|
1463
1520
|
z.union([
|
|
1464
|
-
z.lazy(() =>
|
|
1465
|
-
z.lazy(() =>
|
|
1466
|
-
z.lazy(() =>
|
|
1521
|
+
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
1522
|
+
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
1523
|
+
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
1467
1524
|
]),
|
|
1468
1525
|
),
|
|
1469
1526
|
});
|
|
@@ -1472,47 +1529,52 @@ export const Message$outboundSchema: z.ZodType<
|
|
|
1472
1529
|
* @internal
|
|
1473
1530
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1474
1531
|
*/
|
|
1475
|
-
export namespace
|
|
1476
|
-
/** @deprecated use `
|
|
1477
|
-
export const inboundSchema =
|
|
1478
|
-
/** @deprecated use `
|
|
1479
|
-
export const outboundSchema =
|
|
1480
|
-
/** @deprecated use `
|
|
1481
|
-
export type Outbound =
|
|
1532
|
+
export namespace RunAgentMessage$ {
|
|
1533
|
+
/** @deprecated use `RunAgentMessage$inboundSchema` instead. */
|
|
1534
|
+
export const inboundSchema = RunAgentMessage$inboundSchema;
|
|
1535
|
+
/** @deprecated use `RunAgentMessage$outboundSchema` instead. */
|
|
1536
|
+
export const outboundSchema = RunAgentMessage$outboundSchema;
|
|
1537
|
+
/** @deprecated use `RunAgentMessage$Outbound` instead. */
|
|
1538
|
+
export type Outbound = RunAgentMessage$Outbound;
|
|
1482
1539
|
}
|
|
1483
1540
|
|
|
1484
|
-
export function
|
|
1485
|
-
|
|
1541
|
+
export function runAgentMessageToJSON(
|
|
1542
|
+
runAgentMessage: RunAgentMessage,
|
|
1543
|
+
): string {
|
|
1544
|
+
return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
|
|
1486
1545
|
}
|
|
1487
1546
|
|
|
1488
|
-
export function
|
|
1547
|
+
export function runAgentMessageFromJSON(
|
|
1489
1548
|
jsonString: string,
|
|
1490
|
-
): SafeParseResult<
|
|
1549
|
+
): SafeParseResult<RunAgentMessage, SDKValidationError> {
|
|
1491
1550
|
return safeParse(
|
|
1492
1551
|
jsonString,
|
|
1493
|
-
(x) =>
|
|
1494
|
-
`Failed to parse '
|
|
1552
|
+
(x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1553
|
+
`Failed to parse 'RunAgentMessage' from JSON`,
|
|
1495
1554
|
);
|
|
1496
1555
|
}
|
|
1497
1556
|
|
|
1498
1557
|
/** @internal */
|
|
1499
|
-
export const
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1558
|
+
export const RunAgentContact$inboundSchema: z.ZodType<
|
|
1559
|
+
RunAgentContact,
|
|
1560
|
+
z.ZodTypeDef,
|
|
1561
|
+
unknown
|
|
1562
|
+
> = z.object({
|
|
1563
|
+
id: z.string(),
|
|
1564
|
+
display_name: z.string().optional(),
|
|
1565
|
+
email: z.string().optional(),
|
|
1566
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
1567
|
+
logo_url: z.string().optional(),
|
|
1568
|
+
tags: z.array(z.string()).optional(),
|
|
1569
|
+
}).transform((v) => {
|
|
1570
|
+
return remap$(v, {
|
|
1571
|
+
"display_name": "displayName",
|
|
1572
|
+
"logo_url": "logoUrl",
|
|
1512
1573
|
});
|
|
1574
|
+
});
|
|
1513
1575
|
|
|
1514
1576
|
/** @internal */
|
|
1515
|
-
export type
|
|
1577
|
+
export type RunAgentContact$Outbound = {
|
|
1516
1578
|
id: string;
|
|
1517
1579
|
display_name?: string | undefined;
|
|
1518
1580
|
email?: string | undefined;
|
|
@@ -1522,10 +1584,10 @@ export type Contact$Outbound = {
|
|
|
1522
1584
|
};
|
|
1523
1585
|
|
|
1524
1586
|
/** @internal */
|
|
1525
|
-
export const
|
|
1526
|
-
|
|
1587
|
+
export const RunAgentContact$outboundSchema: z.ZodType<
|
|
1588
|
+
RunAgentContact$Outbound,
|
|
1527
1589
|
z.ZodTypeDef,
|
|
1528
|
-
|
|
1590
|
+
RunAgentContact
|
|
1529
1591
|
> = z.object({
|
|
1530
1592
|
id: z.string(),
|
|
1531
1593
|
displayName: z.string().optional(),
|
|
@@ -1544,26 +1606,28 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
1544
1606
|
* @internal
|
|
1545
1607
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1546
1608
|
*/
|
|
1547
|
-
export namespace
|
|
1548
|
-
/** @deprecated use `
|
|
1549
|
-
export const inboundSchema =
|
|
1550
|
-
/** @deprecated use `
|
|
1551
|
-
export const outboundSchema =
|
|
1552
|
-
/** @deprecated use `
|
|
1553
|
-
export type Outbound =
|
|
1609
|
+
export namespace RunAgentContact$ {
|
|
1610
|
+
/** @deprecated use `RunAgentContact$inboundSchema` instead. */
|
|
1611
|
+
export const inboundSchema = RunAgentContact$inboundSchema;
|
|
1612
|
+
/** @deprecated use `RunAgentContact$outboundSchema` instead. */
|
|
1613
|
+
export const outboundSchema = RunAgentContact$outboundSchema;
|
|
1614
|
+
/** @deprecated use `RunAgentContact$Outbound` instead. */
|
|
1615
|
+
export type Outbound = RunAgentContact$Outbound;
|
|
1554
1616
|
}
|
|
1555
1617
|
|
|
1556
|
-
export function
|
|
1557
|
-
|
|
1618
|
+
export function runAgentContactToJSON(
|
|
1619
|
+
runAgentContact: RunAgentContact,
|
|
1620
|
+
): string {
|
|
1621
|
+
return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
|
|
1558
1622
|
}
|
|
1559
1623
|
|
|
1560
|
-
export function
|
|
1624
|
+
export function runAgentContactFromJSON(
|
|
1561
1625
|
jsonString: string,
|
|
1562
|
-
): SafeParseResult<
|
|
1626
|
+
): SafeParseResult<RunAgentContact, SDKValidationError> {
|
|
1563
1627
|
return safeParse(
|
|
1564
1628
|
jsonString,
|
|
1565
|
-
(x) =>
|
|
1566
|
-
`Failed to parse '
|
|
1629
|
+
(x) => RunAgentContact$inboundSchema.parse(JSON.parse(x)),
|
|
1630
|
+
`Failed to parse 'RunAgentContact' from JSON`,
|
|
1567
1631
|
);
|
|
1568
1632
|
}
|
|
1569
1633
|
|
|
@@ -1621,25 +1685,28 @@ export function runAgentThreadFromJSON(
|
|
|
1621
1685
|
}
|
|
1622
1686
|
|
|
1623
1687
|
/** @internal */
|
|
1624
|
-
export const
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1688
|
+
export const RunAgentMemory$inboundSchema: z.ZodType<
|
|
1689
|
+
RunAgentMemory,
|
|
1690
|
+
z.ZodTypeDef,
|
|
1691
|
+
unknown
|
|
1692
|
+
> = z.object({
|
|
1693
|
+
entity_id: z.string(),
|
|
1694
|
+
}).transform((v) => {
|
|
1695
|
+
return remap$(v, {
|
|
1696
|
+
"entity_id": "entityId",
|
|
1631
1697
|
});
|
|
1698
|
+
});
|
|
1632
1699
|
|
|
1633
1700
|
/** @internal */
|
|
1634
|
-
export type
|
|
1701
|
+
export type RunAgentMemory$Outbound = {
|
|
1635
1702
|
entity_id: string;
|
|
1636
1703
|
};
|
|
1637
1704
|
|
|
1638
1705
|
/** @internal */
|
|
1639
|
-
export const
|
|
1640
|
-
|
|
1706
|
+
export const RunAgentMemory$outboundSchema: z.ZodType<
|
|
1707
|
+
RunAgentMemory$Outbound,
|
|
1641
1708
|
z.ZodTypeDef,
|
|
1642
|
-
|
|
1709
|
+
RunAgentMemory
|
|
1643
1710
|
> = z.object({
|
|
1644
1711
|
entityId: z.string(),
|
|
1645
1712
|
}).transform((v) => {
|
|
@@ -1652,26 +1719,26 @@ export const Memory$outboundSchema: z.ZodType<
|
|
|
1652
1719
|
* @internal
|
|
1653
1720
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1654
1721
|
*/
|
|
1655
|
-
export namespace
|
|
1656
|
-
/** @deprecated use `
|
|
1657
|
-
export const inboundSchema =
|
|
1658
|
-
/** @deprecated use `
|
|
1659
|
-
export const outboundSchema =
|
|
1660
|
-
/** @deprecated use `
|
|
1661
|
-
export type Outbound =
|
|
1722
|
+
export namespace RunAgentMemory$ {
|
|
1723
|
+
/** @deprecated use `RunAgentMemory$inboundSchema` instead. */
|
|
1724
|
+
export const inboundSchema = RunAgentMemory$inboundSchema;
|
|
1725
|
+
/** @deprecated use `RunAgentMemory$outboundSchema` instead. */
|
|
1726
|
+
export const outboundSchema = RunAgentMemory$outboundSchema;
|
|
1727
|
+
/** @deprecated use `RunAgentMemory$Outbound` instead. */
|
|
1728
|
+
export type Outbound = RunAgentMemory$Outbound;
|
|
1662
1729
|
}
|
|
1663
1730
|
|
|
1664
|
-
export function
|
|
1665
|
-
return JSON.stringify(
|
|
1731
|
+
export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
|
|
1732
|
+
return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
|
|
1666
1733
|
}
|
|
1667
1734
|
|
|
1668
|
-
export function
|
|
1735
|
+
export function runAgentMemoryFromJSON(
|
|
1669
1736
|
jsonString: string,
|
|
1670
|
-
): SafeParseResult<
|
|
1737
|
+
): SafeParseResult<RunAgentMemory, SDKValidationError> {
|
|
1671
1738
|
return safeParse(
|
|
1672
1739
|
jsonString,
|
|
1673
|
-
(x) =>
|
|
1674
|
-
`Failed to parse '
|
|
1740
|
+
(x) => RunAgentMemory$inboundSchema.parse(JSON.parse(x)),
|
|
1741
|
+
`Failed to parse 'RunAgentMemory' from JSON`,
|
|
1675
1742
|
);
|
|
1676
1743
|
}
|
|
1677
1744
|
|
|
@@ -3987,11 +4054,11 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
3987
4054
|
fallback_models: z.array(z.string()).optional(),
|
|
3988
4055
|
role: z.string(),
|
|
3989
4056
|
instructions: z.string(),
|
|
3990
|
-
message: z.lazy(() =>
|
|
4057
|
+
message: z.lazy(() => RunAgentMessage$inboundSchema),
|
|
3991
4058
|
variables: z.record(z.any()).optional(),
|
|
3992
|
-
contact: z.lazy(() =>
|
|
4059
|
+
contact: z.lazy(() => RunAgentContact$inboundSchema).optional(),
|
|
3993
4060
|
thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
|
|
3994
|
-
memory: z.lazy(() =>
|
|
4061
|
+
memory: z.lazy(() => RunAgentMemory$inboundSchema).optional(),
|
|
3995
4062
|
path: z.string(),
|
|
3996
4063
|
description: z.string().optional(),
|
|
3997
4064
|
system_prompt: z.string().optional(),
|
|
@@ -4019,11 +4086,11 @@ export type RunAgentRequestBody$Outbound = {
|
|
|
4019
4086
|
fallback_models?: Array<string> | undefined;
|
|
4020
4087
|
role: string;
|
|
4021
4088
|
instructions: string;
|
|
4022
|
-
message:
|
|
4089
|
+
message: RunAgentMessage$Outbound;
|
|
4023
4090
|
variables?: { [k: string]: any } | undefined;
|
|
4024
|
-
contact?:
|
|
4091
|
+
contact?: RunAgentContact$Outbound | undefined;
|
|
4025
4092
|
thread?: RunAgentThread$Outbound | undefined;
|
|
4026
|
-
memory?:
|
|
4093
|
+
memory?: RunAgentMemory$Outbound | undefined;
|
|
4027
4094
|
path: string;
|
|
4028
4095
|
description?: string | undefined;
|
|
4029
4096
|
system_prompt?: string | undefined;
|
|
@@ -4046,11 +4113,11 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
4046
4113
|
fallbackModels: z.array(z.string()).optional(),
|
|
4047
4114
|
role: z.string(),
|
|
4048
4115
|
instructions: z.string(),
|
|
4049
|
-
message: z.lazy(() =>
|
|
4116
|
+
message: z.lazy(() => RunAgentMessage$outboundSchema),
|
|
4050
4117
|
variables: z.record(z.any()).optional(),
|
|
4051
|
-
contact: z.lazy(() =>
|
|
4118
|
+
contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
|
|
4052
4119
|
thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
|
|
4053
|
-
memory: z.lazy(() =>
|
|
4120
|
+
memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
|
|
4054
4121
|
path: z.string(),
|
|
4055
4122
|
description: z.string().optional(),
|
|
4056
4123
|
systemPrompt: z.string().optional(),
|
|
@@ -4184,8 +4251,8 @@ export namespace RunAgentAgentsRole$ {
|
|
|
4184
4251
|
}
|
|
4185
4252
|
|
|
4186
4253
|
/** @internal */
|
|
4187
|
-
export const
|
|
4188
|
-
|
|
4254
|
+
export const RunAgentAgentsMessage$inboundSchema: z.ZodType<
|
|
4255
|
+
RunAgentAgentsMessage,
|
|
4189
4256
|
z.ZodTypeDef,
|
|
4190
4257
|
unknown
|
|
4191
4258
|
> = z.object({
|
|
@@ -4196,7 +4263,7 @@ export const RunAgentMessage$inboundSchema: z.ZodType<
|
|
|
4196
4263
|
});
|
|
4197
4264
|
|
|
4198
4265
|
/** @internal */
|
|
4199
|
-
export type
|
|
4266
|
+
export type RunAgentAgentsMessage$Outbound = {
|
|
4200
4267
|
kind: string;
|
|
4201
4268
|
messageId: string;
|
|
4202
4269
|
role: string;
|
|
@@ -4204,10 +4271,10 @@ export type RunAgentMessage$Outbound = {
|
|
|
4204
4271
|
};
|
|
4205
4272
|
|
|
4206
4273
|
/** @internal */
|
|
4207
|
-
export const
|
|
4208
|
-
|
|
4274
|
+
export const RunAgentAgentsMessage$outboundSchema: z.ZodType<
|
|
4275
|
+
RunAgentAgentsMessage$Outbound,
|
|
4209
4276
|
z.ZodTypeDef,
|
|
4210
|
-
|
|
4277
|
+
RunAgentAgentsMessage
|
|
4211
4278
|
> = z.object({
|
|
4212
4279
|
kind: RunAgentAgentsKind$outboundSchema,
|
|
4213
4280
|
messageId: z.string(),
|
|
@@ -4219,28 +4286,30 @@ export const RunAgentMessage$outboundSchema: z.ZodType<
|
|
|
4219
4286
|
* @internal
|
|
4220
4287
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4221
4288
|
*/
|
|
4222
|
-
export namespace
|
|
4223
|
-
/** @deprecated use `
|
|
4224
|
-
export const inboundSchema =
|
|
4225
|
-
/** @deprecated use `
|
|
4226
|
-
export const outboundSchema =
|
|
4227
|
-
/** @deprecated use `
|
|
4228
|
-
export type Outbound =
|
|
4289
|
+
export namespace RunAgentAgentsMessage$ {
|
|
4290
|
+
/** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
|
|
4291
|
+
export const inboundSchema = RunAgentAgentsMessage$inboundSchema;
|
|
4292
|
+
/** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
|
|
4293
|
+
export const outboundSchema = RunAgentAgentsMessage$outboundSchema;
|
|
4294
|
+
/** @deprecated use `RunAgentAgentsMessage$Outbound` instead. */
|
|
4295
|
+
export type Outbound = RunAgentAgentsMessage$Outbound;
|
|
4229
4296
|
}
|
|
4230
4297
|
|
|
4231
|
-
export function
|
|
4232
|
-
|
|
4298
|
+
export function runAgentAgentsMessageToJSON(
|
|
4299
|
+
runAgentAgentsMessage: RunAgentAgentsMessage,
|
|
4233
4300
|
): string {
|
|
4234
|
-
return JSON.stringify(
|
|
4301
|
+
return JSON.stringify(
|
|
4302
|
+
RunAgentAgentsMessage$outboundSchema.parse(runAgentAgentsMessage),
|
|
4303
|
+
);
|
|
4235
4304
|
}
|
|
4236
4305
|
|
|
4237
|
-
export function
|
|
4306
|
+
export function runAgentAgentsMessageFromJSON(
|
|
4238
4307
|
jsonString: string,
|
|
4239
|
-
): SafeParseResult<
|
|
4308
|
+
): SafeParseResult<RunAgentAgentsMessage, SDKValidationError> {
|
|
4240
4309
|
return safeParse(
|
|
4241
4310
|
jsonString,
|
|
4242
|
-
(x) =>
|
|
4243
|
-
`Failed to parse '
|
|
4311
|
+
(x) => RunAgentAgentsMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4312
|
+
`Failed to parse 'RunAgentAgentsMessage' from JSON`,
|
|
4244
4313
|
);
|
|
4245
4314
|
}
|
|
4246
4315
|
|
|
@@ -4252,14 +4321,14 @@ export const RunAgentStatus$inboundSchema: z.ZodType<
|
|
|
4252
4321
|
> = z.object({
|
|
4253
4322
|
state: RunAgentState$inboundSchema,
|
|
4254
4323
|
timestamp: z.string().optional(),
|
|
4255
|
-
message: z.lazy(() =>
|
|
4324
|
+
message: z.lazy(() => RunAgentAgentsMessage$inboundSchema).optional(),
|
|
4256
4325
|
});
|
|
4257
4326
|
|
|
4258
4327
|
/** @internal */
|
|
4259
4328
|
export type RunAgentStatus$Outbound = {
|
|
4260
4329
|
state: string;
|
|
4261
4330
|
timestamp?: string | undefined;
|
|
4262
|
-
message?:
|
|
4331
|
+
message?: RunAgentAgentsMessage$Outbound | undefined;
|
|
4263
4332
|
};
|
|
4264
4333
|
|
|
4265
4334
|
/** @internal */
|
|
@@ -4270,7 +4339,7 @@ export const RunAgentStatus$outboundSchema: z.ZodType<
|
|
|
4270
4339
|
> = z.object({
|
|
4271
4340
|
state: RunAgentState$outboundSchema,
|
|
4272
4341
|
timestamp: z.string().optional(),
|
|
4273
|
-
message: z.lazy(() =>
|
|
4342
|
+
message: z.lazy(() => RunAgentAgentsMessage$outboundSchema).optional(),
|
|
4274
4343
|
});
|
|
4275
4344
|
|
|
4276
4345
|
/**
|