diff --git a/.genignore b/.genignore new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/.genignore @@ -0,0 +1 @@ +README.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6f5e86d..ffaf371 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,24 @@ lockVersion: 2.0.0 id: 7fd487cb-2a73-459e-99e5-2c4e6547175f management: - docChecksum: a460a1ebe6ede9e586a70b25d2a661ba + docChecksum: 6b552dc809b18728b0e542a19638e1bd docVersion: 2.0.0 - speakeasyVersion: 1.664.0 - generationVersion: 2.766.1 - releaseVersion: 3.3.2 - configChecksum: 8c82f1e2d056460a762ab90c9324d283 + speakeasyVersion: 1.673.0 + generationVersion: 2.776.1 + releaseVersion: 3.4.0 + configChecksum: c52dd5c389129c9b92814cee76b23b32 +persistentEdits: + generation_id: 241cf4e9-4fdf-4a0f-bfa7-64216c55485e + pristine_commit_hash: 83d6e223320b25dd96993c84dd7b5eeb5c3b0b43 + pristine_tree_hash: fb317141c7aa20b3937f191b14a4efb23a7b646c features: typescript: additionalDependencies: 0.1.0 additionalProperties: 0.1.2 constsAndDefaults: 0.1.12 - core: 3.26.12 + core: 3.26.14 defaultEnabledRetries: 0.1.0 + deprecations: 2.81.1 devContainers: 2.90.1 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 @@ -28,737 +33,2971 @@ features: nullables: 0.1.1 responseFormat: 0.2.3 retries: 2.83.0 - sdkHooks: 0.3.0 + sdkHooks: 0.4.0 serverEvents: 0.1.12 - unions: 2.86.2 -generatedFiles: - - .devcontainer/README.md - - .devcontainer/devcontainer.json - - .devcontainer/setup.sh - - .gitattributes - - .npmignore - - FUNCTIONS.md - - RUNTIMES.md - - USAGE.md - - docs/lib/utils/retryconfig.md - - docs/models/addrequest.md - - docs/models/annotation.md - - docs/models/annotationurlcitation.md - - docs/models/appapipublicv2functioncallcallfunctionrequest.md - - docs/models/appapipublicv2functioncallcallfunctionresponse.md - - docs/models/appapipublicv2functionscallfunctionrequest.md - - docs/models/appapipublicv2functionscallfunctionresponse.md - - docs/models/audio.md - - docs/models/chatcompletion.md - - docs/models/chatcompletionallowedtoolchoiceparam.md - - docs/models/chatcompletionallowedtoolsparam.md - - docs/models/chatcompletionassistantmessageparam.md - - docs/models/chatcompletionassistantmessageparamcontent1.md - - docs/models/chatcompletionassistantmessageparamcontent2.md - - docs/models/chatcompletionassistantmessageparamtoolcall.md - - docs/models/chatcompletionaudio.md - - docs/models/chatcompletionaudioparam.md - - docs/models/chatcompletionaudioparamformat.md - - docs/models/chatcompletioncontentpartimageparam.md - - docs/models/chatcompletioncontentpartinputaudioparam.md - - docs/models/chatcompletioncontentpartrefusalparam.md - - docs/models/chatcompletioncontentparttextparam.md - - docs/models/chatcompletioncustomtoolparam.md - - docs/models/chatcompletiondevelopermessageparam.md - - docs/models/chatcompletiondevelopermessageparamcontent.md - - docs/models/chatcompletionfunctioncalloptionparam.md - - docs/models/chatcompletionfunctionmessageparam.md - - docs/models/chatcompletionfunctiontoolparam.md - - docs/models/chatcompletionmessage.md - - docs/models/chatcompletionmessagecustomtoolcall.md - - docs/models/chatcompletionmessagecustomtoolcallparam.md - - docs/models/chatcompletionmessagefunctiontoolcall.md - - docs/models/chatcompletionmessagefunctiontoolcallparam.md - - docs/models/chatcompletionmessagetoolcall.md - - docs/models/chatcompletionnamedtoolchoicecustomparam.md - - docs/models/chatcompletionnamedtoolchoiceparam.md - - docs/models/chatcompletionnonstreaming.md - - docs/models/chatcompletionnonstreamingfunctioncallenum.md - - docs/models/chatcompletionnonstreamingfunctioncallunion.md - - docs/models/chatcompletionnonstreamingmessage.md - - docs/models/chatcompletionnonstreamingmodality.md - - docs/models/chatcompletionnonstreamingreasoningeffort.md - - docs/models/chatcompletionnonstreamingresponseformat.md - - docs/models/chatcompletionnonstreamingservicetier.md - - docs/models/chatcompletionnonstreamingstop.md - - docs/models/chatcompletionnonstreamingtool.md - - docs/models/chatcompletionnonstreamingtoolchoiceenum.md - - docs/models/chatcompletionnonstreamingtoolchoiceunion.md - - docs/models/chatcompletionnonstreamingverbosity.md - - docs/models/chatcompletionpredictioncontentparam.md - - docs/models/chatcompletionpredictioncontentparamcontent.md - - docs/models/chatcompletionservicetier.md - - docs/models/chatcompletionstreaming.md - - docs/models/chatcompletionstreamingfunctioncallenum.md - - docs/models/chatcompletionstreamingfunctioncallunion.md - - docs/models/chatcompletionstreamingmessage.md - - docs/models/chatcompletionstreamingmodality.md - - docs/models/chatcompletionstreamingreasoningeffort.md - - docs/models/chatcompletionstreamingresponseformat.md - - docs/models/chatcompletionstreamingservicetier.md - - docs/models/chatcompletionstreamingstop.md - - docs/models/chatcompletionstreamingtool.md - - docs/models/chatcompletionstreamingtoolchoiceenum.md - - docs/models/chatcompletionstreamingtoolchoiceunion.md - - docs/models/chatcompletionstreamingverbosity.md - - docs/models/chatcompletionstreamoptionsparam.md - - docs/models/chatcompletionsystemmessageparam.md - - docs/models/chatcompletionsystemmessageparamcontent.md - - docs/models/chatcompletiontokenlogprob.md - - docs/models/chatcompletiontoolmessageparam.md - - docs/models/chatcompletiontoolmessageparamcontent.md - - docs/models/chatcompletionusermessageparam.md - - docs/models/chatcompletionusermessageparamcontent1.md - - docs/models/chatcompletionusermessageparamcontent2.md - - docs/models/choice.md - - docs/models/choicelogprobs.md - - docs/models/completiontokensdetails.md - - docs/models/completionusage.md - - docs/models/createdatasetentryrequest.md - - docs/models/createdatasetentryresponse.md - - docs/models/createembeddingrequest.md - - docs/models/createembeddingresponse.md - - docs/models/createfunctionrequest.md - - docs/models/createfunctionresponse.md - - docs/models/createknowledgebaserequest.md - - docs/models/createknowledgebaseresponse.md - - docs/models/createmodelaliasrequest.md - - docs/models/createmodelaliasresponse.md - - docs/models/createspanmetricrequest.md - - docs/models/createspanmetricresponse.md - - docs/models/createspanrequest.md - - docs/models/createspanresponse.md - - docs/models/customformatgrammar.md - - docs/models/customformatgrammargrammar.md - - docs/models/customformattext.md - - docs/models/customoutput.md - - docs/models/deleteknowledgebaserequest.md - - docs/models/deleteknowledgebaseresponse.md - - docs/models/detail.md - - docs/models/errors/badrequesterror.md - - docs/models/errors/conflicterror.md - - docs/models/errors/errort.md - - docs/models/errors/notfounderror.md - - docs/models/errors/requestvalidationerror.md - - docs/models/errors/unauthorizederror.md - - docs/models/example.md - - docs/models/examplein.md - - docs/models/filedownloadurlresponse.md - - docs/models/filefile.md - - docs/models/filet.md - - docs/models/filter.md - - docs/models/finishreason.md - - docs/models/format.md - - docs/models/functioncallconfigurationinput.md - - docs/models/functioncallconfigurationoutput.md - - docs/models/functioncallinput.md - - docs/models/functioncalloutput.md - - docs/models/functiondefinition.md - - docs/models/functionoutput.md - - docs/models/getcustommodelresponse.md - - docs/models/getdatasetentriesresponse.md - - docs/models/getdatasetentryresponse.md - - docs/models/getfunctionresponse.md - - docs/models/getknowledgebaseresponse.md - - docs/models/getmodelaliasresponse.md - - docs/models/getspanmetricresponse.md - - docs/models/getspanresponse.md - - docs/models/gettraceresponse.md - - docs/models/getuploadurlresponse.md - - docs/models/getusageresultitem.md - - docs/models/granularity.md - - docs/models/imageurl.md - - docs/models/input.md - - docs/models/inputaudio.md - - docs/models/inputaudioformat.md - - docs/models/jsonpayload.md - - docs/models/jsonschema.md - - docs/models/listcustommodelsresponseitem.md - - docs/models/listfilesresponse.md - - docs/models/listfunctionrevisionresponse.md - - docs/models/listfunctionsresponseitem.md - - docs/models/listknowledgebasesresponse.md - - docs/models/listlanguagemodelsresponse.md - - docs/models/listmodelaliasesresponseitem.md - - docs/models/listrerankmodelsresponse.md - - docs/models/listspanmetricsresponse.md - - docs/models/listtracesresponse.md - - docs/models/meta.md - - docs/models/mode.md - - docs/models/model.md - - docs/models/op.md - - docs/models/openaitypeschatchatcompletioncustomtoolparamcustom.md - - docs/models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.md - - docs/models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.md - - docs/models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.md - - docs/models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.md - - docs/models/openaitypeschatcompletioncreateparamsfunction.md - - docs/models/operations/addknowledgeknowledgebaseidaddpostrequest.md - - docs/models/operations/callfunctionfunctionsfunctionidcallpostrequest.md - - docs/models/operations/callfunctionrevisionfunctionsfunctionidcallrevisionidpostrequest.md - - docs/models/operations/createdatasetentrydatasetsdatasetidpostrequest.md - - docs/models/operations/createmetricspansspanidmetricspostrequest.md - - docs/models/operations/deletecustommodelmodelscustommodeliddeleterequest.md - - docs/models/operations/deletedatasetentrydatasetsdatasetidentriesentryiddeleterequest.md - - docs/models/operations/deletedocumentsknowledgeknowledgebaseidquerydeleterequest.md - - docs/models/operations/deletefilefromknowledgebaseknowledgeknowledgebaseidfilesfileiddeleterequest.md - - docs/models/operations/deletefunctionfunctionsfunctioniddeleterequest.md - - docs/models/operations/deleteknowledgebaseknowledgeknowledgebaseiddeleterequest.md - - docs/models/operations/deletemetricspansspanidmetricsmetriciddeleterequest.md - - docs/models/operations/deletemodelaliasmodelsaliasesaliasiddeleterequest.md - - docs/models/operations/deletespanspansspaniddeleterequest.md - - docs/models/operations/delta.md - - docs/models/operations/functionstreamcallstreampostresponse.md - - docs/models/operations/functionstreamcallstreampostresponsebody.md - - docs/models/operations/getcustommodelbynamemodelscustombynamenamegetrequest.md - - docs/models/operations/getcustommodelmodelscustommodelidgetrequest.md - - docs/models/operations/getdatasetentrydatasetsdatasetidentriesentryidgetrequest.md - - docs/models/operations/getfiledownloadurlknowledgeknowledgebaseidfilesfileiddownloadurlgetrequest.md - - docs/models/operations/getfunctionbynamefunctionsbynamenamegetrequest.md - - docs/models/operations/getfunctionbyrevisionfunctionsfunctionidrevisionsrevisionidgetrequest.md - - docs/models/operations/getfunctionfunctionsfunctionidgetrequest.md - - docs/models/operations/getknowledgebasebynameknowledgebynameknowledgebasenamegetrequest.md - - docs/models/operations/getknowledgebaseknowledgeknowledgebaseidgetrequest.md - - docs/models/operations/getmetricspansspanidmetricsmetricidgetrequest.md - - docs/models/operations/getmodelaliasbynamemodelsaliasesbynamenamegetrequest.md - - docs/models/operations/getmodelaliasmodelsaliasesaliasidgetrequest.md - - docs/models/operations/getspanspansspanidgetrequest.md - - docs/models/operations/gettracetracestraceidgetrequest.md - - docs/models/operations/getuploadurlknowledgeknowledgebaseiduploadurlgetrequest.md - - docs/models/operations/listcustommodelsmodelscustomgetrequest.md - - docs/models/operations/listdatasetentriesdatasetsdatasetidentriesgetrequest.md - - docs/models/operations/listfilesknowledgeknowledgebaseidfilesgetrequest.md - - docs/models/operations/listfunctionrevisionsfunctionsfunctionidrevisionsgetrequest.md - - docs/models/operations/listfunctionsfunctionsgetrequest.md - - docs/models/operations/listknowledgebasesknowledgegetrequest.md - - docs/models/operations/listmetricsspansspanidmetricsgetrequest.md - - docs/models/operations/listmodelaliasesmodelsaliasesgetrequest.md - - docs/models/operations/listmodelsmodelsgetrequest.md - - docs/models/operations/listtracestracesgetrequest.md - - docs/models/operations/payload.md - - docs/models/operations/querydatasetentriesdatasetsdatasetidentriesquerypostrequest.md - - docs/models/operations/queryknowledgebaseknowledgeknowledgebaseidquerypostrequest.md - - docs/models/operations/registerfileuploadknowledgeknowledgebaseidregisterfilepostrequest.md - - docs/models/operations/savetodatasetspansspanidsaveexamplespostrequest.md - - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostdata.md - - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostrequest.md - - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostresponse.md - - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostresponsebody.md - - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostdata.md - - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostrequest.md - - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostresponse.md - - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostresponsebody.md - - docs/models/operations/streamingchunk.md - - docs/models/operations/updatecustommodelmodelscustommodelidpatchrequest.md - - docs/models/operations/updatedatasetentrydatasetsdatasetidentriesentryidpatchrequest.md - - docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md - - docs/models/operations/updatemetricspansspanidmetricsmetricidpatchrequest.md - - docs/models/operations/updatemodelaliasmodelsaliasesaliasidpatchrequest.md - - docs/models/operations/updatespanspansspanidpatchrequest.md - - docs/models/operations/usageanalyticsusagegetrequest.md - - docs/models/paginatedresponsegetdatasetentriesresponse.md - - docs/models/paginatedresponselistcustommodelsresponseitem.md - - docs/models/paginatedresponselistfilesresponse.md - - docs/models/paginatedresponselistfunctionrevisionresponse.md - - docs/models/paginatedresponselistfunctionsresponseitem.md - - docs/models/paginatedresponselistknowledgebasesresponse.md - - docs/models/paginatedresponselistlanguagemodelsresponse.md - - docs/models/paginatedresponselistmodelaliasesresponseitem.md - - docs/models/paginatedresponselistrerankmodelsresponse.md - - docs/models/paginatedresponselistspanmetricsresponse.md - - docs/models/paginatedresponselisttracesresponse.md - - docs/models/prompttokensdetails.md - - docs/models/querydatasetentriesresponse.md - - docs/models/queryknowledgebaserequest.md - - docs/models/queryknowledgebaseresponse.md - - docs/models/registercustommodelrequest.md - - docs/models/registercustommodelresponse.md - - docs/models/registerfileuploadrequest.md - - docs/models/registerfileuploadresponse.md - - docs/models/rerankcost.md - - docs/models/rerankdocument.md - - docs/models/rerankrequestmodel.md - - docs/models/rerankresponsemodel.md - - docs/models/rerankresult.md - - docs/models/responseformatjsonobject.md - - docs/models/responseformatjsonschema.md - - docs/models/responseformattext.md - - docs/models/savetodatasetresponse.md - - docs/models/searchcontextsize.md - - docs/models/security.md - - docs/models/spandata.md - - docs/models/spanmetricdata.md - - docs/models/spanschema.md - - docs/models/syntax.md - - docs/models/textprocessingconfiguration.md - - docs/models/tmodel.md - - docs/models/tmodel1.md - - docs/models/toplogprob.md - - docs/models/updatecustommodelrequest.md - - docs/models/updatecustommodelresponse.md - - docs/models/updatedatasetentryrequest.md - - docs/models/updatedatasetentryresponse.md - - docs/models/updatefunctionrequest.md - - docs/models/updatefunctionresponse.md - - docs/models/updatemodelaliasrequest.md - - docs/models/updatemodelaliasresponse.md - - docs/models/updatespanmetricrequest.md - - docs/models/updatespanmetricresponse.md - - docs/models/updatespanrequest.md - - docs/models/updatespanresponse.md - - docs/models/value1.md - - docs/models/value2.md - - docs/models/voice.md - - docs/models/voiceenum.md - - docs/models/websearchoptions.md - - docs/models/websearchoptionsuserlocation.md - - docs/models/websearchoptionsuserlocationapproximate.md - - docs/sdks/analytics/README.md - - docs/sdks/datasets/README.md - - docs/sdks/embeddings/README.md - - docs/sdks/entries/README.md - - docs/sdks/functions/README.md - - docs/sdks/knowledge/README.md - - docs/sdks/languagemodels/README.md - - docs/sdks/models/README.md - - docs/sdks/openai/README.md - - docs/sdks/opper/README.md - - docs/sdks/rerank/README.md - - docs/sdks/revisions/README.md - - docs/sdks/spanmetrics/README.md - - docs/sdks/spans/README.md - - docs/sdks/traces/README.md - - eslint.config.mjs - - examples/.env.template - - examples/README.md - - examples/call.example.ts - - examples/package.json - - jsr.json - - package.json - - src/core.ts - - src/funcs/analyticsGetUsage.ts - - src/funcs/call.ts - - src/funcs/datasetsCreateEntry.ts - - src/funcs/datasetsDeleteEntry.ts - - src/funcs/datasetsEntriesUpdate.ts - - src/funcs/datasetsGetEntry.ts - - src/funcs/datasetsListEntries.ts - - src/funcs/datasetsQueryEntries.ts - - src/funcs/embeddingsCreate.ts - - src/funcs/functionsCall.ts - - src/funcs/functionsCallRevision.ts - - src/funcs/functionsCreate.ts - - src/funcs/functionsDelete.ts - - src/funcs/functionsGet.ts - - src/funcs/functionsGetByName.ts - - src/funcs/functionsGetByRevision.ts - - src/funcs/functionsList.ts - - src/funcs/functionsRevisionsList.ts - - src/funcs/functionsStream.ts - - src/funcs/functionsStreamRevision.ts - - src/funcs/functionsUpdate.ts - - src/funcs/knowledgeAdd.ts - - src/funcs/knowledgeCreate.ts - - src/funcs/knowledgeDelete.ts - - src/funcs/knowledgeDeleteDocuments.ts - - src/funcs/knowledgeDeleteFile.ts - - src/funcs/knowledgeGet.ts - - src/funcs/knowledgeGetByName.ts - - src/funcs/knowledgeGetFileDownloadUrl.ts - - src/funcs/knowledgeGetUploadUrl.ts - - src/funcs/knowledgeList.ts - - src/funcs/knowledgeListFiles.ts - - src/funcs/knowledgeQuery.ts - - src/funcs/knowledgeRegisterFileUpload.ts - - src/funcs/languageModelsDeleteCustom.ts - - src/funcs/languageModelsGetCustom.ts - - src/funcs/languageModelsGetCustomByName.ts - - src/funcs/languageModelsList.ts - - src/funcs/languageModelsListCustom.ts - - src/funcs/languageModelsRegisterCustom.ts - - src/funcs/languageModelsUpdateCustom.ts - - src/funcs/modelsCreateModelAliasModelsAliasesPost.ts - - src/funcs/modelsDeleteModelAliasModelsAliasesAliasIdDelete.ts - - src/funcs/modelsGetModelAliasByNameModelsAliasesByNameNameGet.ts - - src/funcs/modelsGetModelAliasModelsAliasesAliasIdGet.ts - - src/funcs/modelsListModelAliasesModelsAliasesGet.ts - - src/funcs/modelsUpdateModelAliasModelsAliasesAliasIdPatch.ts - - src/funcs/openaiCreateChatCompletion.ts - - src/funcs/rerankListRerankModelsRerankModelsGet.ts - - src/funcs/rerankRerankDocumentsRerankPost.ts - - src/funcs/spanMetricsCreateMetric.ts - - src/funcs/spanMetricsDelete.ts - - src/funcs/spanMetricsGet.ts - - src/funcs/spanMetricsList.ts - - src/funcs/spanMetricsUpdateMetric.ts - - src/funcs/spansCreate.ts - - src/funcs/spansDelete.ts - - src/funcs/spansGet.ts - - src/funcs/spansSaveExamples.ts - - src/funcs/spansUpdate.ts - - src/funcs/stream.ts - - src/funcs/tracesGet.ts - - src/funcs/tracesList.ts - - src/hooks/hooks.ts - - src/hooks/index.ts - - src/hooks/types.ts - - src/index.ts - - src/lib/base64.ts - - src/lib/config.ts - - src/lib/dlv.ts - - src/lib/encodings.ts - - src/lib/env.ts - - src/lib/event-streams.ts - - src/lib/files.ts - - src/lib/http.ts - - src/lib/is-plain-object.ts - - src/lib/logger.ts - - src/lib/matchers.ts - - src/lib/primitives.ts - - src/lib/retries.ts - - src/lib/schemas.ts - - src/lib/sdks.ts - - src/lib/security.ts - - src/lib/url.ts - - src/mcp-server/build.mts - - src/mcp-server/cli.ts - - src/mcp-server/cli/start/command.ts - - src/mcp-server/cli/start/impl.ts - - src/mcp-server/console-logger.ts - - src/mcp-server/extensions.ts - - src/mcp-server/mcp-server.ts - - src/mcp-server/prompts.ts - - src/mcp-server/resources.ts - - src/mcp-server/scopes.ts - - src/mcp-server/server.ts - - src/mcp-server/shared.ts - - src/mcp-server/tools.ts - - src/mcp-server/tools/analyticsGetUsage.ts - - src/mcp-server/tools/call.ts - - src/mcp-server/tools/datasetsCreateEntry.ts - - src/mcp-server/tools/datasetsDeleteEntry.ts - - src/mcp-server/tools/datasetsEntriesUpdate.ts - - src/mcp-server/tools/datasetsGetEntry.ts - - src/mcp-server/tools/datasetsListEntries.ts - - src/mcp-server/tools/datasetsQueryEntries.ts - - src/mcp-server/tools/embeddingsCreate.ts - - src/mcp-server/tools/functionsCall.ts - - src/mcp-server/tools/functionsCallRevision.ts - - src/mcp-server/tools/functionsCreate.ts - - src/mcp-server/tools/functionsDelete.ts - - src/mcp-server/tools/functionsGet.ts - - src/mcp-server/tools/functionsGetByName.ts - - src/mcp-server/tools/functionsGetByRevision.ts - - src/mcp-server/tools/functionsList.ts - - src/mcp-server/tools/functionsRevisionsList.ts - - src/mcp-server/tools/functionsStream.ts - - src/mcp-server/tools/functionsStreamRevision.ts - - src/mcp-server/tools/functionsUpdate.ts - - src/mcp-server/tools/knowledgeAdd.ts - - src/mcp-server/tools/knowledgeCreate.ts - - src/mcp-server/tools/knowledgeDelete.ts - - src/mcp-server/tools/knowledgeDeleteDocuments.ts - - src/mcp-server/tools/knowledgeDeleteFile.ts - - src/mcp-server/tools/knowledgeGet.ts - - src/mcp-server/tools/knowledgeGetByName.ts - - src/mcp-server/tools/knowledgeGetFileDownloadUrl.ts - - src/mcp-server/tools/knowledgeGetUploadUrl.ts - - src/mcp-server/tools/knowledgeList.ts - - src/mcp-server/tools/knowledgeListFiles.ts - - src/mcp-server/tools/knowledgeQuery.ts - - src/mcp-server/tools/knowledgeRegisterFileUpload.ts - - src/mcp-server/tools/languageModelsDeleteCustom.ts - - src/mcp-server/tools/languageModelsGetCustom.ts - - src/mcp-server/tools/languageModelsGetCustomByName.ts - - src/mcp-server/tools/languageModelsList.ts - - src/mcp-server/tools/languageModelsListCustom.ts - - src/mcp-server/tools/languageModelsRegisterCustom.ts - - src/mcp-server/tools/languageModelsUpdateCustom.ts - - src/mcp-server/tools/modelsCreateModelAliasModelsAliasesPost.ts - - src/mcp-server/tools/modelsDeleteModelAliasModelsAliasesAliasIdDelete.ts - - src/mcp-server/tools/modelsGetModelAliasByNameModelsAliasesByNameNameGet.ts - - src/mcp-server/tools/modelsGetModelAliasModelsAliasesAliasIdGet.ts - - src/mcp-server/tools/modelsListModelAliasesModelsAliasesGet.ts - - src/mcp-server/tools/modelsUpdateModelAliasModelsAliasesAliasIdPatch.ts - - src/mcp-server/tools/openaiCreateChatCompletion.ts - - src/mcp-server/tools/rerankListRerankModelsRerankModelsGet.ts - - src/mcp-server/tools/rerankRerankDocumentsRerankPost.ts - - src/mcp-server/tools/spanMetricsCreateMetric.ts - - src/mcp-server/tools/spanMetricsDelete.ts - - src/mcp-server/tools/spanMetricsGet.ts - - src/mcp-server/tools/spanMetricsList.ts - - src/mcp-server/tools/spanMetricsUpdateMetric.ts - - src/mcp-server/tools/spansCreate.ts - - src/mcp-server/tools/spansDelete.ts - - src/mcp-server/tools/spansGet.ts - - src/mcp-server/tools/spansSaveExamples.ts - - src/mcp-server/tools/spansUpdate.ts - - src/mcp-server/tools/stream.ts - - src/mcp-server/tools/tracesGet.ts - - src/mcp-server/tools/tracesList.ts - - src/models/addrequest.ts - - src/models/annotation.ts - - src/models/annotationurlcitation.ts - - src/models/appapipublicv2functioncallcallfunctionrequest.ts - - src/models/appapipublicv2functioncallcallfunctionresponse.ts - - src/models/appapipublicv2functionscallfunctionrequest.ts - - src/models/appapipublicv2functionscallfunctionresponse.ts - - src/models/audio.ts - - src/models/chatcompletion.ts - - src/models/chatcompletionallowedtoolchoiceparam.ts - - src/models/chatcompletionallowedtoolsparam.ts - - src/models/chatcompletionassistantmessageparam.ts - - src/models/chatcompletionaudio.ts - - src/models/chatcompletionaudioparam.ts - - src/models/chatcompletioncontentpartimageparam.ts - - src/models/chatcompletioncontentpartinputaudioparam.ts - - src/models/chatcompletioncontentpartrefusalparam.ts - - src/models/chatcompletioncontentparttextparam.ts - - src/models/chatcompletioncustomtoolparam.ts - - src/models/chatcompletiondevelopermessageparam.ts - - src/models/chatcompletionfunctioncalloptionparam.ts - - src/models/chatcompletionfunctionmessageparam.ts - - src/models/chatcompletionfunctiontoolparam.ts - - src/models/chatcompletionmessage.ts - - src/models/chatcompletionmessagecustomtoolcall.ts - - src/models/chatcompletionmessagecustomtoolcallparam.ts - - src/models/chatcompletionmessagefunctiontoolcall.ts - - src/models/chatcompletionmessagefunctiontoolcallparam.ts - - src/models/chatcompletionnamedtoolchoicecustomparam.ts - - src/models/chatcompletionnamedtoolchoiceparam.ts - - src/models/chatcompletionnonstreaming.ts - - src/models/chatcompletionpredictioncontentparam.ts - - src/models/chatcompletionstreaming.ts - - src/models/chatcompletionstreamoptionsparam.ts - - src/models/chatcompletionsystemmessageparam.ts - - src/models/chatcompletiontokenlogprob.ts - - src/models/chatcompletiontoolmessageparam.ts - - src/models/chatcompletionusermessageparam.ts - - src/models/choice.ts - - src/models/choicelogprobs.ts - - src/models/completiontokensdetails.ts - - src/models/completionusage.ts - - src/models/createdatasetentryrequest.ts - - src/models/createdatasetentryresponse.ts - - src/models/createembeddingrequest.ts - - src/models/createembeddingresponse.ts - - src/models/createfunctionrequest.ts - - src/models/createfunctionresponse.ts - - src/models/createknowledgebaserequest.ts - - src/models/createknowledgebaseresponse.ts - - src/models/createmodelaliasrequest.ts - - src/models/createmodelaliasresponse.ts - - src/models/createspanmetricrequest.ts - - src/models/createspanmetricresponse.ts - - src/models/createspanrequest.ts - - src/models/createspanresponse.ts - - src/models/customformatgrammar.ts - - src/models/customformatgrammargrammar.ts - - src/models/customformattext.ts - - src/models/customoutput.ts - - src/models/deleteknowledgebaserequest.ts - - src/models/deleteknowledgebaseresponse.ts - - src/models/errors/apierror.ts - - src/models/errors/badrequesterror.ts - - src/models/errors/conflicterror.ts - - src/models/errors/error.ts - - src/models/errors/httpclienterrors.ts - - src/models/errors/index.ts - - src/models/errors/notfounderror.ts - - src/models/errors/oppererror.ts - - src/models/errors/requestvalidationerror.ts - - src/models/errors/responsevalidationerror.ts - - src/models/errors/sdkvalidationerror.ts - - src/models/errors/unauthorizederror.ts - - src/models/example.ts - - src/models/examplein.ts - - src/models/file.ts - - src/models/filedownloadurlresponse.ts - - src/models/filefile.ts - - src/models/filter.ts - - src/models/functioncallconfigurationinput.ts - - src/models/functioncallconfigurationoutput.ts - - src/models/functioncallinput.ts - - src/models/functioncalloutput.ts - - src/models/functiondefinition.ts - - src/models/functionoutput.ts - - src/models/getcustommodelresponse.ts - - src/models/getdatasetentriesresponse.ts - - src/models/getdatasetentryresponse.ts - - src/models/getfunctionresponse.ts - - src/models/getknowledgebaseresponse.ts - - src/models/getmodelaliasresponse.ts - - src/models/getspanmetricresponse.ts - - src/models/getspanresponse.ts - - src/models/gettraceresponse.ts - - src/models/getuploadurlresponse.ts - - src/models/getusageresultitem.ts - - src/models/granularity.ts - - src/models/imageurl.ts - - src/models/index.ts - - src/models/inputaudio.ts - - src/models/jsonschema.ts - - src/models/listcustommodelsresponseitem.ts - - src/models/listfilesresponse.ts - - src/models/listfunctionrevisionresponse.ts - - src/models/listfunctionsresponseitem.ts - - src/models/listknowledgebasesresponse.ts - - src/models/listlanguagemodelsresponse.ts - - src/models/listmodelaliasesresponseitem.ts - - src/models/listrerankmodelsresponse.ts - - src/models/listspanmetricsresponse.ts - - src/models/listtracesresponse.ts - - src/models/meta.ts - - src/models/model.ts - - src/models/op.ts - - src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts - - src/models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.ts - - src/models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.ts - - src/models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.ts - - src/models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.ts - - src/models/openaitypeschatcompletioncreateparamsfunction.ts - - src/models/operations/addknowledgeknowledgebaseidaddpost.ts - - src/models/operations/callfunctionfunctionsfunctionidcallpost.ts - - src/models/operations/callfunctionrevisionfunctionsfunctionidcallrevisionidpost.ts - - src/models/operations/chatcompletionsopenaichatcompletionspost.ts - - src/models/operations/createdatasetentrydatasetsdatasetidpost.ts - - src/models/operations/createmetricspansspanidmetricspost.ts - - src/models/operations/deletecustommodelmodelscustommodeliddelete.ts - - src/models/operations/deletedatasetentrydatasetsdatasetidentriesentryiddelete.ts - - src/models/operations/deletedocumentsknowledgeknowledgebaseidquerydelete.ts - - src/models/operations/deletefilefromknowledgebaseknowledgeknowledgebaseidfilesfileiddelete.ts - - src/models/operations/deletefunctionfunctionsfunctioniddelete.ts - - src/models/operations/deleteknowledgebaseknowledgeknowledgebaseiddelete.ts - - src/models/operations/deletemetricspansspanidmetricsmetriciddelete.ts - - src/models/operations/deletemodelaliasmodelsaliasesaliasiddelete.ts - - src/models/operations/deletespanspansspaniddelete.ts - - src/models/operations/functionstreamcallstreampost.ts - - src/models/operations/getcustommodelbynamemodelscustombynamenameget.ts - - src/models/operations/getcustommodelmodelscustommodelidget.ts - - src/models/operations/getdatasetentrydatasetsdatasetidentriesentryidget.ts - - src/models/operations/getfiledownloadurlknowledgeknowledgebaseidfilesfileiddownloadurlget.ts - - src/models/operations/getfunctionbynamefunctionsbynamenameget.ts - - src/models/operations/getfunctionbyrevisionfunctionsfunctionidrevisionsrevisionidget.ts - - src/models/operations/getfunctionfunctionsfunctionidget.ts - - src/models/operations/getknowledgebasebynameknowledgebynameknowledgebasenameget.ts - - src/models/operations/getknowledgebaseknowledgeknowledgebaseidget.ts - - src/models/operations/getmetricspansspanidmetricsmetricidget.ts - - src/models/operations/getmodelaliasbynamemodelsaliasesbynamenameget.ts - - src/models/operations/getmodelaliasmodelsaliasesaliasidget.ts - - src/models/operations/getspanspansspanidget.ts - - src/models/operations/gettracetracestraceidget.ts - - src/models/operations/getuploadurlknowledgeknowledgebaseiduploadurlget.ts - - src/models/operations/index.ts - - src/models/operations/listcustommodelsmodelscustomget.ts - - src/models/operations/listdatasetentriesdatasetsdatasetidentriesget.ts - - src/models/operations/listfilesknowledgeknowledgebaseidfilesget.ts - - src/models/operations/listfunctionrevisionsfunctionsfunctionidrevisionsget.ts - - src/models/operations/listfunctionsfunctionsget.ts - - src/models/operations/listknowledgebasesknowledgeget.ts - - src/models/operations/listmetricsspansspanidmetricsget.ts - - src/models/operations/listmodelaliasesmodelsaliasesget.ts - - src/models/operations/listmodelsmodelsget.ts - - src/models/operations/listtracestracesget.ts - - src/models/operations/querydatasetentriesdatasetsdatasetidentriesquerypost.ts - - src/models/operations/queryknowledgebaseknowledgeknowledgebaseidquerypost.ts - - src/models/operations/registerfileuploadknowledgeknowledgebaseidregisterfilepost.ts - - src/models/operations/savetodatasetspansspanidsaveexamplespost.ts - - src/models/operations/streamfunctionfunctionsfunctionidcallstreampost.ts - - src/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpost.ts - - src/models/operations/updatecustommodelmodelscustommodelidpatch.ts - - src/models/operations/updatedatasetentrydatasetsdatasetidentriesentryidpatch.ts - - src/models/operations/updatefunctionfunctionsfunctionidpatch.ts - - src/models/operations/updatemetricspansspanidmetricsmetricidpatch.ts - - src/models/operations/updatemodelaliasmodelsaliasesaliasidpatch.ts - - src/models/operations/updatespanspansspanidpatch.ts - - src/models/operations/usageanalyticsusageget.ts - - src/models/paginatedresponsegetdatasetentriesresponse.ts - - src/models/paginatedresponselistcustommodelsresponseitem.ts - - src/models/paginatedresponselistfilesresponse.ts - - src/models/paginatedresponselistfunctionrevisionresponse.ts - - src/models/paginatedresponselistfunctionsresponseitem.ts - - src/models/paginatedresponselistknowledgebasesresponse.ts - - src/models/paginatedresponselistlanguagemodelsresponse.ts - - src/models/paginatedresponselistmodelaliasesresponseitem.ts - - src/models/paginatedresponselistrerankmodelsresponse.ts - - src/models/paginatedresponselistspanmetricsresponse.ts - - src/models/paginatedresponselisttracesresponse.ts - - src/models/prompttokensdetails.ts - - src/models/querydatasetentriesresponse.ts - - src/models/queryknowledgebaserequest.ts - - src/models/queryknowledgebaseresponse.ts - - src/models/registercustommodelrequest.ts - - src/models/registercustommodelresponse.ts - - src/models/registerfileuploadrequest.ts - - src/models/registerfileuploadresponse.ts - - src/models/rerankcost.ts - - src/models/rerankdocument.ts - - src/models/rerankrequestmodel.ts - - src/models/rerankresponsemodel.ts - - src/models/rerankresult.ts - - src/models/responseformatjsonobject.ts - - src/models/responseformatjsonschema.ts - - src/models/responseformattext.ts - - src/models/savetodatasetresponse.ts - - src/models/security.ts - - src/models/spandata.ts - - src/models/spanmetricdata.ts - - src/models/spanschema.ts - - src/models/textprocessingconfiguration.ts - - src/models/tmodel.ts - - src/models/toplogprob.ts - - src/models/updatecustommodelrequest.ts - - src/models/updatecustommodelresponse.ts - - src/models/updatedatasetentryrequest.ts - - src/models/updatedatasetentryresponse.ts - - src/models/updatefunctionrequest.ts - - src/models/updatefunctionresponse.ts - - src/models/updatemodelaliasrequest.ts - - src/models/updatemodelaliasresponse.ts - - src/models/updatespanmetricrequest.ts - - src/models/updatespanmetricresponse.ts - - src/models/updatespanrequest.ts - - src/models/updatespanresponse.ts - - src/models/websearchoptions.ts - - src/models/websearchoptionsuserlocation.ts - - src/models/websearchoptionsuserlocationapproximate.ts - - src/sdk/analytics.ts - - src/sdk/datasets.ts - - src/sdk/embeddings.ts - - src/sdk/entries.ts - - src/sdk/functions.ts - - src/sdk/index.ts - - src/sdk/knowledge.ts - - src/sdk/languagemodels.ts - - src/sdk/models.ts - - src/sdk/openai.ts - - src/sdk/rerank.ts - - src/sdk/revisions.ts - - src/sdk/sdk.ts - - src/sdk/spanmetrics.ts - - src/sdk/spans.ts - - src/sdk/traces.ts - - src/types/async.ts - - src/types/blobs.ts - - src/types/constdatetime.ts - - src/types/enums.ts - - src/types/fp.ts - - src/types/index.ts - - src/types/operations.ts - - src/types/rfcdate.ts - - src/types/streams.ts - - src/types/unrecognized.ts - - tsconfig.json + unions: 2.86.3 + uploadStreams: 0.1.0 +trackedFiles: + .devcontainer/devcontainer.json: + id: b34062a34eb1 + last_write_checksum: sha1:d0b15193202c961e7d1875864ddb15f9d17c84dd + pristine_git_object: 4d560dd5f40afaf10d96eb75b1f02cd48bbd640c + .devcontainer/setup.sh: + id: 5f1dfbfeb8eb + last_write_checksum: sha1:db33479463a5c61f66fbd68c574343fd7db4af0d + pristine_git_object: c09843a84e64a8e3e42f4bb803aa75a18350dcb4 + .gitattributes: + id: 24139dae6567 + last_write_checksum: sha1:26d16d8297b104945139da8c25bd38feeaad3e25 + pristine_git_object: 113eead5093c17d43a46159132885318f281a68a + .npmignore: + id: aa70c1f807c3 + last_write_checksum: sha1:3d5eb92f81539175db1ff0280e0aefbdd701f200 + pristine_git_object: cf98a6bf092538eb10ff0edc915102682ce9a6e6 + FUNCTIONS.md: + id: 21b9df02aaeb + last_write_checksum: sha1:164f4b9e340e0bed87a735067ff9ee6325b20dbe + pristine_git_object: ec252ce92cad20c40514fcf9c664bf29de365020 + RUNTIMES.md: + id: 620c490847b6 + last_write_checksum: sha1:e45b854f02c357cbcfdb8c3663000e8339e16505 + pristine_git_object: 27731c3b5ace66bedc454ed5acbe15075aacd3dc + USAGE.md: + id: 3aed33ce6e6f + last_write_checksum: sha1:9a0b86a2d6b6e2721cb49e46501fb7d19f44293b + pristine_git_object: e665f3ded13436e50db4b8db1dc7daf548be66d6 + docs/lib/utils/retryconfig.md: + id: 0ce9707cb848 + last_write_checksum: sha1:bc4454e196fcd219f5a78da690375a884f5ed07b + pristine_git_object: 08f95f4552349360b2c0b01802aa71ec3a55d2c2 + docs/models/addrequest.md: + id: 3e93941a80eb + last_write_checksum: sha1:682dbd7d311d48d0ddc9bb6a16f29c81b2025dc4 + pristine_git_object: 1e607113247f171cb6be61311d2b5fdd1d7aae5c + docs/models/annotation.md: + id: faab6b24438b + last_write_checksum: sha1:f6067bc0c0fc2b250b442158e69cb3242556d1cb + pristine_git_object: 07491cca1ab4bfca5e617bfb9f96c660ec77310e + docs/models/annotationurlcitation.md: + id: 3a73378fa514 + last_write_checksum: sha1:4f40d5985f539b0ecedcc5c59d1929a5a229830c + pristine_git_object: 30c80ed6f9deb72d25ba1914aa65970a1e8e8750 + docs/models/appapipublicv2functioncallcallfunctionrequest.md: + id: 9cf1fdcedc3a + last_write_checksum: sha1:ff18b7f39d61ab6f8e0983fed58249a369f440ce + pristine_git_object: 01d2aa9691c85c520a676d2b65485be4d79cdbd1 + docs/models/appapipublicv2functioncallcallfunctionresponse.md: + id: 428a6cce6b14 + last_write_checksum: sha1:a51c7a09d03d54f4e4bf299fc1290c01873882d2 + pristine_git_object: 6878c439a8ca7ded8093f1c416005ed1b86dac36 + docs/models/appapipublicv2functionscallfunctionrequest.md: + id: e9f082ece3bc + last_write_checksum: sha1:abb193368ce7bef80a85a16a6173aa9b5b25966b + pristine_git_object: 09740231dbb24d729909e9495389e6b579d469f1 + docs/models/appapipublicv2functionscallfunctionresponse.md: + id: 062b4a4a392e + last_write_checksum: sha1:62bfae090d4e163dcecf416d30650058f9327a3c + pristine_git_object: 67b1ba857adfe53c2753c822cffe894667c237de + docs/models/audio.md: + id: 197ec2b1424a + last_write_checksum: sha1:00b68653717a326ce7f94d71265af195b5067474 + pristine_git_object: 465bfaa884959555796762faab0d8a79b1e64282 + docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.md: + id: 6f240addceef + last_write_checksum: sha1:e3b1fdd0177001df3145699c845854da85c04efe + pristine_git_object: 7365dc36e3ade4f5b5e08cda54495b43cbb599d6 + docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpostfile.md: + id: 89cc22c950cb + last_write_checksum: sha1:6917e6b053b1d43dd2392837acd793b3d65a36ea + pristine_git_object: 61f52a3a329d9de087d65cff600d713d7c00f11f + docs/models/chatcompletion.md: + id: 7087ed1b2694 + last_write_checksum: sha1:bb6e9c542aa316ae5a0214b3651c2675025c8300 + pristine_git_object: ffe3c96425fc14559756ce39a9646b7e059ef2fc + docs/models/chatcompletionallowedtoolchoiceparam.md: + id: e3fed3e89033 + last_write_checksum: sha1:2afd2d17b64c6a84d63d9f771d8b20c503c0b9a0 + pristine_git_object: 5d911139eff9b1417a52df9c26d21be935a3b29f + docs/models/chatcompletionallowedtoolsparam.md: + id: 9df48f583aea + last_write_checksum: sha1:b15907a373e4ebbf35d0a888e3cf404274c9a75b + pristine_git_object: e1e8e628e992b1eb54f4a375f2176d08a5702e58 + docs/models/chatcompletionassistantmessageparam.md: + id: 98527d311b33 + last_write_checksum: sha1:39db0505a978f02b37e04e710a678118a42712bc + pristine_git_object: 45f1715376092c5488ffbcb1311e986b758b0660 + docs/models/chatcompletionassistantmessageparamcontent1.md: + id: a9a9724a28b0 + last_write_checksum: sha1:cd5d0a552a6819600b3ce68159009f69331f8837 + pristine_git_object: a8696fc486aab49ca35b62d3247f74c7e0bfe7e3 + docs/models/chatcompletionassistantmessageparamcontent2.md: + id: 9f19cabf905c + last_write_checksum: sha1:d519ec79a0e6d22dfd1100c9116172aec0c6c2d3 + pristine_git_object: 385d1594bb7b19b2878a401051f9d407c4013bc3 + docs/models/chatcompletionassistantmessageparamtoolcall.md: + id: 0a94ebcd8495 + last_write_checksum: sha1:ec32a0b6e0fd178db7f47f0dee9206c12167bf9c + pristine_git_object: 712bdabb4f1996c0b61791e4bdbd69c7bde263d4 + docs/models/chatcompletionaudio.md: + id: 5db9f3e23630 + last_write_checksum: sha1:12757b3264417681c3ea95cd7d1017319006a704 + pristine_git_object: dd83282a080351502bd769602915701cd6221c64 + docs/models/chatcompletionaudioparam.md: + id: b86bb9a2ab41 + last_write_checksum: sha1:41a0968439c843b0b403325b8df13bb5c5cf16ba + pristine_git_object: 1162a5ceee2d3ebb80c88df075b85ffe52193d14 + docs/models/chatcompletionaudioparamformat.md: + id: 112ed65cd0ba + last_write_checksum: sha1:f7af83fcea963b93079b9474bf275d2f42a76246 + pristine_git_object: e5feef365c2b10965c9a605c309e1dfc2288b977 + docs/models/chatcompletioncontentpartimageparam.md: + id: 69396d282df3 + last_write_checksum: sha1:a729413664105791138466035ae791492571897d + pristine_git_object: 200eb330a8696c841408e0e2ee07b22134c62395 + docs/models/chatcompletioncontentpartinputaudioparam.md: + id: dbf1547a27c9 + last_write_checksum: sha1:99a9c691ad9f5fdf94161d515ba7f151653d817a + pristine_git_object: ef4c72d8d86371f5ee5a2c6f72e182ed4cd61b0d + docs/models/chatcompletioncontentpartrefusalparam.md: + id: 9ffb19aaf30b + last_write_checksum: sha1:59bc67f2b0965324487948af690ea3b34a5b1355 + pristine_git_object: 069a7cab0f60d4a163f63c186c18bc664c45d87b + docs/models/chatcompletioncontentparttextparam.md: + id: ef2b6560db6d + last_write_checksum: sha1:02967c67627cb259b5a78f3e8474c2f685467454 + pristine_git_object: 28359d7b11786056bebf13dbad6b56a0f2405fb9 + docs/models/chatcompletioncustomtoolparam.md: + id: 0c02c2d18d4f + last_write_checksum: sha1:c4e8e34806cfb50b9dfbacfb9af9806c94301e04 + pristine_git_object: c3c1fa4d00c1d6194f03f6e3b79458a508083f91 + docs/models/chatcompletiondevelopermessageparam.md: + id: 2360c0c7af35 + last_write_checksum: sha1:b93c88d0039e802fa2c763214305e4fbe31a708e + pristine_git_object: 068e2221ad77f4a5a1774081dbd1dc7ca5cd4905 + docs/models/chatcompletiondevelopermessageparamcontent.md: + id: ea72c7b474cf + last_write_checksum: sha1:e1ac690f986614df127146bd39537c62e071b2aa + pristine_git_object: f57a056c5b26a97f5f519cf4e65e9e8c195909e7 + docs/models/chatcompletionfunctioncalloptionparam.md: + id: 8b655d293afc + last_write_checksum: sha1:77714372348b224ee3a473747d55ece271b50e05 + pristine_git_object: b49b38a070d1a16968507cc6873f9691cf1b9ead + docs/models/chatcompletionfunctionmessageparam.md: + id: 9544be788d4f + last_write_checksum: sha1:4d47d8c917882c2e771dd72a887604cbd5aa46d7 + pristine_git_object: ec7e5aa64f573e484d312ce38f2a2be18b63a7fe + docs/models/chatcompletionfunctiontoolparam.md: + id: f8029f20961e + last_write_checksum: sha1:afc8b3a55834b4a557af8b50cd97e7a19d83e129 + pristine_git_object: ad9367cf48ab4abf12c03a546580577ee7e478c1 + docs/models/chatcompletionmessage.md: + id: 980f9e8f8e17 + last_write_checksum: sha1:6c13b00396cd033cea5a2d3cc1996e889b1ea818 + pristine_git_object: 6d214ef0ba34cdb9d6d58c5ac2ccca2db30ae69e + docs/models/chatcompletionmessagecustomtoolcall.md: + id: ace36cbf55c0 + last_write_checksum: sha1:2b5dc0afadeb2ba9e50c3b206cecba1819f3220d + pristine_git_object: 0e819d2966ca902a25ca024d7157eb3bbb2967e3 + docs/models/chatcompletionmessagecustomtoolcallparam.md: + id: 195cdbd15b2b + last_write_checksum: sha1:70aa05ce2e0df50924b08ca65ff1dfab557b31dc + pristine_git_object: 32240fc34c0355fbe43cd7034aac00e4802df5d6 + docs/models/chatcompletionmessagefunctiontoolcall.md: + id: 84d952e2b078 + last_write_checksum: sha1:fab09ad61ca6ab8b9e28cfa24f474a0f11001cd1 + pristine_git_object: db81f23d3518f19e0d5c87e6aefb25ee8bb262af + docs/models/chatcompletionmessagefunctiontoolcallparam.md: + id: df5941860ac6 + last_write_checksum: sha1:ee2ef739051c56afeff00ee6f6c60d5bb466541f + pristine_git_object: 5aa50190f9e8586e682bb94f628eaffff6749fc5 + docs/models/chatcompletionmessagetoolcall.md: + id: 1f89cd3acd26 + last_write_checksum: sha1:67208ed2deeaeffa17195a16e055fb0775d66110 + pristine_git_object: c28f3179f096db134a8ec4bb436b233350f57dad + docs/models/chatcompletionnamedtoolchoicecustomparam.md: + id: 84531c282b97 + last_write_checksum: sha1:6e928bfafd87402a3e97880d04fca4f4bcb83351 + pristine_git_object: c3877acc7b44f58b0990e86fb58c4a32abcc1113 + docs/models/chatcompletionnamedtoolchoiceparam.md: + id: 549a2b573300 + last_write_checksum: sha1:9f5932d83fb5b59746476f1737a3825153f52408 + pristine_git_object: d98357fa039ef976b6a2cd6b009c8b320bce622c + docs/models/chatcompletionnonstreaming.md: + id: 624dd746fb75 + last_write_checksum: sha1:c1ac084a2f95b02ce98c62358ab6d056ef710eb6 + pristine_git_object: f9909b6fd0576ebb4d3fef8f743c5a389d57ced0 + docs/models/chatcompletionnonstreamingfunctioncallenum.md: + id: bbf7f75f7499 + last_write_checksum: sha1:0e474645fd98741c94aed0626df669189424a252 + pristine_git_object: b9a75f5f375726bccff0157ceb8ddc7aa696667b + docs/models/chatcompletionnonstreamingfunctioncallunion.md: + id: 9d0dff533aa5 + last_write_checksum: sha1:ab24e372dc71f8b24fdef7818d60ddfbbba3abc0 + pristine_git_object: 49baa99815b15713b6d700092acaeadc60c9a4a7 + docs/models/chatcompletionnonstreamingmessage.md: + id: 4be98cee55da + last_write_checksum: sha1:6c11a5b53e950206e5b0a2418462fcff018d4df3 + pristine_git_object: 39d234b30e0ccd608053d1d6c9a47ed4f1ebb807 + docs/models/chatcompletionnonstreamingmodality.md: + id: 5a63d9f4a4b6 + last_write_checksum: sha1:180739d6fbe0ff4e068042bfc5b4a854fe3a111e + pristine_git_object: fca507258a5d733ddb7eda66a8efa85dce0ec15e + docs/models/chatcompletionnonstreamingreasoningeffort.md: + id: aecbe7b4f62e + last_write_checksum: sha1:ad62e90bebc30a51ac6477e2ca54d33b136ae511 + pristine_git_object: 96506ba80abc6d5cc46cd0880f59cfea157d62af + docs/models/chatcompletionnonstreamingresponseformat.md: + id: 2a745e49bd9b + last_write_checksum: sha1:801621e2f36749a46859d7a6d9fd28054447a48f + pristine_git_object: 3bf9c4cc4f161040e021fc6b800d6b08765514b2 + docs/models/chatcompletionnonstreamingservicetier.md: + id: f5b5e8cb6dda + last_write_checksum: sha1:28e540c8446af6aa8db27d4d5330afda63129633 + pristine_git_object: c5ff41f6ff49bb286d1e01eab2d4642e3794e263 + docs/models/chatcompletionnonstreamingstop.md: + id: a40b074646d9 + last_write_checksum: sha1:15bcec6fdbee84c17470c211720f07cca112690b + pristine_git_object: ca9940caf37e537ca75e57b30dfccc397ff44e95 + docs/models/chatcompletionnonstreamingtool.md: + id: a9e049a549d1 + last_write_checksum: sha1:24c692cf52b40e6bf976462f2fdd808bd4fd1545 + pristine_git_object: efea72226c3c414b4b6c7b4cdc042fe37a68f7ab + docs/models/chatcompletionnonstreamingtoolchoiceenum.md: + id: 589fc87db1fa + last_write_checksum: sha1:28f1fd581824f6d249d6fa3bc2fff13ac8d453f3 + pristine_git_object: b673c84491b7ebb9ec38d2633ab5e2fcf0576466 + docs/models/chatcompletionnonstreamingtoolchoiceunion.md: + id: b07a36649c9a + last_write_checksum: sha1:712d16557691e5bddc6e2494961e4e342e7df508 + pristine_git_object: be9ece8d954d1fd86f56341465b05248d5849f7c + docs/models/chatcompletionnonstreamingverbosity.md: + id: a3004730f610 + last_write_checksum: sha1:7a05c29ba266e0106a3f599e1706dee77372e3af + pristine_git_object: f1c50cc34a73619f57664167f07a711cf7878403 + docs/models/chatcompletionpredictioncontentparam.md: + id: 7f0b8f8ef9d1 + last_write_checksum: sha1:fe1b53931b6f2ba8f57fc096df092754d11944c6 + pristine_git_object: 3ff3198909280f263ae193e71e33cd302b7b79ba + docs/models/chatcompletionpredictioncontentparamcontent.md: + id: 30af0a556b3b + last_write_checksum: sha1:b4374bdefe0ca5f7968f437cea6a5ccc7b024696 + pristine_git_object: 83d946bfce6af882782734b11e383096420c370b + docs/models/chatcompletionservicetier.md: + id: 3f8a04996669 + last_write_checksum: sha1:9ea7bbdd7490ff2b461fdcd906fd7b92eb78d0c4 + pristine_git_object: 9448b553b6f343bb1793b9b42df09ae979f5fe9c + docs/models/chatcompletionstreaming.md: + id: ceff166241d9 + last_write_checksum: sha1:26305607feb9b265f4678fc53886acf066cab7c5 + pristine_git_object: 0227faf57da5f61017a4d221d891f66d9f7af0c8 + docs/models/chatcompletionstreamingfunctioncallenum.md: + id: e39de79e4953 + last_write_checksum: sha1:ae16805ea428636bc6e66ebc7cb192106aeb015a + pristine_git_object: bd50d2c8ccbe2328888e889957d2edc2c238de69 + docs/models/chatcompletionstreamingfunctioncallunion.md: + id: 50f09e627fd7 + last_write_checksum: sha1:f715d53f72eb9a35d9d0bbaa0a61efcd10586748 + pristine_git_object: 64187af7e968e02059782fa288c7f48db320406a + docs/models/chatcompletionstreamingmessage.md: + id: c2a167444a03 + last_write_checksum: sha1:8ea7be8d1bfaf4219faa389d989e8fe5be0b56dd + pristine_git_object: 091aba96cd6fef5bd8b5c9ef5444607b0cab74db + docs/models/chatcompletionstreamingmodality.md: + id: 25a54c2e4907 + last_write_checksum: sha1:420f15feae4378d19458b9894e5459272120ea2b + pristine_git_object: 774defab741421512df5ef8f9e61651d5316ff13 + docs/models/chatcompletionstreamingreasoningeffort.md: + id: 5c0a27f2ce8f + last_write_checksum: sha1:47848ec59be1ada7b387181a2c9048c7ccede5b0 + pristine_git_object: d913d8bc75bb7916b539db763f5c04b976d1208a + docs/models/chatcompletionstreamingresponseformat.md: + id: 3a17547cbb6d + last_write_checksum: sha1:69abdb4245f8bbe9d40b330d4214479f0e5e318c + pristine_git_object: 9ca4cdbc6c6220dfd8de5995a162f02157e1d3d9 + docs/models/chatcompletionstreamingservicetier.md: + id: "684929270002" + last_write_checksum: sha1:c219b4b85f0f839086143a8b7fdac3afa6138188 + pristine_git_object: 5dd522b9f308964321709bc51f8b276bdf58bf1f + docs/models/chatcompletionstreamingstop.md: + id: 30723fe7f31a + last_write_checksum: sha1:244e070abb31e317c19fe242e14100d86fc74ffa + pristine_git_object: 6453241a8f968976647dd5b5302d460bab0fc758 + docs/models/chatcompletionstreamingtool.md: + id: dd2f0cac0636 + last_write_checksum: sha1:02cb7386e316e3cfeb76dfb56184c96472cb57cd + pristine_git_object: 14248c6bde01fe96c240d9bdf36212e83e77da25 + docs/models/chatcompletionstreamingtoolchoiceenum.md: + id: 38835f198f75 + last_write_checksum: sha1:714dbd8e799d1da9c824f82e2bd72e37e2e3105b + pristine_git_object: 5fee66273001ea88bb33be975edb138425f5cbf2 + docs/models/chatcompletionstreamingtoolchoiceunion.md: + id: 7118443a0338 + last_write_checksum: sha1:321fb0aebb6e4fe407fb2f57b9c201a4c7444b63 + pristine_git_object: 767f619c233bb53db496186270181ed44c7e7821 + docs/models/chatcompletionstreamingverbosity.md: + id: a766e831c1e3 + last_write_checksum: sha1:ca91b6ca76b98cf3c63d869429da76455aea7361 + pristine_git_object: bda551b2643935f44876a6201044bb5aaa716e44 + docs/models/chatcompletionstreamoptionsparam.md: + id: c1d2378c8a7e + last_write_checksum: sha1:f6eaf0e615c27eadae1986fecaf1e7b75cea842a + pristine_git_object: 38ccec431b3d951c81219b9926c6e013b07b7c81 + docs/models/chatcompletionsystemmessageparam.md: + id: 814d93e2fd52 + last_write_checksum: sha1:6c2243072a3887ec0d30a5a8e2278891e07fbb0c + pristine_git_object: d0e43a17cf361e61132dfda9eff32d498702dbd5 + docs/models/chatcompletionsystemmessageparamcontent.md: + id: 6492cc968c4e + last_write_checksum: sha1:7045bfe1c255df6348d6b6146820e7de251414f9 + pristine_git_object: 5d3c8213340225928dcaffe0d1aed26c3452baf3 + docs/models/chatcompletiontokenlogprob.md: + id: f5d381ebf0cd + last_write_checksum: sha1:38445fd0452ea9df37c6b5982764e2ed6481f2f3 + pristine_git_object: f4a7af21fd047faadf0ed3f158adb3dc59f91339 + docs/models/chatcompletiontoolmessageparam.md: + id: 5ec43d87c412 + last_write_checksum: sha1:b1cfb511cc8a731790043d4f7c263a19c0002f1c + pristine_git_object: f3658553a8ce4852b2bc2a3d93c01d3101a3b143 + docs/models/chatcompletiontoolmessageparamcontent.md: + id: edc0a418f2a0 + last_write_checksum: sha1:bdc085f68e11a89b7402102f564d281a4902f2d5 + pristine_git_object: a83217b9f4043382f0616d24046962aa9e427a93 + docs/models/chatcompletionusermessageparam.md: + id: c3841976f1cd + last_write_checksum: sha1:b9387fa653cb32c35383cf58798c5bc9bea8951b + pristine_git_object: cd77728422e7231c0d280ec8a13b659842028128 + docs/models/chatcompletionusermessageparamcontent1.md: + id: 9f902bc8a6ed + last_write_checksum: sha1:11073d584839f8a14051d72eba6233bac7bfc9c4 + pristine_git_object: 847b593305f60fb6060753e6650a100066506642 + docs/models/chatcompletionusermessageparamcontent2.md: + id: ae4164efb58d + last_write_checksum: sha1:90d8f5502585f66bb8a748fe4b9f420c45efe620 + pristine_git_object: c4fecb8196a26780381df1d2bbba64308edc0051 + docs/models/choice.md: + id: 7ccf99e7bcf5 + last_write_checksum: sha1:e01523fd33cb80dd3ee013ee01ed0b7912ac9b7a + pristine_git_object: 8c3f0c55f05ac12f8f821a3606da04f3defe3cbe + docs/models/choicelogprobs.md: + id: e1ec608a588b + last_write_checksum: sha1:25deba25ac1dfd33646040730010a751897401de + pristine_git_object: 311d9d701e0886e135fce7d8d2521c5ea5a84ec2 + docs/models/completiontokensdetails.md: + id: 72beafa9a4c8 + last_write_checksum: sha1:c98d611efc94301c3f932daad2d2f6255ebbcef0 + pristine_git_object: da95ad701bfd0bd4fb3d3faf26f2fe9bf5c77ee2 + docs/models/completionusage.md: + id: 930ebf17acf4 + last_write_checksum: sha1:fc790cd5c2c3745da9ad54deada35b8cd864ee24 + pristine_git_object: 32e14a4ab846c671e3745916e7556724af1b0883 + docs/models/createdatasetentryrequest.md: + id: c134b1731b1f + last_write_checksum: sha1:1273eb6bb273946c486c956317daddef9e3d00d3 + pristine_git_object: 0ed19813bc18c4b520506e5999fc08b796f8fd56 + docs/models/createdatasetentryresponse.md: + id: 4a7cac68d1a8 + last_write_checksum: sha1:20caf67619acffe8bf9ad53b18662c27b8cb402d + pristine_git_object: a11ce844eef9a021e94be162e5454ba67253245d + docs/models/createembeddingrequest.md: + id: 99ae9a3108fb + last_write_checksum: sha1:d234380fc5dfc0f3d7165a56a6af63d16b192e5f + pristine_git_object: fe86d8c6ec7b407849afc93122baabbc7a6ed4f9 + docs/models/createembeddingresponse.md: + id: 73a3c0377574 + last_write_checksum: sha1:652ea74624c2c058df0073c366c8e4510d677d27 + pristine_git_object: 1e89ac974ad180d724a88c07954a4c07a3fdf57e + docs/models/createfunctionrequest.md: + id: 17f5e233f96e + last_write_checksum: sha1:20b2c897c188fcc7d60d95a4124ee069f9c0120b + pristine_git_object: 46ce1b5994acc5eff08f79eb537819b429861988 + docs/models/createfunctionresponse.md: + id: 4778b1e0ba22 + last_write_checksum: sha1:c63f5d0b41f2718bf02199d48ce55cffed04bebc + pristine_git_object: 2ee7fc3e240ae63010f5bf4d62adc3a1b889251d + docs/models/createknowledgebaserequest.md: + id: 38d1edfe105c + last_write_checksum: sha1:d56bf8b90f7f76dac8eee8dbbf35a1889186c007 + pristine_git_object: c2830b3912bf402bfeb8b7a1a6278fd849950ae4 + docs/models/createknowledgebaseresponse.md: + id: e138c8a4ecef + last_write_checksum: sha1:11741f84d3d0f19e5ca7ddb2d02b2e730be21c77 + pristine_git_object: df4a0a5c95dfd71bd5ef1916c5c64d993523212b + docs/models/createmodelaliasrequest.md: + id: 3ee653ad1b41 + last_write_checksum: sha1:8de70119aa83d3aac9bf1c409da7026f638e764a + pristine_git_object: d9c4f1789b67216661aa9de0901f43f543631dc8 + docs/models/createmodelaliasresponse.md: + id: 3bca5ee53860 + last_write_checksum: sha1:4db874b29693dbcbad63f035dee50a9a90b30137 + pristine_git_object: b9c618c49ceb4c7f5ec09c7a33500a866ca2fe8b + docs/models/createspanmetricrequest.md: + id: 1eac85bb4604 + last_write_checksum: sha1:4162f7ab0aaab4ced8eb8ee88ba626d97505a90d + pristine_git_object: e2b2e9b7f3e29b4c8e1277db3582888229080d0d + docs/models/createspanmetricresponse.md: + id: 65b49a9558d9 + last_write_checksum: sha1:2833732801c598639cfe7109ed5cad8b9ccc6bf4 + pristine_git_object: ef556cb372c8c8d8b7273dc17a791514860af3b6 + docs/models/createspanrequest.md: + id: d28559d1fcaf + last_write_checksum: sha1:5d54e3da533a8cbb41b48c1676cf720457e3a062 + pristine_git_object: e748ac9cecc934bb43f1630ce4a580f39c2e8f97 + docs/models/createspanresponse.md: + id: 5978894bf4a7 + last_write_checksum: sha1:42af23a06815ba14b6c18de09f305a236f1bafaf + pristine_git_object: 2f35a8af0bfd96b8f7c141298a775eb60c4b94c2 + docs/models/customformatgrammar.md: + id: 30681ed71a99 + last_write_checksum: sha1:cc92425ca869a73e384ef9fd9dd94d271e5ff9ed + pristine_git_object: 16dfeff413c5bd612246cd5a6d201a066308e1bb + docs/models/customformatgrammargrammar.md: + id: b17337b48814 + last_write_checksum: sha1:f9293e6ed8d9afe1820e99e6e0e6df4edd1e5345 + pristine_git_object: cfe38aaecbde5ff3edb86c27118d8d13186acdca + docs/models/customformattext.md: + id: 98a8bd96a4f8 + last_write_checksum: sha1:6605ccaf1be1d3852cf148aead24fd725d95741c + pristine_git_object: f9b592bde2a88ffc7f8ac2678927a9f2a9108e85 + docs/models/customoutput.md: + id: 25722fc766e6 + last_write_checksum: sha1:df170c925b4ecfd5a5be4529aa12b969094f4c85 + pristine_git_object: 461bcbe53391bab15c3c316ff3a2ddc97fd79684 + docs/models/deleteknowledgebaserequest.md: + id: b5d4f9004c57 + last_write_checksum: sha1:cabcb4f9b6d762d75c724e034241b64d770b37bc + pristine_git_object: e2d4c4ac0d71a5291ddeac9e864fbae633f1b92c + docs/models/deleteknowledgebaseresponse.md: + id: 8f3723cfeadf + last_write_checksum: sha1:7fdca670a414f48e601d37fe2a9a275439ba76da + pristine_git_object: 07f7a4aa29562eee22c02116cf2b5edcd9abf19b + docs/models/detail.md: + id: bfd4e327e742 + last_write_checksum: sha1:530f23623b35a313253293781fa505d964f443e6 + pristine_git_object: 8b4218ddb236671c0d75d05fd2c5557ad34f9775 + docs/models/errors/badrequesterror.md: + id: e455aebb4452 + last_write_checksum: sha1:956f8438a23d67729a67d939603d48b75a6edf9d + pristine_git_object: 369c062bb30efa90231b1cc56384f67baed6d978 + docs/models/errors/conflicterror.md: + id: 6603f6b5bf79 + last_write_checksum: sha1:049a5312d09c5918039e6e16aaf205fdcca1148e + pristine_git_object: b6003ea38a93c1fcaae26c56dc4ee8e83d4b5f10 + docs/models/errors/errort.md: + id: 0fc20860e35e + last_write_checksum: sha1:410314957ecc0136f2e1ddcb6283228923cc83ce + pristine_git_object: aac6c52211455d5c0415105278421b94c9f0ec74 + docs/models/errors/notfounderror.md: + id: e6e9f31b7b5e + last_write_checksum: sha1:91a76c0e2535b07dede7619a9c21014093d3d651 + pristine_git_object: 2f059e03e09c9fbd856aafa3881ce13707f42a86 + docs/models/errors/requestvalidationerror.md: + id: 285d8b8092f3 + last_write_checksum: sha1:ec8c86e90e8ffb870123a7b0fc60a481d622d572 + pristine_git_object: df192459d1895d26141657f397546fcd0dc5ea21 + docs/models/errors/unauthorizederror.md: + id: 391e1ff1a10f + last_write_checksum: sha1:73e29d02cb16f08a90cc8439bfd70cde39815811 + pristine_git_object: caaf5af5d724c0cbd0dbb35137b42e06e772ebcb + docs/models/example.md: + id: b159060b04d6 + last_write_checksum: sha1:70287a74621e6cfc9141d7c01c4ad2da7d0e5d21 + pristine_git_object: 0b84a1636e622cd25353936a36dcd146522b96db + docs/models/examplein.md: + id: d030e5625a8f + last_write_checksum: sha1:b0eb0a2fcf0cbaa964b9a50b3a1e8d6411fb813d + pristine_git_object: 3c79ccf86d49a8c6cf44fda3d5fcf7170225cf38 + docs/models/feedbackinfo.md: + id: ad9b15333cc1 + last_write_checksum: sha1:63e6bb4bf05eaf1e40fd1ac85eeef71ce049ba08 + pristine_git_object: 89c5e87d826f746e0983597761edbbdeb0c93c6d + docs/models/filedownloadurlresponse.md: + id: 97df29e75ce1 + last_write_checksum: sha1:6c1610ebc76948b578a93e796ddf8c49767a1bd5 + pristine_git_object: aacdbb9304a45a7741fb618b90e4fe925c0e97ea + docs/models/filefile.md: + id: 7bf4acd4b65b + last_write_checksum: sha1:2cb30c9cdc5cb7207bf41b9c06aa607e79c10d1f + pristine_git_object: 71ac224dd304bcb236eafa9c92fd767e6abff4eb + docs/models/filet.md: + id: a3e5d1b56bb6 + last_write_checksum: sha1:3d50897d88d33f200c469cb6b00732428504bd28 + pristine_git_object: 4cbe3e44928be759af1cf9e4b73b6c22448568d0 + docs/models/filter.md: + id: b5c476e3dfbc + last_write_checksum: sha1:f0ba09f0f4ab4c8e0eaab0e10d5201e409874bcb + pristine_git_object: a1833b53cc37f549d582190e5eba687dc4a08d36 + docs/models/finishreason.md: + id: 73315c2a39b3 + last_write_checksum: sha1:115f542f6215947ee93798ab02a73b3e07be308b + pristine_git_object: 256e4641ae22b11790a07ce16cf59af4f0b68aa8 + docs/models/format.md: + id: b5610092256d + last_write_checksum: sha1:66370b787b61084f0f39360bca27e5b5a128865d + pristine_git_object: da4a5b29a28bca8753bb8a6e18700eac57407aa6 + docs/models/functioncallconfigurationinput.md: + id: 03f6e02c39e4 + last_write_checksum: sha1:c8b9b83e7a011ec9c1d22218304e6addec109b5d + pristine_git_object: 0303c370ca80c884a7f9f93fd1428aa7f3c073ef + docs/models/functioncallconfigurationoutput.md: + id: 561cd1d617ac + last_write_checksum: sha1:745a71c96e7462c0a6a4854afb2887761eb479ce + pristine_git_object: dc51c731e16a12cea47e5236c9b82850e695c9a4 + docs/models/functioncallinput.md: + id: 4691d850186c + last_write_checksum: sha1:9aa729a8a7e00710ffe12b57502154192741dec7 + pristine_git_object: bc0c33f6764fe2ef25eff03130d93c2b554c04d8 + docs/models/functioncalloutput.md: + id: 924916e779e8 + last_write_checksum: sha1:2d362039fcdbb0bc54bd6abec305d4469116c7ee + pristine_git_object: 5ca4368fdd93b7401ef3db5cc4a3e263d92faf17 + docs/models/functiondefinition.md: + id: ad3367fb72da + last_write_checksum: sha1:52f9e3284180d77b43c246c704047534ba2d180c + pristine_git_object: e06b6fa1086389e521382c74e4bee68f328d5206 + docs/models/functionoutput.md: + id: d9a009ccdb40 + last_write_checksum: sha1:2c4f96b7c910978e90c9c87f299fdf8f5130c87c + pristine_git_object: 4ecdedb4800f5c1392163405f1f55e984186edfd + docs/models/getcustommodelresponse.md: + id: 387b880f5c2a + last_write_checksum: sha1:7ea81cfd97718465747d95c410ebf5ea0970bb89 + pristine_git_object: 3d71d984ddfdeba0b44ac8c06673371440558092 + docs/models/getdatasetentriesresponse.md: + id: 417801b8b763 + last_write_checksum: sha1:ba69de03eef37cac8ceeb34568014df73cc07aaf + pristine_git_object: d1ad4e9dba8819730f3c6059a6688c19bab3301f + docs/models/getdatasetentryresponse.md: + id: 9cd31c6d59f2 + last_write_checksum: sha1:d705167123adc56ac87985b5e982098ff8738c95 + pristine_git_object: b4d5203b30e457e4a5763975533cca091b402451 + docs/models/getfunctionresponse.md: + id: 10cc62e022f7 + last_write_checksum: sha1:b77a266d46fd9d3f0ee3e45b3872354ec3028b1f + pristine_git_object: 02326a83b26a6bb9b1da65dc5ba1d4f1e11aa5f3 + docs/models/getknowledgebaseresponse.md: + id: 37a25ffdd460 + last_write_checksum: sha1:8a9a0a64b0184ffafad1394b9fbbabd25a3dbdce + pristine_git_object: 034a009a317669d430ff0c348d5c43a2dec31585 + docs/models/getmodelaliasresponse.md: + id: 84ac30a4273b + last_write_checksum: sha1:8c38df394fdab30adfdf0a6a10bbec2332f5b631 + pristine_git_object: 1fe2904ef4e5cdfd00b94b2508b3daa9e3f71e17 + docs/models/getspanmetricresponse.md: + id: 768693ec2866 + last_write_checksum: sha1:6f53a86425ccbbfd155536bc4c8fc4e162aaa923 + pristine_git_object: 9e0355d756ae94c44751114503b88978034a6536 + docs/models/getspanresponse.md: + id: 0cf783fa97e6 + last_write_checksum: sha1:816e965d71041dd2ceba9385bee55b90a5e807e6 + pristine_git_object: 8b33338646f31bb2bef16baba02245bc9c9a51f9 + docs/models/gettraceresponse.md: + id: 0479ab4aabd9 + last_write_checksum: sha1:f8376ab480579c09a990c8e66b4d7a8569352427 + pristine_git_object: 4a8379a31251cb465766ebcfee8d1f7c901e3b87 + docs/models/getuploadurlresponse.md: + id: 24b8eef8ba0a + last_write_checksum: sha1:136fa360cc4bc05212dd744aae5c4e388db15d6f + pristine_git_object: ea8e3758edce71a2e8cd6c0118b7f857369a47a4 + docs/models/getusageresultitem.md: + id: 723762cf2df5 + last_write_checksum: sha1:035be47c56268d1ca859b07cf21b2764ef10fd4a + pristine_git_object: d996a010f33554447b1f9bd4275f5e98e1d35dc0 + docs/models/granularity.md: + id: 3cee51c03dea + last_write_checksum: sha1:69512afb5002a5d02e577102c4e42997de0fe20c + pristine_git_object: 941dc4c30b9d932ce1c0ddedd4f6a96ea62807c8 + docs/models/imageurl.md: + id: e75dd23cec1d + last_write_checksum: sha1:b50115b885548497302c4e596a7ddfd05d813f44 + pristine_git_object: 1fd4fcf2071ab7c78ef13d1ce8953cf888ed1d8e + docs/models/input.md: + id: 5cbc446a3956 + last_write_checksum: sha1:5e7b69efdd322a3808f933c06f698d0289269513 + pristine_git_object: c73264481890bf7ad5220296da71cb666195d5d1 + docs/models/inputaudio.md: + id: cf8d2935b1e7 + last_write_checksum: sha1:efaaf4f285b8164a2a3e5e07eda51701af60b1b8 + pristine_git_object: aea9c0b6125b9724194da9ca51a1cfb256e09a6d + docs/models/inputaudioformat.md: + id: dbd07924c0ae + last_write_checksum: sha1:e8bd8d58c4b5012eded4dfca86cbd4d8b3115074 + pristine_git_object: 8f4be0ec1080259bd5f365b36fbab400d30f48e4 + docs/models/jsonpayload.md: + id: aee262eb3554 + last_write_checksum: sha1:a0068cc3b68f763ae7eaaf2c34229a8d8d6daaf3 + pristine_git_object: 88bb7e79a21fc65823af0e6d25bfc356c9e22e63 + docs/models/jsonschema.md: + id: a6b15ed6fac8 + last_write_checksum: sha1:20051409db5a492d3b2468e8254aa691cbcf2fb1 + pristine_git_object: b4a1e57694b8da578afbb30b4767e4eb21e01307 + docs/models/listcustommodelsresponseitem.md: + id: 35c270b9763b + last_write_checksum: sha1:226faacee420f68c09bcafe6bf92bc8c588a24a4 + pristine_git_object: 49b6f75749c647901694edd32fc1009bc660c58d + docs/models/listfilesresponse.md: + id: b15df90d2d59 + last_write_checksum: sha1:fa34bc4e7d358a9cb17da97ddbee2e0b13482e7c + pristine_git_object: 762b9f8c432f9e2541958b6030749cfc1dea443d + docs/models/listfunctionrevisionresponse.md: + id: ee30ecda6dae + last_write_checksum: sha1:6b9e44337658ac714dabb796f0219fbc468304a3 + pristine_git_object: 01466c77e627971f48f9747249a6909e6bb99fb4 + docs/models/listfunctionsresponseitem.md: + id: 924f5235d957 + last_write_checksum: sha1:7032ff57c4517e8bc8165e1f47265fb84d06724d + pristine_git_object: 123df8e389af0c987070b286fcd6435f9a891bac + docs/models/listknowledgebasesresponse.md: + id: 6a43a5968963 + last_write_checksum: sha1:beabc0be1a6fd95ca499977255190fe6acfb9b37 + pristine_git_object: 985607274b1e74925e38c0a414cb8610bd9c4bac + docs/models/listlanguagemodelsresponse.md: + id: f00dfaac53d8 + last_write_checksum: sha1:fa6a96c5dc2297137898e809d336e19a3a411479 + pristine_git_object: 53a8ae5d2971d423fe91e276fa6d9ec0eac00bd2 + docs/models/listmodelaliasesresponseitem.md: + id: 7a1ace15b4bc + last_write_checksum: sha1:f47b3fee2a6514841f0183c247db09041e718bf4 + pristine_git_object: e101cbddf5d1704099c426b8e67aee01a81813e2 + docs/models/listrerankmodelsresponse.md: + id: 578644c59744 + last_write_checksum: sha1:021961d7fd1bfa646e0f19f47cb3a65cbc829688 + pristine_git_object: 8ae356eccf67a44275a37d9eafc11712c4414eb8 + docs/models/listspanmetricsresponse.md: + id: 80904a67ea60 + last_write_checksum: sha1:2eecf500818fb2d94bd5b2c59cc4e95ea9d6ca76 + pristine_git_object: 95e48a06322d2600cd140cca9ee14671d5449073 + docs/models/listtracesresponse.md: + id: f54f6c7c6d3d + last_write_checksum: sha1:fe78fc0132d9d0f5ce99373cdbbeded5794e7247 + pristine_git_object: e4c7d56a32c50693132000fecac6571ab930ace4 + docs/models/meta.md: + id: b5731935642a + last_write_checksum: sha1:0d040b0e04fab41bac8e345559a1bcfaa8949d0c + pristine_git_object: 7545ce714b44906faa60e8ec175f920026308769 + docs/models/mode.md: + id: 568581cb28bc + last_write_checksum: sha1:5d86dc6e34014f55f7f54ca812eeb3072b78f0af + pristine_git_object: 7ee1a28298f8450c8fe5f7df1c998ca6fad66794 + docs/models/model.md: + id: 66e0236ac289 + last_write_checksum: sha1:562648acef7cfa50959c590372f8a7fd5d2ca85a + pristine_git_object: 5cbaf2bf96dc4b5a40f3ed30e6681c6098d425b9 + docs/models/op.md: + id: 4f953e6b890f + last_write_checksum: sha1:7b7054f7f873625787643621bac592bdd223c39e + pristine_git_object: edcdf2f3555b02461e52243f7d0abb934434a8f7 + docs/models/openaitypeschatchatcompletioncustomtoolparamcustom.md: + id: 1de782f78209 + last_write_checksum: sha1:30b11473374baf29f4fe74b5f928e0a77a01479f + pristine_git_object: bb0f89007e361677dfff708ad9994a0912a93c5b + docs/models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.md: + id: 410a88ff8ffb + last_write_checksum: sha1:f52e20f314b55b323a8ad6219793869a35366d3e + pristine_git_object: b8326b43ad391c1357359d4811247e655bd51c86 + docs/models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.md: + id: e4ecba7535af + last_write_checksum: sha1:629b824364bec1bbfd8101d8dddfcc2eda07a982 + pristine_git_object: 0f16b4b9c42ee1362ebd3485eb4d97c47279fa9e + docs/models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.md: + id: a49a4f65e52d + last_write_checksum: sha1:e82c0f9536b0c06ce4194e7bc4038cfde28be32a + pristine_git_object: 175f34a83017b8b8a0df8ce6fb070435b390d900 + docs/models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.md: + id: 128ec65eb634 + last_write_checksum: sha1:a69eab6e4d1852eb2ee4bdc3c7c60aa4127fccbe + pristine_git_object: 01340dbc26940ed180b35da285f18654bd9eb74f + docs/models/openaitypeschatcompletioncreateparamsfunction.md: + id: 0aa998a8e295 + last_write_checksum: sha1:383c23de4aea2cb13df2037b0561a5f96ce31c2e + pristine_git_object: ceb669317b3f8ebadd687280c56f2d1f6a5e8503 + docs/models/operations/addknowledgeknowledgebaseidaddpostrequest.md: + id: cc8fda2a1634 + last_write_checksum: sha1:96ecce7aaaed94791445a443cc19c094ccda1bb1 + pristine_git_object: ee3bacfc9e6be5fd8c0465d47939fb25a07611f6 + docs/models/operations/callfunctionfunctionsfunctionidcallpostrequest.md: + id: b81f98a044f9 + last_write_checksum: sha1:b054daa2ba502229ac39ac6349ae85a750d74864 + pristine_git_object: 70cd214f4f758fc4be4c8292267f5e52b5fe63da + docs/models/operations/callfunctionrevisionfunctionsfunctionidcallrevisionidpostrequest.md: + id: dcd2f682ef2c + last_write_checksum: sha1:e2052fec55981c15d4f7e937775dc8622a329652 + pristine_git_object: 7f9c7ea816fa3f92e5d4ee1fb14612d89bea3dcc + docs/models/operations/createdatasetentrydatasetsdatasetidpostrequest.md: + id: 7ce6366ac93c + last_write_checksum: sha1:60fddd431526cb8537275451cbc63bb3de19b19b + pristine_git_object: 994cc5f3f646bc5870d0131f559fc5f54a37bd20 + docs/models/operations/createmetricspansspanidmetricspostrequest.md: + id: b078e0796009 + last_write_checksum: sha1:8f4e0cb5930e069ac096021c4fb8d144569b7290 + pristine_git_object: c0bb3be01f62d19d79d9d043756ca544524c8abe + docs/models/operations/deletecustommodelmodelscustommodeliddeleterequest.md: + id: 901a2f23766b + last_write_checksum: sha1:3fb2db21c1254293fc7cbc1c40cd29166f21c646 + pristine_git_object: 30a80fa165bc524b3f7f7b59c6c130ccbe4a5ca5 + docs/models/operations/deletedatasetentrydatasetsdatasetidentriesentryiddeleterequest.md: + id: 5377f4dcadf9 + last_write_checksum: sha1:9d1ed29c5efbd3291ed5d851148cd61d0d7b7b9e + pristine_git_object: 3d8af50198ec3f6ba89d3ddfdabc6f0577c6fa5f + docs/models/operations/deletedocumentsknowledgeknowledgebaseidquerydeleterequest.md: + id: 587d84397034 + last_write_checksum: sha1:e0f168ce86a9dbf709c9226bb48252adc7c5870b + pristine_git_object: 31d09b31e02a6468000b5f80cf4c6b67048947d4 + docs/models/operations/deletefilefromknowledgebaseknowledgeknowledgebaseidfilesfileiddeleterequest.md: + id: 3abcbffbe7b2 + last_write_checksum: sha1:a57debe37b2aab92a537128191c9b8078fa0c113 + pristine_git_object: d95e045ca3ee696e5a3b1d95aa1243408e31a793 + docs/models/operations/deletefunctionfunctionsfunctioniddeleterequest.md: + id: 1ac255bff60e + last_write_checksum: sha1:e8c03556d0f8c54454f2f55638937a94238ca009 + pristine_git_object: ebdc52b4ab67009f7e121a386a39427ab0d3b84a + docs/models/operations/deleteknowledgebaseknowledgeknowledgebaseiddeleterequest.md: + id: 4fdac363c8ed + last_write_checksum: sha1:a436f83fb7dbda2b66772009231a84307ab6168b + pristine_git_object: 2efeb3d64ed61e04454c0f676dd682318cdf5e0c + docs/models/operations/deletemetricspansspanidmetricsmetriciddeleterequest.md: + id: 5cbc76ae3a13 + last_write_checksum: sha1:0d3b4f00a6ad97461427638724f955119d7e2330 + pristine_git_object: 66910b726e140628b10a0e8688875123667bf744 + docs/models/operations/deletemodelaliasmodelsaliasesaliasiddeleterequest.md: + id: 503852c73fb7 + last_write_checksum: sha1:379461f09d5e2fbf278d654a4b38b1e844d2df07 + pristine_git_object: 9b687e02cd4667077feafcc7a51fb9e54f2510ae + docs/models/operations/deletespanspansspaniddeleterequest.md: + id: 2d5e1f57b989 + last_write_checksum: sha1:71281bff8a45b585d85464d583e3e3c6d9d04aac + pristine_git_object: b7b8ffa8cf18103974a987cae5ea76f281d22ef4 + docs/models/operations/delta.md: + id: f7eb7cd6d812 + last_write_checksum: sha1:12a41ef89844cf8428555cbbf1eb45de354e7936 + pristine_git_object: c60cf6c3d9a5d8f63c11bccac122a7904a23ec48 + docs/models/operations/functionstreamcallstreampostresponse.md: + id: 3f8e26f8f20d + last_write_checksum: sha1:0a093a2c741a2bcc2970add003ad2167dc490b8c + pristine_git_object: 42cbdf039749e6beee1cb330dfcfa5066c0cd988 + docs/models/operations/functionstreamcallstreampostresponsebody.md: + id: f7b73ec94f47 + last_write_checksum: sha1:99d9d37ddeabe4241661c2fd26c147d0a598ed35 + pristine_git_object: ee4cae45a86b30714d867c3b021db42172b64522 + docs/models/operations/getcustommodelbynamemodelscustombynamenamegetrequest.md: + id: 7fda854d8be1 + last_write_checksum: sha1:f6d87331205163c5ed86fde07fa251fea3c5ca99 + pristine_git_object: 8cca60546aeafc116437d757f77de7a8be7c912e + docs/models/operations/getcustommodelmodelscustommodelidgetrequest.md: + id: d4d1f48c851e + last_write_checksum: sha1:27bff85f3dc213c77a4146696ac5f3b325444b42 + pristine_git_object: 7efe0cfe33d4d3bdcdb978af0cc0beee20c6f5df + docs/models/operations/getdatasetentrydatasetsdatasetidentriesentryidgetrequest.md: + id: 0f8a862371e9 + last_write_checksum: sha1:7c23db11d54dd4c0b0c5a1fc27f63d7b529bc931 + pristine_git_object: cbe8412b0b472fc83447eec24195ce8125513303 + docs/models/operations/getfiledownloadurlknowledgeknowledgebaseidfilesfileiddownloadurlgetrequest.md: + id: 5ad93144f074 + last_write_checksum: sha1:dce38707bb88e0bdd37918a7e6d5c2f715a938ac + pristine_git_object: 01f1a879fcd411f5f9b5f5b85e7e6e8be47ec0f8 + docs/models/operations/getfunctionbynamefunctionsbynamenamegetrequest.md: + id: 83a3a5324ab1 + last_write_checksum: sha1:62db02428f0cbb303d26964f92c0298a2a04f6e1 + pristine_git_object: b0dd0bf9d7966913d7527c8f4f5ef1d11a0f1c58 + docs/models/operations/getfunctionbyrevisionfunctionsfunctionidrevisionsrevisionidgetrequest.md: + id: fe5014d09f56 + last_write_checksum: sha1:1fc1045524680bbe23bfe1de7657e28694cde98c + pristine_git_object: 2f2af637156794d01ce6696743d2c8646328a31f + docs/models/operations/getfunctionfunctionsfunctionidgetrequest.md: + id: b6178568b761 + last_write_checksum: sha1:1f6388228aad177a284d4ca413e6baf72a656f33 + pristine_git_object: 60391df68b62477553abdd8d62e02b6cc48fc45d + docs/models/operations/getknowledgebasebynameknowledgebynameknowledgebasenamegetrequest.md: + id: 20f94ca91d76 + last_write_checksum: sha1:d1e351fe21fde71f5d607b7089911e75d01b216b + pristine_git_object: 9e02fa00fa677cee72d26d76e305644bca7888d2 + docs/models/operations/getknowledgebaseknowledgeknowledgebaseidgetrequest.md: + id: fd7335d98e11 + last_write_checksum: sha1:c7970bd2e5eb0b9430ce3d4bc43d5b1daa9e07b9 + pristine_git_object: c8135a1e9314cfc7f3b30530a428ce4845c4377d + docs/models/operations/getmetricspansspanidmetricsmetricidgetrequest.md: + id: dc8a7fe30a8e + last_write_checksum: sha1:5f24502d958e1f141444c2ec06ee0b5396275d89 + pristine_git_object: fdf029085f2332bc13e202646e7b3ac17c915a66 + docs/models/operations/getmodelaliasbynamemodelsaliasesbynamenamegetrequest.md: + id: 7a9f3a96b46c + last_write_checksum: sha1:23b366d7d933043fa479e7bbe6289460be957895 + pristine_git_object: 1d151e8a98e6bd47b066c26684160c0a6f107369 + docs/models/operations/getmodelaliasmodelsaliasesaliasidgetrequest.md: + id: 5928cdf8aa60 + last_write_checksum: sha1:61c4752764636cea69def8769082ae98d91fd8c9 + pristine_git_object: 9dcf36290d098b938600d9e6a91077465b84e120 + docs/models/operations/getspanspansspanidgetrequest.md: + id: b8e451c6857c + last_write_checksum: sha1:2dbea61db027e3f66bca0c77a216576c30c9539d + pristine_git_object: 0e33e73f11bcbaf8ef691c9e0da7628113ee265b + docs/models/operations/gettracetracestraceidgetrequest.md: + id: b5f582eeacca + last_write_checksum: sha1:aace5f26e945da5c706bafd5b78713a9d5c33301 + pristine_git_object: b4f18e21cff47924171dc22a3d6afdff03a9f8bb + docs/models/operations/getuploadurlknowledgeknowledgebaseiduploadurlgetrequest.md: + id: 931de0e13a39 + last_write_checksum: sha1:3af6ba36a5b1f103f34af799407d0d2c82a0efaf + pristine_git_object: d28f3d6fc8549494d63e3b93a6c64f7730edef5f + docs/models/operations/listcustommodelsmodelscustomgetrequest.md: + id: d1ce19e9cf5c + last_write_checksum: sha1:5fe12eeb40bde88123ff8d29aa0bcc1eb7e1c110 + pristine_git_object: 14b0621bc14a8e346769bb16908b66312601e4b3 + docs/models/operations/listdatasetentriesdatasetsdatasetidentriesgetrequest.md: + id: cd5503cc147d + last_write_checksum: sha1:766c0d4226600be9f1caf08de45cea139820d3cf + pristine_git_object: d8a4dd0f35d903fbad4aa0fbd85310bc14059518 + docs/models/operations/listfilesknowledgeknowledgebaseidfilesgetrequest.md: + id: e85b709dba05 + last_write_checksum: sha1:c4a6a9bbaa3f6c619273e64a1a51a757b23990b3 + pristine_git_object: 7da87601eedc92aa1246068fb14bb0845dfefcfc + docs/models/operations/listfunctionrevisionsfunctionsfunctionidrevisionsgetrequest.md: + id: 2f31401b692c + last_write_checksum: sha1:56a8c9eba9335758822b22fa8b6f2ee681c766a4 + pristine_git_object: 91112252b9eedbe03e38e73e318ca200245d7fd5 + docs/models/operations/listfunctionsfunctionsgetrequest.md: + id: a6f850a2717a + last_write_checksum: sha1:e4ef79a4c0309b347ed54c1b4742dea21245e927 + pristine_git_object: 13dca7c7996f82dd3ea086c5dd6274c0a3fc2168 + docs/models/operations/listknowledgebasesknowledgegetrequest.md: + id: bafa6b15ae0a + last_write_checksum: sha1:ff18856396cef1a3705024c4991f969ecd4ef90c + pristine_git_object: b5369c517657fb36c63ea48fd150936d242de4af + docs/models/operations/listmetricsspansspanidmetricsgetrequest.md: + id: 334d2f94f81d + last_write_checksum: sha1:30b09ceeafaf7704a7de33cde88abf115109bc66 + pristine_git_object: a6ca404cf86aa3c60535f2a00b91786a2caf6818 + docs/models/operations/listmodelaliasesmodelsaliasesgetrequest.md: + id: da9a69d35fbc + last_write_checksum: sha1:cec9e10f0d2a1b57db42863f5d999717c094ce33 + pristine_git_object: a8375a45baf71b779c81436a86da49e0960b9ad3 + docs/models/operations/listmodelsmodelsgetrequest.md: + id: 7d3f736cfecc + last_write_checksum: sha1:bfa6281cd118e4b521d34aba978ba494dfd068a0 + pristine_git_object: 8d53203f5acc69ee3a118eb0d64d9533cec759a9 + docs/models/operations/listtracestracesgetrequest.md: + id: 9712a37f297e + last_write_checksum: sha1:42ff9868a27b4a3526954325dad6cd54f5237c29 + pristine_git_object: 41ba539a45d3ee3fdd58e8b1691b5eaecab9aed5 + docs/models/operations/payload.md: + id: e295f9f27767 + last_write_checksum: sha1:d9375e626b8629760d9f26eb636e964efbe83386 + pristine_git_object: 6e4a0a29914f7ecea935afeced1ce888c447460f + docs/models/operations/querydatasetentriesdatasetsdatasetidentriesquerypostrequest.md: + id: a72d43681dd5 + last_write_checksum: sha1:798a70d0c5d0847e0afe8b0376fafb1608f76c58 + pristine_git_object: 3b65dd5c7dda49f1849132f61545237e93da86b3 + docs/models/operations/queryknowledgebaseknowledgeknowledgebaseidquerypostrequest.md: + id: d6e870def538 + last_write_checksum: sha1:1d79bd1f2f0cd694b47b789c127a24111de412b4 + pristine_git_object: 08808703764b2243e1351be659a3c3de85f0c4aa + docs/models/operations/registerfileuploadknowledgeknowledgebaseidregisterfilepostrequest.md: + id: cc5128807d28 + last_write_checksum: sha1:5b5e3b126cadcabb7c38ac08e55b346fa37aa279 + pristine_git_object: 343d0d8fbe17f38b5b25544228c310674965126d + docs/models/operations/savetodatasetspansspanidsaveexamplespostrequest.md: + id: 460d03b51288 + last_write_checksum: sha1:5c87949fee6b338d78c5b55a793ea20370fa5000 + pristine_git_object: d98a752b510de0b4f5b24f13a78cd78db984f174 + docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostdata.md: + id: 81c59611d932 + last_write_checksum: sha1:feaa9f5ad44bebf0705ac562e02a62f458b81e0a + pristine_git_object: d80cea564262831a6769bace097faabe225a91c2 + docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostrequest.md: + id: 35f119d73075 + last_write_checksum: sha1:edecdf5441a85424c0a513bbbe1ad3b7f26e3b14 + pristine_git_object: 12e16cfab4ab9140e30d7138e020425825d81192 + docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostresponse.md: + id: 0cf8352d3981 + last_write_checksum: sha1:df6d77f38452ef9eadf807a6940c7a79d3c919fe + pristine_git_object: 714f23eb6e087d5c26f43b9776ae68caaefce615 + docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostresponsebody.md: + id: 770cce09ea6e + last_write_checksum: sha1:20789368ebe7ab22da04fba832a0d2cde607ea13 + pristine_git_object: c3d89577d16ea6d7d9b7684d4dd49fc03c1783d4 + docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostdata.md: + id: 3e87842e4215 + last_write_checksum: sha1:290ea8704c015c6db5647f55ebadf1d2e02549a4 + pristine_git_object: c76e9ee29bf1cf0951640557acf14200773de27f + docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostrequest.md: + id: a222d7078e48 + last_write_checksum: sha1:f9a92843ccda2c162a3bbc9925424a95da2a9e14 + pristine_git_object: ca8a1d6b3be211a6809f352cacbe05d7a662d558 + docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostresponse.md: + id: abf1400ec2c1 + last_write_checksum: sha1:af877b590604116411ac39f7274fdfddf9478199 + pristine_git_object: 572e28a8f9457350d379d8afaca4bb7841e3005f + docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostresponsebody.md: + id: b9af36152116 + last_write_checksum: sha1:b22cbd5678fdf5a75fa5c387ec4283d37dcecdb9 + pristine_git_object: fb0c12d9f87a74bbd209eba6f68c008095e10994 + docs/models/operations/streamingchunk.md: + id: 43820fd4da37 + last_write_checksum: sha1:ce370dc8f1effaff9e128da3632529dcd992d157 + pristine_git_object: b6f84fa0754398f1a04dd719e5897c49f1ef50de + docs/models/operations/submitspanfeedbackspansspanidfeedbackpostrequest.md: + id: fb2df8275897 + last_write_checksum: sha1:41af4cf56499ff42a2998b25e8bf029f83fa937a + pristine_git_object: a89e5db8705ae1cbf6d8659cb9127a8cc6d06b19 + docs/models/operations/updatecustommodelmodelscustommodelidpatchrequest.md: + id: 43f31c393fe8 + last_write_checksum: sha1:28e556a0d21d655d0fc0b837eaafd77997639a23 + pristine_git_object: e71888e7c873091ea42c134cc3532b4c2106af8b + docs/models/operations/updatedatasetentrydatasetsdatasetidentriesentryidpatchrequest.md: + id: 77bccc3995c7 + last_write_checksum: sha1:37481107b90e713e83d57381729cb215253aae3b + pristine_git_object: 09b2a88d6f9834fd2dd4942bdd942d25c24549d0 + docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md: + id: 5ff6bf5bf531 + last_write_checksum: sha1:7c4b64e0597553121a3ce29cd682d399be01750a + pristine_git_object: 85f907c2696f7b16201b12513fa31feb4c071cfb + docs/models/operations/updatemetricspansspanidmetricsmetricidpatchrequest.md: + id: 8a183345b954 + last_write_checksum: sha1:61767629c726d7631686b009d661b9526c445210 + pristine_git_object: 6f78821f35415a96edfdd76f0e932b0113a7e63a + docs/models/operations/updatemodelaliasmodelsaliasesaliasidpatchrequest.md: + id: 507d07151e39 + last_write_checksum: sha1:5618e7c112ad97a4c94fa4d4ae70862f2718f607 + pristine_git_object: b91b7fbdba7b1d4a82692d7b29f9cd3f9f890170 + docs/models/operations/updatespanspansspanidpatchrequest.md: + id: 3807d912b962 + last_write_checksum: sha1:c6acdf71dbd287074ecea7ca6625e0fe55e78c02 + pristine_git_object: 58910ae678ba2cf391f186545d63285ac8708281 + docs/models/operations/uploadfileknowledgeknowledgebaseiduploadpostrequest.md: + id: 660a4bf8bd1e + last_write_checksum: sha1:d3db44f9870a08cad951ee61a78ef0c1f9d9f8b5 + pristine_git_object: a69d1b9e03811d11c1d644db8460a99ca31b0417 + docs/models/operations/usageanalyticsusagegetrequest.md: + id: 43853db5aff3 + last_write_checksum: sha1:9551939ea8dffd42046720c2e73034c091546c43 + pristine_git_object: 9bae35d1aec4c272ba21b08cd3cd8b48089c6878 + docs/models/paginatedresponsegetdatasetentriesresponse.md: + id: f3d1e4810f8f + last_write_checksum: sha1:bbb1d7e42f0d7be92b0c73e0600eef84e39ee230 + pristine_git_object: ca659d5f0ad0a2fe0ce675b212ec57a55a7de0ef + docs/models/paginatedresponselistcustommodelsresponseitem.md: + id: 015fdf9e612b + last_write_checksum: sha1:bddf25067e389ad45519bee0b03a257ebb14b9d9 + pristine_git_object: 130e1953c81c937d64c6279e8c6824e15cdd8d0a + docs/models/paginatedresponselistfilesresponse.md: + id: 568ff4f5b23a + last_write_checksum: sha1:0f99f49216b136351d3b7903c42bb6ce721cbe21 + pristine_git_object: bb112ee4c1a5161f11dcd3033a79008eb31173b4 + docs/models/paginatedresponselistfunctionrevisionresponse.md: + id: 96155dee90e3 + last_write_checksum: sha1:ae8e9cdfebca53e144230f1056620d9cd24ce044 + pristine_git_object: 90fa65178f547a12eccb9963878ed467908e3fd0 + docs/models/paginatedresponselistfunctionsresponseitem.md: + id: 0fd78c8f0e9e + last_write_checksum: sha1:98105d0be80bb3655713cd2e21c3f97801e1222b + pristine_git_object: 0648289c08fcb123a6013411a3f04f7b646812ac + docs/models/paginatedresponselistknowledgebasesresponse.md: + id: 5ac660426289 + last_write_checksum: sha1:72476753ca745b9d0242c34da427947ec66a052d + pristine_git_object: 268ad8a849eef5f402402b2f970c813fab48a5e5 + docs/models/paginatedresponselistlanguagemodelsresponse.md: + id: 39a7a72d65a3 + last_write_checksum: sha1:2496d880094151d558e2ce75899bb45fb46cfdc4 + pristine_git_object: d34e033d45c2387fabaf0aeafca45adc1205e71c + docs/models/paginatedresponselistmodelaliasesresponseitem.md: + id: e8720293b148 + last_write_checksum: sha1:d0c07fde6dcbadcb659a205273f7f38a26803b0e + pristine_git_object: 3a5ce8902abe69f3ff36e6706752b0d9288f5c26 + docs/models/paginatedresponselistrerankmodelsresponse.md: + id: e1b1ba64d278 + last_write_checksum: sha1:4d5c666447da68a1f7ed6b5edab80083170066f3 + pristine_git_object: 2dd5e521d4968bd69d040ef5db10d721b943bfa0 + docs/models/paginatedresponselistspanmetricsresponse.md: + id: 6d78c6b09387 + last_write_checksum: sha1:900283d13449c527952d2acb7215a1f936161f39 + pristine_git_object: 66f65ace9abe5700dc4993be506658a1814b7450 + docs/models/paginatedresponselisttracesresponse.md: + id: e0adde8f7815 + last_write_checksum: sha1:c8cb489f1c6c246962b465c07f5c94d7e1fd1e85 + pristine_git_object: 916a3ae2d02911ce0d708b461d3032fadb900876 + docs/models/prompttokensdetails.md: + id: 1391892fce0a + last_write_checksum: sha1:2d6311e0e08a90137512da380b37c5f7be89aa32 + pristine_git_object: cefdd05280457cb17456e73bb99976d1c1a4d18f + docs/models/querydatasetentriesresponse.md: + id: 05ce0dd5285d + last_write_checksum: sha1:fd8c0aa7f67fdb9b6f24a34ed2f7fb35cb583bc0 + pristine_git_object: 6e44bb9309860e6f84fbb01fe8c89d6bb3c5d983 + docs/models/queryknowledgebaserequest.md: + id: fb565f0e41ce + last_write_checksum: sha1:7e0c6f20e213b7c46b7ebed7adbcdd76e03525b6 + pristine_git_object: f1ff6109edeb3eff9a23cf57a1c10f0fce953d5c + docs/models/queryknowledgebaseresponse.md: + id: b08d4a8418f9 + last_write_checksum: sha1:cc284820a9e92c8f53edaaf9cbf7c4b7435b1cc7 + pristine_git_object: 08c0f984abd14a6eb1407e46cf6900d777834c9b + docs/models/registercustommodelrequest.md: + id: 47bf493498a1 + last_write_checksum: sha1:db0ef71acbacdce47e73975d591abb654fc4394b + pristine_git_object: bdad6e82c0f6c0971cf5a9276f41dcf1206d83ad + docs/models/registercustommodelresponse.md: + id: 171aa4c89a04 + last_write_checksum: sha1:dac9728dd43c797c5de6e14174e9a666eeaa7eb6 + pristine_git_object: 7adbbde1a42a1e632ad6210ede926b286189ca76 + docs/models/registerfileuploadrequest.md: + id: bb0ff9105db7 + last_write_checksum: sha1:1dcb06fa676b38f75546a82e9539b348f6ba86fe + pristine_git_object: 52da8bf2d0584cd3b768c77c42a057dae395192e + docs/models/registerfileuploadresponse.md: + id: 8b81beb8968e + last_write_checksum: sha1:83fa5cc689d4934b0ef07749c7f41ea87dc17116 + pristine_git_object: fc51b7a02dc8549dc195864b2bf0f99b077b0922 + docs/models/rerankcost.md: + id: fa70c9151795 + last_write_checksum: sha1:f5e193ed4fa0486c667b7676ce042548bee88384 + pristine_git_object: d8d7c51ec633904cf4b6c4c684d395e26b6e67e5 + docs/models/rerankdocument.md: + id: 150f43082cdc + last_write_checksum: sha1:0a05c635574f035ae80e36e73199007fab3103a7 + pristine_git_object: 78fa00696f1c12d41411568544eea70421e88253 + docs/models/rerankrequestmodel.md: + id: a81d0924938e + last_write_checksum: sha1:622914611c9b802bcef33e2c64bbdfba4bcb8136 + pristine_git_object: 72ec646ea3f25ab0beb39f3731cb0f5c27d1baf9 + docs/models/rerankresponsemodel.md: + id: 3eed549c98ab + last_write_checksum: sha1:aafec522c548c2f7397fbcb6cb0fa279390f600a + pristine_git_object: 8d104bd8b57e99710074f9abbc1dd31264e54e1f + docs/models/rerankresult.md: + id: 5568aa44979c + last_write_checksum: sha1:ca0df357654866c19351cffe5513c29b7200a7a1 + pristine_git_object: e2d15675ce4bdc929bdc68e3a6072e8cd586cd42 + docs/models/responseformatjsonobject.md: + id: 83559bf262cc + last_write_checksum: sha1:3abe8f3dbd0054e2a46280b92cfcc2d5b69ef615 + pristine_git_object: dfc925fe9e422057a56261328651fbd70c402fe4 + docs/models/responseformatjsonschema.md: + id: 3a7c34c63fa5 + last_write_checksum: sha1:77f15d97af01270d0af0b3cfc88e15a4ebd3f3a6 + pristine_git_object: 3665d7fdb031189a82fa04b5a3c14b1f01346ddf + docs/models/responseformattext.md: + id: e80abf091260 + last_write_checksum: sha1:d4ca0b8c390da2e38e1dfb6976754ca696ab5aad + pristine_git_object: 2d35bbb0f64ed43496b1c8b6eb29890f8463ada0 + docs/models/savetodatasetresponse.md: + id: 2f5ea3c90a84 + last_write_checksum: sha1:79ef8bb26d4a0a0b7658973f0072d015434f0aee + pristine_git_object: 03d5c49558329583f6e6a53f0b41727fb981a0ae + docs/models/searchcontextsize.md: + id: 67fccca6a74e + last_write_checksum: sha1:3b8e5bbb91a96d94bfab37b690ce8fb05877d0f9 + pristine_git_object: 27bcacc64f5e291b82820b05266e07652514221c + docs/models/security.md: + id: 452e4d4eb67a + last_write_checksum: sha1:c9ce8db4049d5815d501f8d75da0e5836475d03c + pristine_git_object: 4fe9b99183b441ce5f12415c7622468139922d5d + docs/models/spandata.md: + id: fd287ec5035b + last_write_checksum: sha1:2a480c11ce40ed55d28374487f9bb47d4a270fb3 + pristine_git_object: bbc0fc4cf8002b0a8150026855b03068025a9600 + docs/models/spanmetricdata.md: + id: 4d20ea29d518 + last_write_checksum: sha1:589a442e47a8634704327ce42695788f3f486597 + pristine_git_object: 6be9eb34589b179bc1e85a3cad55e8820ea3f17c + docs/models/spanschema.md: + id: 012f0324df98 + last_write_checksum: sha1:d150dee68f8fecfacba9fa2a963971af31072155 + pristine_git_object: 1d69e98f38ca71f051e723bd2fedb4de110d7242 + docs/models/submitfeedbackrequest.md: + id: 2a3d59a40ce1 + last_write_checksum: sha1:2fe61cff028054d0aba9da2ad191e9a1ab575f45 + pristine_git_object: aa031561bed555ba91415788459bf5ce87c36006 + docs/models/submitfeedbackresponse.md: + id: c1452e90e063 + last_write_checksum: sha1:ae7c5dffdbc37904d127a2c3d98ae6da270578d7 + pristine_git_object: 3c1f891fc56a1692aac7d791105076af3fae08c3 + docs/models/syntax.md: + id: b5f23261fcd5 + last_write_checksum: sha1:7ddd4bc654cb51d9716c57ffd31bb57b275ca077 + pristine_git_object: b7c293243f88af2de8aba1ac9e6c6722f31622a9 + docs/models/textprocessingconfiguration.md: + id: 20c3c4157099 + last_write_checksum: sha1:bdedaae809071c5badb90fb7c12a4630ff9cf7dd + pristine_git_object: 5ab34bfe74ff3408af604f94510b3dc48231a8d3 + docs/models/tmodel.md: + id: 359d7a267d5d + last_write_checksum: sha1:4bcb6521cf261cdcae630c9b1ff12491c23099ac + pristine_git_object: 612f1bc3509bbd7d37af315d430feef3276f1e20 + docs/models/tmodel1.md: + id: a9e430494b37 + last_write_checksum: sha1:e8851b75753d38b621344c8eaf1944b63fcb1a57 + pristine_git_object: 1170c14ea016929b5349a3ad9b98c837e42bac06 + docs/models/toplogprob.md: + id: f3d5d29d1bdb + last_write_checksum: sha1:e75068b7806a59523894a71a2af000efabf2c497 + pristine_git_object: 1bf1a96adf4e07a573728f567dee8ebabee94086 + docs/models/updatecustommodelrequest.md: + id: 9c279d73a0f3 + last_write_checksum: sha1:e7e909e25c489555f07a800fe6b1320935377851 + pristine_git_object: 8147ae6c2e676133c4c5b202ba19914fa3639ff9 + docs/models/updatecustommodelresponse.md: + id: 57981f380bfa + last_write_checksum: sha1:fd60beec5508fb5f4d4fb51de65a0a385a482b41 + pristine_git_object: aacdbe697b7295147c2ae1ca2cd1562f669c4a5d + docs/models/updatedatasetentryrequest.md: + id: 1eb32690c7d9 + last_write_checksum: sha1:e5d41f749546b4c6a3a28f6f28b469cfcbd7832b + pristine_git_object: 61a54de1cc85b3965550d957b870dd0ebc24ff6a + docs/models/updatedatasetentryresponse.md: + id: a3e87923a814 + last_write_checksum: sha1:9b2eabc7aaee7526a0027a59bb6cf70e86a84407 + pristine_git_object: ebceb76acbb8496b0c9934a5cc92d7bf01bb2361 + docs/models/updatefunctionrequest.md: + id: 90c80384e8df + last_write_checksum: sha1:cf4f86280681f2feabfa633708a817e06f75a0c7 + pristine_git_object: 40fbc8e8b4497ad893bcac4df91a19f8c1e08b72 + docs/models/updatefunctionresponse.md: + id: cbf47276a63c + last_write_checksum: sha1:ce88eb71d25b2d3b739589ca4d0cf890ac4badb4 + pristine_git_object: 3c9da6903349317c8231d4fc1c6640ead41a9afe + docs/models/updatemodelaliasrequest.md: + id: d8fcc898a0f2 + last_write_checksum: sha1:06b59c8e17eea14c5193b2e2b89a965a3a997b45 + pristine_git_object: 6322155a9be42e3337e0af0bb165e039b1db1c04 + docs/models/updatemodelaliasresponse.md: + id: 8066f5459f17 + last_write_checksum: sha1:f5c083b2be8c8abafd3a64b65303cc0071d65cb3 + pristine_git_object: 29303aadf75031db9afcc22b3f5fcc6b85a9cd1a + docs/models/updatespanmetricrequest.md: + id: fa96f95ed43b + last_write_checksum: sha1:14924ce8b29e40e9d6574a4be6f74a9a32c34389 + pristine_git_object: 90f3c12c56fe7736536eb5e6887eac40f99ceb1a + docs/models/updatespanmetricresponse.md: + id: db9d55d7d45b + last_write_checksum: sha1:dddc4ae3692ff2fdb5d9062ec777b42a91d736cf + pristine_git_object: 78fc48ff92bd2d941ec025e10a8c02b3131a79bc + docs/models/updatespanrequest.md: + id: 0cc273f44164 + last_write_checksum: sha1:9a32217e4c5a061545b260a895a09f6b1fede074 + pristine_git_object: 663eeafa98979859748f3adae69d8a5e14c8182f + docs/models/updatespanresponse.md: + id: 163e62c13f3d + last_write_checksum: sha1:0f1aa3c4814eb509f0fa5f0ba8f6cb9e51542a76 + pristine_git_object: c1352696ab50ff9efc04cd9e36c701d20f84d8b8 + docs/models/uploadfileresponse.md: + id: 030a92cf9afd + last_write_checksum: sha1:39e8fb5b0e57bad5fd5e5f6daef5696b06597a8f + pristine_git_object: 745081b2762d0a6c551f93b538d4be239f38b24b + docs/models/value1.md: + id: 5d6c54c6615a + last_write_checksum: sha1:dd563e9cb7d77818790cc0f7d2e591ee8d7b12d1 + pristine_git_object: f65d35b31b21a815e5f64ef7c7d691616a73ed5e + docs/models/value2.md: + id: 4eceb26154e6 + last_write_checksum: sha1:a013299bcce3d7ed2a7806abc83ca5d827335b82 + pristine_git_object: 5922b98610d9999f3cabce4c2fe294df3cb76df0 + docs/models/voice.md: + id: f73e25e55a5a + last_write_checksum: sha1:019a12acdca992e3e341f25396cd2ee66d72ac35 + pristine_git_object: c984de7214dea953a60d917d7b2d765e4445df67 + docs/models/voiceenum.md: + id: d02cf0fcfde0 + last_write_checksum: sha1:6a374770186ee33b43f38f74a101d0f259743d69 + pristine_git_object: 4d65af285dbc583cb01e21330411f30cd30ed904 + docs/models/websearchoptions.md: + id: 0302a3b16daf + last_write_checksum: sha1:a29a5f239347c74b8f45a9919975f7b99ef01b22 + pristine_git_object: a1af0edaa6a7585f1cbeb3acca5858c8011ee21e + docs/models/websearchoptionsuserlocation.md: + id: 978bc53b300c + last_write_checksum: sha1:fd6e175a530a957093b367a17d24b122cd948c60 + pristine_git_object: 3839aa9e6fda7abd74e8c2fdd60ef0c960b00772 + docs/models/websearchoptionsuserlocationapproximate.md: + id: c66bd4d46038 + last_write_checksum: sha1:f099221c775fd2109556ac3639c7612c48fae8cf + pristine_git_object: 2daeee0ba3640083d1cadd900a168f7d3aa9f106 + eslint.config.mjs: + id: 461c8d07f6da + last_write_checksum: sha1:9398f326377fe47f67af2df6eb6370750c0790b4 + pristine_git_object: 67bccfec985be20a00970d90155752832dd47135 + examples/.env.template: + id: 52cbe5afed92 + last_write_checksum: sha1:74e7a0a11b6222d15334153f5cd19562a985420c + pristine_git_object: fea40885b968f697020ac31eb588a6607004a8d6 + examples/call.example.ts: + id: 58f868db3c5e + last_write_checksum: sha1:2bea72adb94f6e7bd4abc1deac0068915a30b5d8 + pristine_git_object: 62b5dd441ec0f63bb7cb1011c40caafebe22308a + examples/package.json: + id: c1d7b0ec8e7e + last_write_checksum: sha1:7bd9e274bca62982d1089be6c511cbbbda233af7 + pristine_git_object: fe49b0d036cb4737c253de7bdd79294bb45c2890 + jsr.json: + id: 7f6ab7767282 + last_write_checksum: sha1:19729b55fb20a1735a650ea4a58c85bf2e313acd + pristine_git_object: 23b86f3b3b4f5a98b28d88dfe91aba5e02b38c1d + package.json: + id: 7030d0b2f71b + last_write_checksum: sha1:dbe8a5e86151c708979183b7d5cfdb2e2be09127 + pristine_git_object: 918df751c5ad2e31fa5997d007ee9d0b4e1fcd8c + src/core.ts: + id: f431fdbcd144 + last_write_checksum: sha1:7fe1d083a687c984082d7324a6c70efa04ac3019 + pristine_git_object: defe2a4ee48225ac28b00a5956fad5d377b9c635 + src/funcs/analyticsGetUsage.ts: + id: ea496d360a53 + last_write_checksum: sha1:d95f5849c113190b7716f80ba15e6491c705e232 + pristine_git_object: 1b6c999e1fb3bf64003026e9d624ebaa7d9f2544 + src/funcs/call.ts: + id: 4e1ce51400a7 + last_write_checksum: sha1:4d376fa7c3f8fd1256ef4916035a421afe5ca13e + pristine_git_object: 068898d82c97b65e58cb8c21e9f9dfb917eb4c92 + src/funcs/datasetsCreateEntry.ts: + id: 0f3184b43501 + last_write_checksum: sha1:b4e714c80a3f3ff5b6f10e398308053f6324bcb5 + pristine_git_object: 6eeb23aa67649f7b21a6eda019e15a2f7c050dc4 + src/funcs/datasetsDeleteEntry.ts: + id: 38c944c9265a + last_write_checksum: sha1:e50887d230273fce1aa843f06b04936b74a188a9 + pristine_git_object: 1dba3dcb7fb24ac78584d829844266cbd57f0e62 + src/funcs/datasetsEntriesUpdate.ts: + id: 6a879cc7a961 + last_write_checksum: sha1:3c8bd966538beeec10263e10993bc1ec98a21231 + pristine_git_object: 2de3d489c64bf2e717083b7a990096a8740d6c3f + src/funcs/datasetsGetEntry.ts: + id: 958948811b42 + last_write_checksum: sha1:e34a688938ea8d98bc8c00f303bba1d94e19e405 + pristine_git_object: 95d4ddca3d5c68e6194e993ca6c3e66e544d1106 + src/funcs/datasetsListEntries.ts: + id: dcb2c43c2578 + last_write_checksum: sha1:449bb5edbc5b8f165304d3e3c296009831332d8c + pristine_git_object: f228b5d72c1bfea2924b429234a77d24185d98b0 + src/funcs/datasetsQueryEntries.ts: + id: d092ac3eba31 + last_write_checksum: sha1:c7406842c6fd4b33b09326be64cb9433c3a0fa2b + pristine_git_object: cd7e09617786beb0ec0f60899cb967730ce76d69 + src/funcs/embeddingsCreate.ts: + id: 565c0f1ab77f + last_write_checksum: sha1:eeab0953342f622edb60191d806b719996f36e0a + pristine_git_object: 3b63c19c4761dfe8c5ee625686c6d079d0d28a21 + src/funcs/functionsCall.ts: + id: b6629434e293 + last_write_checksum: sha1:fea43d3940547c5c77b85b89880c836e6403731a + pristine_git_object: 7e4d888fbf386b9cb0201d402d3a9492fb3b5bc0 + src/funcs/functionsCallRevision.ts: + id: 796938f8e8aa + last_write_checksum: sha1:1e409d439de18183e3bb3f47d83796a19df9f6c3 + pristine_git_object: 64d2c5540c66df206d01f81c51b71c0e2467e35b + src/funcs/functionsCreate.ts: + id: aef7bf511c25 + last_write_checksum: sha1:801c9b52ca76bbd84b95e02b64afa56cd467fa89 + pristine_git_object: 0a9b4659bdefaeeada4be432aeeee77f5e036f54 + src/funcs/functionsDelete.ts: + id: 7d59caafadc9 + last_write_checksum: sha1:3281fe0a370eb6a48dbbccacabab8122ed2f07d5 + pristine_git_object: 5a2dc8d99ca6bc23116de095b4f70e8d2021b393 + src/funcs/functionsGet.ts: + id: 45e84e691244 + last_write_checksum: sha1:8c10babe1e4161c1fb1627b6c3562470e5843df2 + pristine_git_object: 739d3eac54ddffd8a37e3ed3e87992757546cae3 + src/funcs/functionsGetByName.ts: + id: 35f390daf859 + last_write_checksum: sha1:8929eca7ae8d9df2b2d49a4a3477937dae888004 + pristine_git_object: bb79f7dd99b289ea4c1cdd15cb5c8ff3fd363642 + src/funcs/functionsGetByRevision.ts: + id: 5494e18675b9 + last_write_checksum: sha1:d194f46e244da829cb10733ab36302b64b0c8d9f + pristine_git_object: c8c6129569a0a68ccc3448d38e12389d1f4e14c4 + src/funcs/functionsList.ts: + id: c756e4f7f097 + last_write_checksum: sha1:d62757f68359a4f60cdb003bc06b25652eb0818e + pristine_git_object: 657ae9cc61f51fb1dd463674ab2eee6888a33603 + src/funcs/functionsRevisionsList.ts: + id: 0a86ccdf2a80 + last_write_checksum: sha1:1afd05352aface53f55a7231bcec6992cd166ddc + pristine_git_object: 8efec923d95c2523856818b56431e6b32ac5f285 + src/funcs/functionsStream.ts: + id: c5f7f605a46f + last_write_checksum: sha1:d626a2c92dc4f6f12292f04eca94270ad03d60a4 + pristine_git_object: 369120fc42c5cedbc94a0fc8a2e9ebf3625ada23 + src/funcs/functionsStreamRevision.ts: + id: b94430efa6b4 + last_write_checksum: sha1:edb1c7c577bd00b217b23112531b301432844158 + pristine_git_object: 97bce5b22ee37a09a129e0e30f15d3be11cfe44b + src/funcs/functionsUpdate.ts: + id: ac35d35c28a7 + last_write_checksum: sha1:bf14adbdc8ea4a978bcd4f1a2441030187365dfc + pristine_git_object: 48e7ed257e6bc0e005db7cb2e0aa7440263131b5 + src/funcs/knowledgeAdd.ts: + id: bb7e3e531650 + last_write_checksum: sha1:c90fce892b2044c0a2f2ca29826d58cf7d3f0fc3 + pristine_git_object: 2a509f81904860060768c4157882f3d3c30933a9 + src/funcs/knowledgeCreate.ts: + id: 58e60f0bb247 + last_write_checksum: sha1:6e69ddae5360f745ce3408ec4fe88993f7aa17f8 + pristine_git_object: e3f1ee8170ac771e8b48e21f4afcc8fe07bff640 + src/funcs/knowledgeDelete.ts: + id: 2aafedb397e2 + last_write_checksum: sha1:c923c3b6b5bd91ba6df3565e719335e48b0d78cd + pristine_git_object: d1f8b8e4b2622e2816f1fa2de35beb8988d923f0 + src/funcs/knowledgeDeleteDocuments.ts: + id: ebdcf19be081 + last_write_checksum: sha1:fb268180ced6dca40226f5d0135e5bfddfffca55 + pristine_git_object: ae61edd9f446209dd8e057ff500e1551ccaf1be0 + src/funcs/knowledgeDeleteFile.ts: + id: 0b36631cf931 + last_write_checksum: sha1:f7b799f50a173a860a4608ff915c249e4e695668 + pristine_git_object: 6cf25aa8d40256400e7d91a7ade915d559b5a547 + src/funcs/knowledgeGet.ts: + id: 7af06f2c3527 + last_write_checksum: sha1:d49e92a908ead66168d9144195f0d1fec75ad957 + pristine_git_object: f1879f9d865795232e613627e101b18e17d7c3a5 + src/funcs/knowledgeGetByName.ts: + id: 274e3dacbbde + last_write_checksum: sha1:0495e47c4384f41ea116454ae327fca33f1a0651 + pristine_git_object: 2cf64f312a15e5a8d12b163b3aa1bb50452c216e + src/funcs/knowledgeGetFileDownloadUrl.ts: + id: 2b95f71bca74 + last_write_checksum: sha1:e519aa39d92588b42f8120a698e962ac6ca0e2f0 + pristine_git_object: ee124c255e011010c368a59cc55c69030c68a01b + src/funcs/knowledgeGetUploadUrl.ts: + id: bfdad30610b1 + last_write_checksum: sha1:540cbd1fcce4f14f37a6c129ec350bcfb52f3afd + pristine_git_object: 206d1bdfe9343ca3d3223ba879c5e1407172918a + src/funcs/knowledgeList.ts: + id: 579fd9655fae + last_write_checksum: sha1:4c16986cafb6b29c77e29da5cefc30577d4f8b5a + pristine_git_object: 736a31fbc5318a68b42efb585b0c26a33de81c95 + src/funcs/knowledgeListFiles.ts: + id: 371bc777d137 + last_write_checksum: sha1:f26e283d854fed89c5cf6a60e47d84d1ea29eff9 + pristine_git_object: 2b5c4874f2fae2f6725bda726118bea14b478ff4 + src/funcs/knowledgeQuery.ts: + id: 962945d13fb4 + last_write_checksum: sha1:5ea28b1ebd95e861f33f19cccc56f600ae75807c + pristine_git_object: 2a4466a845f17a4a66dc5f4470f13eaf1ad32c38 + src/funcs/knowledgeRegisterFileUpload.ts: + id: f15a488afd26 + last_write_checksum: sha1:c0dc2c8341c51b4017b07d6072f6d343d15fd136 + pristine_git_object: ab3289b15ae984a61486b8e16d2f0bf0800ce258 + src/funcs/knowledgeUploadFile.ts: + id: 0e78211a137a + last_write_checksum: sha1:a4d558a78b3eaa20190416eae183fd180641db3c + pristine_git_object: 51decdb86e3231b5dae831c4f9d47c9a670693a8 + src/funcs/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts: + id: f69efc2f299c + pristine_git_object: ecd4b38c2cbf1a8353e46ea01f762ff13e27150b + src/funcs/languageModelsCreateAlias.ts: + id: be051e1f22a2 + last_write_checksum: sha1:b1c397df1522a7d31e10a015ad7acfe7081f4741 + pristine_git_object: bb94eea98d48455da12227d74acfabae0c787d94 + src/funcs/languageModelsDeleteAlias.ts: + id: d1eb8e89a25c + last_write_checksum: sha1:e0d965e284b748054bb223064702b0c4d1a900e4 + pristine_git_object: ef8b2a7586e0ef3f283601da9c1f38c2440ac45d + src/funcs/languageModelsDeleteCustom.ts: + id: 7f5e1ca173d2 + last_write_checksum: sha1:fc9347319909fbcc7f2ee13314db975a5c1a0666 + pristine_git_object: 5e094be63b5bf1ebae5242f0d5a388721fc007ad + src/funcs/languageModelsGetAlias.ts: + id: ccbbdf5cb1d3 + last_write_checksum: sha1:0fdc6bf860ca7c85026e3ac2df2e4eff4ea755dc + pristine_git_object: 2be46129bcce99473a49a80481132bdabfb0cb6b + src/funcs/languageModelsGetAliasByName.ts: + id: 78083ae700bc + last_write_checksum: sha1:bf40912d76c6cfe562ce43aed1a025dbea72eb78 + pristine_git_object: 078408469cfbbd65ac563cccb8e5cf630005d3d6 + src/funcs/languageModelsGetCustom.ts: + id: 574c99ab473f + last_write_checksum: sha1:36eb98657cbb6742b2ebd8bf0793dfda0ffb2de2 + pristine_git_object: 6fbf013a3f531d9e05d1f512fcd260d53a659682 + src/funcs/languageModelsGetCustomByName.ts: + id: 42cae9b7d804 + last_write_checksum: sha1:91fd852eae579389a1f13afed08ac1ba2d30a2f7 + pristine_git_object: 3ddf184fc96bf4bf5dd4136ab0973ddcd2d24228 + src/funcs/languageModelsList.ts: + id: 1836f8309f59 + last_write_checksum: sha1:54ed9e4d4d01bc18a9cbd2571b66aa02c18a06ff + pristine_git_object: 1d9bbd6d1a7e1c5dd90431fb91622943b40781aa + src/funcs/languageModelsListAliases.ts: + id: 7ce82e1fe4f1 + last_write_checksum: sha1:32ae8c785eccb69a5019698be88ec2425b417164 + pristine_git_object: dae7b504388cf0e309eabb3f8be0b46522931edc + src/funcs/languageModelsListCustom.ts: + id: 3a5e3c45fb3d + last_write_checksum: sha1:94dd520d7248513ab92b79ce1e14608553912324 + pristine_git_object: 467c836838529cb35c016bbf632143d33e512c9e + src/funcs/languageModelsRegisterCustom.ts: + id: a78368a1a0d9 + last_write_checksum: sha1:3f56bbf4d82c19bcbfe47a2e11dedb2efebf6874 + pristine_git_object: 91f843c363e2c8c97ab2a1e2c13aea897193c6b5 + src/funcs/languageModelsUpdateAlias.ts: + id: 7d90d517bd39 + last_write_checksum: sha1:b58a472dce51a095d27561b5866405f8f132e3f2 + pristine_git_object: 2422c139dce53b6e236b035621dcebad229892d6 + src/funcs/languageModelsUpdateCustom.ts: + id: 754dd3fe0dcd + last_write_checksum: sha1:d679447c078f00950b1ee5b4bd555f87a5a637f3 + pristine_git_object: b7b74805419a4d0485c14ea0771c92edb61064b2 + src/funcs/modelsCreateModelAliasModelsAliasesPost.ts: + id: eed9e51edd69 + pristine_git_object: 18e38cef862bc62b6d6cfd02774c6bee92050c26 + src/funcs/modelsDeleteModelAliasModelsAliasesAliasIdDelete.ts: + id: d89a38b77ad8 + pristine_git_object: addc46ef62e248fb7aa2c23ee10edf69d7c0939b + src/funcs/modelsGetModelAliasByNameModelsAliasesByNameNameGet.ts: + id: 56b080f63376 + pristine_git_object: 499deb193b9099ba77a1a5e30453d0889f6488ca + src/funcs/modelsGetModelAliasModelsAliasesAliasIdGet.ts: + id: a1012d09148b + pristine_git_object: 9775d2bef251f9de4ab5da4ec20e53151f96ea90 + src/funcs/modelsListModelAliasesModelsAliasesGet.ts: + id: f78ec5061845 + pristine_git_object: 8256deaa88bb8ba6e466ab9694a07e2212421988 + src/funcs/modelsUpdateModelAliasModelsAliasesAliasIdPatch.ts: + id: daf8dc80f276 + pristine_git_object: 8cecb5ae305fcb7992ac733c8cc9995297a70767 + src/funcs/openaiCreateChatCompletion.ts: + id: 7aaa4d46a75a + last_write_checksum: sha1:4786e9591a27ef0c8f60d433d335ae10b245ccb5 + pristine_git_object: cb5ba0cacf4c182e38c2bee34d790805b8a9f948 + src/funcs/rerankDocuments.ts: + id: 5aef5492ced8 + last_write_checksum: sha1:bdacb89aa72e999ce27f9936dfbd0eaf03321072 + pristine_git_object: 6425f4259a1386360b6e781fc3f24cc0e35f8ae5 + src/funcs/rerankListModels.ts: + id: fddd236f9411 + last_write_checksum: sha1:9e52cdb49d78b5c5b5fe99a115271341111f5e1f + pristine_git_object: d2017fc212980e8cb54e7ea81b61e19d2906a01e + src/funcs/rerankListRerankModelsRerankModelsGet.ts: + id: 76ed13b49db7 + pristine_git_object: 296a0ba05cdeca28ee66f6fdc12cca8aa75788ce + src/funcs/rerankRerankDocumentsRerankPost.ts: + id: 7dd3236643cb + pristine_git_object: caccaea7323107b52ebe589237655beb17616dea + src/funcs/spanMetricsCreateMetric.ts: + id: 9ec9372a5e14 + last_write_checksum: sha1:88270aeef4712722b51b6197cfece49d1daaf3d5 + pristine_git_object: f868425395c177758a575766dcb7985ab85a47c1 + src/funcs/spanMetricsDelete.ts: + id: 5000ddab2af5 + last_write_checksum: sha1:6f5cb55fc1897a15dccd51d3e9df54a9f8d8dc65 + pristine_git_object: 0fba99349377af3ef8c78a3fb74da95a1306147c + src/funcs/spanMetricsGet.ts: + id: 2cf8eda279fd + last_write_checksum: sha1:192b50559c1c207583ca4876cdf69cfd93ca1a43 + pristine_git_object: afe3fe1e0e117a13cf623714b6030bdcc425960c + src/funcs/spanMetricsList.ts: + id: 60dc2eea516e + last_write_checksum: sha1:a9b3e63ed1120311f8b4a3362af74a749c9d4944 + pristine_git_object: ee07cec8e783a74be9ccb4d1e1eea1db525e0708 + src/funcs/spanMetricsUpdateMetric.ts: + id: f00b0e120b3d + last_write_checksum: sha1:4bf368e462e7a5aa2585d07da9145540fbcb78eb + pristine_git_object: 66f0139e16a621c09df39eff2676598521b4e014 + src/funcs/spansCreate.ts: + id: 8cb667ce79f1 + last_write_checksum: sha1:543bfac6fb9dda965ef8340b329f5a73dcb8373f + pristine_git_object: e4cc72e35802eccb124a436c1714306a07d87017 + src/funcs/spansDelete.ts: + id: 49722e0065e1 + last_write_checksum: sha1:ce523be7ebac20c5182ff2491c172fec23d5db12 + pristine_git_object: e5b0344db2e3e8df08699550634cbeaa0a15fd1b + src/funcs/spansGet.ts: + id: 0df50665eaea + last_write_checksum: sha1:5209f9a1396fedc594b0c3bb28b631fa3ddff2bc + pristine_git_object: 1444f2fa46cc38aa2d7830889193ad48e96a3ad4 + src/funcs/spansSaveExamples.ts: + id: 35a3d61db486 + last_write_checksum: sha1:9fab20aee94c1209f0ab78fa7b4977fefe0aefd2 + pristine_git_object: b238f5612e458b2b68592dc6ddf20fd00bb06957 + src/funcs/spansSubmitFeedback.ts: + id: 268c7dd42164 + last_write_checksum: sha1:1566881727570118ad42dd93f6a45ac9c95b8f4a + pristine_git_object: 9f46f8d617ca90af19e20ae42f7ff427071ce18a + src/funcs/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts: + id: 53fa6cddcd1a + pristine_git_object: dea2ae6b3861abbced0dad58c67e46fb35bd7f13 + src/funcs/spansUpdate.ts: + id: bc06c0776513 + last_write_checksum: sha1:01afe171ab4773520d0fa43a221f6eaba7d5dceb + pristine_git_object: f1f86b5b0869d96055fd6ce5340f690128fe1441 + src/funcs/stream.ts: + id: cbe6de6fe85b + last_write_checksum: sha1:171e09db7c1ede33922eb41d95026627610e4d0e + pristine_git_object: 20697093db8ee682747ff005e6d5d1679acafac1 + src/funcs/tracesGet.ts: + id: f68b9e361165 + last_write_checksum: sha1:385ebf632a53f39082bd4d879307302221ba7643 + pristine_git_object: 482896e7aab1345023c655b498a1626abe5ce192 + src/funcs/tracesList.ts: + id: c3795ac19baf + last_write_checksum: sha1:03886036738b5fe762d844b7afc132c19ea56e4d + pristine_git_object: 5855d5c61b8414bc5ef86c42b847e19e863790dc + src/hooks/hooks.ts: + id: a2463fc6f69b + last_write_checksum: sha1:7dd975bbcc46a32dd394f86a4652b74ecc70d874 + pristine_git_object: 7ed9e0445ac189e0f90687c6ef602212702bde90 + src/hooks/index.ts: + id: 5f2dab62b520 + last_write_checksum: sha1:1a11c073a6cd792932218e1d4ed36b8567bad8ef + pristine_git_object: f60ec7acd76141a71d78008c5a362eb0236d8335 + src/hooks/types.ts: + id: 2a02d86ec24f + last_write_checksum: sha1:27a3444c4839bec58ae89820fd8c2483edafc3f4 + pristine_git_object: 9c36bf01332084f735909a71036c3544cc4c7e3a + src/index.ts: + id: c5fb850250c7 + last_write_checksum: sha1:35c9cde3ae14b18b3f893a1afe8b6c44f8760f24 + pristine_git_object: dbcba164a0082e3bb8c43cf21fa7f8ffb9d35dfc + src/lib/base64.ts: + id: "598522066688" + last_write_checksum: sha1:b0b12ddbd8625efb47c0e955a18641aeb10c6532 + pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 + src/lib/config.ts: + id: 320761608fb3 + last_write_checksum: sha1:5fe91891b07aff1108049f5debee35f8f9de02c2 + pristine_git_object: 5e7de7bab9a428e9313223dcf8182bfc20ab03ce + src/lib/dlv.ts: + id: b1988214835a + last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 + pristine_git_object: e81091f5e536f82739f71379b1fddc2d147c49e2 + src/lib/encodings.ts: + id: 3bd8ead98afd + last_write_checksum: sha1:d20c131976ab8ac68b22bdde2b7ed84b5b873922 + pristine_git_object: 31cd3733907afbee3641b9ab680ed417247a7d33 + src/lib/env.ts: + id: c52972a3b198 + last_write_checksum: sha1:1ce0ece44d40814a25d4aca405d5228f6a5513e2 + pristine_git_object: 78f257282dfd5f408f6676899d79a5626716c44e + src/lib/event-streams.ts: + id: 3f731f808a79 + last_write_checksum: sha1:94c3324ca2e7811aaf550909d076bd790fb6f707 + pristine_git_object: e4f84b1a425d035cc9650a9513f2b0065bbad86f + src/lib/files.ts: + id: e5efa54fcb95 + last_write_checksum: sha1:d0f325f445b8d22e7d73baf052c585ec2dd24841 + pristine_git_object: 0344cd046d033f9e8a55de02f7935c5cec5dc30b + src/lib/http.ts: + id: 63a80782d37e + last_write_checksum: sha1:797cbf16d3c7c4d62d3ba0eedb08617524938457 + pristine_git_object: 13cf1fd7894a89f727b8d2db2ad24313a94f68c7 + src/lib/is-plain-object.ts: + id: b9862591096a + last_write_checksum: sha1:df687f25a9590b6fd95d39df41a652ae3fd4e517 + pristine_git_object: 61070d3d7c7e5e95b1ed7e7ea21869eb0767db77 + src/lib/logger.ts: + id: 7ee7741a02bf + last_write_checksum: sha1:0ec9d3a2a34c362746b767e4f9a746c055d57a7b + pristine_git_object: d181f2937d4128afbe9b0327e0f81d1fa9c877b7 + src/lib/matchers.ts: + id: d54b2253b719 + last_write_checksum: sha1:e7587f40d36710d499f8a7e6b610610e55a2cb40 + pristine_git_object: 77d41086d77e53263a3a9ba0ec73aea3df521096 + src/lib/primitives.ts: + id: 74859f750b28 + last_write_checksum: sha1:987869fc54790b9c22e9182099103d6aa7c67016 + pristine_git_object: d21f1dc49affa4e6d324bdd60811b470fdfa7eb6 + src/lib/retries.ts: + id: b24a69d15639 + last_write_checksum: sha1:f3da74dffcbe2756c69393f8600205aa1dc06e68 + pristine_git_object: e3ce9aba72150fc3c18f3105d39b21aba809377b + src/lib/schemas.ts: + id: deb4b531fae1 + last_write_checksum: sha1:209cfaabfa7fc1c1310f97453215cb0755619c6e + pristine_git_object: 47edb9725c2482c667e2ddc8a56b1fec4285c492 + src/lib/sdks.ts: + id: 8a6d91f1218d + last_write_checksum: sha1:f7db2d55ac9f5280a24b1b242779b6a231602289 + pristine_git_object: e90348cc7f8959614e2f0e67e89740d9f1415727 + src/lib/security.ts: + id: 0502afa7922e + last_write_checksum: sha1:119ceae76323648a76e7e78c3a7cdbeaf9c1ccfd + pristine_git_object: 097234d2520acc4c3f3277e1638bc8ef205731fa + src/lib/url.ts: + id: b0057e24ed76 + last_write_checksum: sha1:d124050c7e755c0cce233b9e029afb584ff65201 + pristine_git_object: f3a8de6c021de59c991707946cd294596cae954d + src/mcp-server/build.mts: + id: f7a2ed2de4d7 + last_write_checksum: sha1:1a7a5dc9ace5a5d707bd8d2339f76719e525e7eb + pristine_git_object: a04739f2ac2154c097ea821daf364ee4c037a820 + src/mcp-server/cli.ts: + id: 4ade0ef98b00 + last_write_checksum: sha1:7331efddde881832342fa8779d23be7445d4480c + pristine_git_object: b878d8de9f2a0275c3cdbfdcaed48a31092e558a + src/mcp-server/cli/start/command.ts: + id: b3e53408ccb4 + last_write_checksum: sha1:d22bb4c504ff4a0354cd3dcb10a4a64014870732 + pristine_git_object: 3edb9ff544237250ca9f43a92f28ca06decb717b + src/mcp-server/cli/start/impl.ts: + id: 37494f674015 + last_write_checksum: sha1:1d75c0725c304f3402fe9712c03f98df9c4ba3e6 + pristine_git_object: 779f5eb5759d4b6a591159aa5107d87b6e743048 + src/mcp-server/console-logger.ts: + id: 57aff4ff2e15 + last_write_checksum: sha1:66e945860c8318f2a6bb9604a7720a979dacce4b + pristine_git_object: d65a295b9545bee0599e46f2a75f2ab5a03c4ae4 + src/mcp-server/extensions.ts: + id: 3d9d20ff158f + last_write_checksum: sha1:e36e4b49b77347db80debccc2e77706b0ac7f4a4 + pristine_git_object: 0955a573c2ce989d63c737410ab8cc28706d9f74 + src/mcp-server/mcp-server.ts: + id: aabbc4ab07c1 + last_write_checksum: sha1:58b96ecc384cd8e970bc08a59b01774f178e2563 + pristine_git_object: 78e4a3f9eacb47dbb290ba8379911cc4c3df43ba + src/mcp-server/prompts.ts: + id: 26f3d73cbf31 + last_write_checksum: sha1:739c3dbfc08f9973cac83035332b538d1879a715 + pristine_git_object: d6d9f1a7d2f964c34aaf95d04d191df54c105d09 + src/mcp-server/resources.ts: + id: cb0c57ebeaea + last_write_checksum: sha1:65cca10a802b8f10bcdc02d2cb91e4973860371e + pristine_git_object: b6a70780942fdcb6248439d4750faaa2782be4d8 + src/mcp-server/scopes.ts: + id: 8966d24256b2 + last_write_checksum: sha1:77d0eb95785e84f9fd0b27c4612f8c6470489fe4 + pristine_git_object: c25696d4c4f70e081fa5d87ad6891874c509a577 + src/mcp-server/server.ts: + id: 2784dd48e82a + last_write_checksum: sha1:732e24aeac48e24a6c3181c648679868fbd194cf + pristine_git_object: 13fb3b0501567a578f3dd7db293ef87e32c45064 + src/mcp-server/shared.ts: + id: 074e80d4be1e + last_write_checksum: sha1:56c73d4429691516e35541825e759a0285747a2b + pristine_git_object: 3e94144d13f0707bc300183ebb4325b367c297dd + src/mcp-server/tools.ts: + id: 654d5d1f2062 + last_write_checksum: sha1:94a6e60c35bdc275af07eee25fa8c0a8491573de + pristine_git_object: b02fb815f39f8f48075e588eb2ec8d13946e14c8 + src/mcp-server/tools/analyticsGetUsage.ts: + id: ad36aecc74a3 + last_write_checksum: sha1:4f256b7e4833e631668730697606f607ec8ef9e7 + pristine_git_object: 2154577ceb7e8d9cff281b922d22a1c5329dfd11 + src/mcp-server/tools/call.ts: + id: 7ab1495f591e + last_write_checksum: sha1:5f17448fa1c0960e93a93a6cddd39a170cc8d418 + pristine_git_object: ac818fd9563d74fd472fe2162a8857872d0fa8b5 + src/mcp-server/tools/datasetsCreateEntry.ts: + id: af7e31bf7e49 + last_write_checksum: sha1:43fc1bff69df0ee90d724097bd0545ca9c5e0fad + pristine_git_object: cee4f56bdf9a26786d624d0861ba96d56a68db26 + src/mcp-server/tools/datasetsDeleteEntry.ts: + id: f2e5bd4b1f2d + last_write_checksum: sha1:7398e6e3be8c69a5779e811fe17be1729d99dab8 + pristine_git_object: a83e1f0ba3dd11a2cb4d0717ecf320f00793b6d2 + src/mcp-server/tools/datasetsEntriesUpdate.ts: + id: 90f6e274c1f7 + last_write_checksum: sha1:af6a0fa52bc6f8215d86fa64950b0d5ad30dc28a + pristine_git_object: cdd95c2072d7d23b520d5921d925cd4a7e2717e5 + src/mcp-server/tools/datasetsGetEntry.ts: + id: d3f51a7c8cad + last_write_checksum: sha1:0ba7a71326a1fa9d3462438670609509fa3ae907 + pristine_git_object: af562e9dd2facfc0ac055aab9318fdf264f593b1 + src/mcp-server/tools/datasetsListEntries.ts: + id: 4e44c8aebb86 + last_write_checksum: sha1:93c73b55b211bd13102b2de2f2a15fc969476f13 + pristine_git_object: 5a7d13b7f22e92208849b425e07f858874951568 + src/mcp-server/tools/datasetsQueryEntries.ts: + id: 3026261cc662 + last_write_checksum: sha1:b8eff6733beed4e9b931c3f50019136934415d0b + pristine_git_object: 927deff3d3790070d1c2503b6abf9e94fb171dbb + src/mcp-server/tools/embeddingsCreate.ts: + id: b10a794fa8b1 + last_write_checksum: sha1:1b5a8ad25f9be95051e9dad92d5a83bdec2dd2b3 + pristine_git_object: b8c12f8343f4dc75b374591bd885358ee96ae3cd + src/mcp-server/tools/functionsCall.ts: + id: ad25c3c2a89a + last_write_checksum: sha1:51e8620644422c23591205a7cf50499e09a7db85 + pristine_git_object: 819b27c4e2e41bec8446cb25e82888f45803181f + src/mcp-server/tools/functionsCallRevision.ts: + id: 081a1dde7964 + last_write_checksum: sha1:e20bfc3846a096c351ddba2379167c752e575d62 + pristine_git_object: 6c49ee6249af4d093d0901c6a771375457a00bad + src/mcp-server/tools/functionsCreate.ts: + id: 93593157a808 + last_write_checksum: sha1:cf2705683beb9cf72b86c12fe2610f4d70425f1c + pristine_git_object: d32ee93fb6ea71f64c10dd0579c64dcfbfa9ea6b + src/mcp-server/tools/functionsDelete.ts: + id: e7d10ce61358 + last_write_checksum: sha1:3b26e19f5c5df6d68dffbe033017eb27cadc7ab2 + pristine_git_object: dca38f9266df45d5e2b2a096921429bdca08cc49 + src/mcp-server/tools/functionsGet.ts: + id: 01c067c71728 + last_write_checksum: sha1:cbdc0a926e27fdffb514ec46afbb504099eacde8 + pristine_git_object: 9c40827dbd8c5ca57a3e97b8146d720cae356b29 + src/mcp-server/tools/functionsGetByName.ts: + id: 1dd508e3ca0a + last_write_checksum: sha1:f331f2a0feaf0a30d0745ca37088b3d40c04978f + pristine_git_object: a3f7bd501ee6d8f4a947871c6f34fdb512f4af3c + src/mcp-server/tools/functionsGetByRevision.ts: + id: 5d8ef8b27934 + last_write_checksum: sha1:64b745e2f66cb4d4bf16685c38e81378e0224017 + pristine_git_object: fe5a0479ef7a2460ca4bf9b1330fa28137f998cb + src/mcp-server/tools/functionsList.ts: + id: f134ce367dab + last_write_checksum: sha1:38750533ec2d6c5c94a8d67a8c2ab2fbbc8e5406 + pristine_git_object: 423d71d1f336a247ed09377290c90318a8b4ea21 + src/mcp-server/tools/functionsRevisionsList.ts: + id: 6eb1be2c9632 + last_write_checksum: sha1:3897e0a7edae68fa172ea7e9a037b7357255c5e4 + pristine_git_object: c19f57ce225fac48cced2fc33f16d9f941a5171f + src/mcp-server/tools/functionsStream.ts: + id: 9fa0756f3fcc + last_write_checksum: sha1:0cffa983755c100ad72dc4112ab93201f1258bcd + pristine_git_object: 996c7a0ebc49186025c81c9948ea6fdfce6feafc + src/mcp-server/tools/functionsStreamRevision.ts: + id: 5f16d49cdb69 + last_write_checksum: sha1:14b380d60765f15c00ef0ac8febf0bd15b34e551 + pristine_git_object: d65a42161023d40ce6131e7d97ef03646d07d367 + src/mcp-server/tools/functionsUpdate.ts: + id: 629d35092770 + last_write_checksum: sha1:d9a50ea64e39267788ce272ef1f4070d0b140d7c + pristine_git_object: 027bb27fb7b5bd123a8f232689541dd37c82e53b + src/mcp-server/tools/knowledgeAdd.ts: + id: a8cd82e7eac3 + last_write_checksum: sha1:f7fe4523e83e5b3970053b5fb102a02f3a0362a6 + pristine_git_object: 677bfe78ce8e18a632b8cb1c791ec724cf4497ce + src/mcp-server/tools/knowledgeCreate.ts: + id: fe36450061a1 + last_write_checksum: sha1:c4f6caf05e1dcc780e19cf95f569735f9de08d3b + pristine_git_object: 786aea6a80accff9a3b737cdbd6f1d0b0554bbba + src/mcp-server/tools/knowledgeDelete.ts: + id: 000abfb3aefc + last_write_checksum: sha1:71a7592b24d355c1bb9af9e97c12d0d98ece6cf5 + pristine_git_object: b1010d3ce9a6c157f57ece1788bdc95cd2e502f3 + src/mcp-server/tools/knowledgeDeleteDocuments.ts: + id: 3096e54c02f1 + last_write_checksum: sha1:96496e9575fec526f9f467fac1ede255e5a80443 + pristine_git_object: e6e3205a8f518cb0bcb1f2409aa15ce3aa45372f + src/mcp-server/tools/knowledgeDeleteFile.ts: + id: 4b7304ed98e6 + last_write_checksum: sha1:f710f9ac757cd3f919ecec59ae0a395c6886e002 + pristine_git_object: 56ec37f7b7738f3f2738ea2de19c58ff4e6c3e5d + src/mcp-server/tools/knowledgeGet.ts: + id: 02d669a0be0b + last_write_checksum: sha1:f8b4132d94d7256d2ee497583ea9e73be7229ed1 + pristine_git_object: 1004e5e42440b3a73b83e1a28850de27d5fd849a + src/mcp-server/tools/knowledgeGetByName.ts: + id: db6b92bab300 + last_write_checksum: sha1:c41d3ec36bb4a236a5f4f4be6bb7fc85abd2a578 + pristine_git_object: b23ac01c155f3191e789dbee65bdc6cfb2bca594 + src/mcp-server/tools/knowledgeGetFileDownloadUrl.ts: + id: 080a0b3f426d + last_write_checksum: sha1:7ce6268a330a615cd8891e9b559c4952d7b3e5df + pristine_git_object: bf283576f494750e9f83ea10cd8d96c7b014b7fa + src/mcp-server/tools/knowledgeGetUploadUrl.ts: + id: 587f88d68fb3 + last_write_checksum: sha1:0c298271de9e410d176bafa05e3857cda2aab6b4 + pristine_git_object: 3fd0383ef7a5288fe53f1b5423fe5fb4a54b20d6 + src/mcp-server/tools/knowledgeList.ts: + id: 17d84363b16c + last_write_checksum: sha1:945aa45bac8f3beef4dbdaf76e5f617405d5cde3 + pristine_git_object: 8ad284499f741de313391b2252d595730d2257ff + src/mcp-server/tools/knowledgeListFiles.ts: + id: 9c9e089c9d1b + last_write_checksum: sha1:04ed15593d3b186e2322b43ddcbc1c02d33e1987 + pristine_git_object: aa4c926806147926d53a39b31d878b2735e0fd33 + src/mcp-server/tools/knowledgeQuery.ts: + id: 698d10f81666 + last_write_checksum: sha1:b9d1135474595fc6926ab8404c4c9571e1750f7f + pristine_git_object: fb014a97c27a15f13a7ec986e75ce916cce5ddba + src/mcp-server/tools/knowledgeRegisterFileUpload.ts: + id: c32957bed891 + last_write_checksum: sha1:03b2b608263e4eb837525e42cdb5bf4511b23ada + pristine_git_object: 626478da1a02195a10af3f1b4cb7a343547b07d4 + src/mcp-server/tools/knowledgeUploadFile.ts: + id: 1ed9d2977052 + last_write_checksum: sha1:8008918d38b6ab3e996ced7a5ff1e019ffb794df + pristine_git_object: bf02ec5a9abc9aed4d672289c23a304ac70acd7e + src/mcp-server/tools/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts: + id: 1945ae6fe681 + pristine_git_object: 39ae64ccd6d6d7b1f8005019e9bc74719c95d121 + src/mcp-server/tools/languageModelsCreateAlias.ts: + id: f3896bfba499 + last_write_checksum: sha1:8a29b2c0e166f1d8ced84d4c76a03b63e48e7a2c + pristine_git_object: 6d78345495d92d14ef11cc8f9fb5ad0f0e8ca89b + src/mcp-server/tools/languageModelsDeleteAlias.ts: + id: 45e19ec5710f + last_write_checksum: sha1:56e8a5cc7c4aa129a338cc1405d86b2621e58152 + pristine_git_object: 4b0323ef3de2d40d2cb4327121d64a86845fb816 + src/mcp-server/tools/languageModelsDeleteCustom.ts: + id: e0d09ecae562 + last_write_checksum: sha1:c1b5ec9a84acdaa8a6c53aa563d11131fb0e4a81 + pristine_git_object: 768b0c88e7bd4b04151ffcd904274b98d2e78efd + src/mcp-server/tools/languageModelsGetAlias.ts: + id: 493c6e6e7a2a + last_write_checksum: sha1:461a8acc60802190c233609b46ffa91fe6ff6044 + pristine_git_object: 20c744bd7594972aaf11f9ded1fd25a3e590403a + src/mcp-server/tools/languageModelsGetAliasByName.ts: + id: ebb1b32ea731 + last_write_checksum: sha1:071fd006891ad909512da96a77d4cb5f79041db6 + pristine_git_object: 29561b313f047d07137a33993699ef20f368a277 + src/mcp-server/tools/languageModelsGetCustom.ts: + id: 10e0ad705a60 + last_write_checksum: sha1:6e7905c27b0c3a771970f2a9220eb13b071d0b99 + pristine_git_object: bb3826c11999293fde19ccec00413a62cea45d4e + src/mcp-server/tools/languageModelsGetCustomByName.ts: + id: c736ac232095 + last_write_checksum: sha1:16e17e347ed868a052ce127a4749da678683cfcd + pristine_git_object: 7d23e4ba33d0596b126b2592129486a5efab3b82 + src/mcp-server/tools/languageModelsList.ts: + id: 2ca95e60d9d8 + last_write_checksum: sha1:fa5ec7a4a2af244d907d2f21ca82f531725881a3 + pristine_git_object: b000c8752cc0d30adb810be0980fb93d80b6ae2b + src/mcp-server/tools/languageModelsListAliases.ts: + id: 8efca35e699f + last_write_checksum: sha1:1e7c4fd47b9cdff552400c4e2855e15a1bc423f5 + pristine_git_object: 89caebfb9f329512458acbb00b03c67d299b4593 + src/mcp-server/tools/languageModelsListCustom.ts: + id: 21a4cc45a087 + last_write_checksum: sha1:f8e75bd3c5f046f7d48744e87d511730869427bb + pristine_git_object: 3664c834919e5a01313dac926b13ad0c68df2026 + src/mcp-server/tools/languageModelsRegisterCustom.ts: + id: 00cc3ca2b919 + last_write_checksum: sha1:ab72a02c9f00a784212c2c4c309e648c8170d207 + pristine_git_object: 3a1fb222d7e82b2c6e9519665554610d2d39e860 + src/mcp-server/tools/languageModelsUpdateAlias.ts: + id: 05d54e42622e + last_write_checksum: sha1:eb55099e3a924d2be2817690754d58a885a04250 + pristine_git_object: 0181316a419b2a4418c66011430142ce5e504196 + src/mcp-server/tools/languageModelsUpdateCustom.ts: + id: fbe90be117f8 + last_write_checksum: sha1:ef716aea9e1e69c867708e0524207a6f7ccfe3ab + pristine_git_object: 470ea10a196ed98639761ac44ac4485bb308c975 + src/mcp-server/tools/modelsCreateModelAliasModelsAliasesPost.ts: + id: aa9916413461 + pristine_git_object: eef878837e37fcc93d843044c86e8aab574e10bc + src/mcp-server/tools/modelsDeleteModelAliasModelsAliasesAliasIdDelete.ts: + id: 644f90467064 + pristine_git_object: 75536dbf9665e931be629ba61582883121400b6c + src/mcp-server/tools/modelsGetModelAliasByNameModelsAliasesByNameNameGet.ts: + id: 7ca69379a69f + pristine_git_object: 359b93141f93420d2a86f0f541998a2abc4d400a + src/mcp-server/tools/modelsGetModelAliasModelsAliasesAliasIdGet.ts: + id: 19affe5d89d0 + pristine_git_object: fba70a24a23b9fc211ca8e5942ceca76e86b7cc1 + src/mcp-server/tools/modelsListModelAliasesModelsAliasesGet.ts: + id: 110099631a3a + pristine_git_object: 965d90676543f82f4a40dd4d0f305592aaacb47e + src/mcp-server/tools/modelsUpdateModelAliasModelsAliasesAliasIdPatch.ts: + id: b4e8e85a1782 + pristine_git_object: 63e29c0e03ed8e0d63888076a88f5e9459523227 + src/mcp-server/tools/openaiCreateChatCompletion.ts: + id: efe72de6d3f5 + last_write_checksum: sha1:a8f75fd2764bd7cc568737c6cb0b8b49da0aa00f + pristine_git_object: 78bf44ffad5e9473651ca3bd357d82228842f30e + src/mcp-server/tools/rerankDocuments.ts: + id: e58dbac75866 + last_write_checksum: sha1:d96e1eeae30b5338b1caa63065f4c55ffcc4030c + pristine_git_object: 2a035e5f899e7479ebd3ef0833acefeee3539f69 + src/mcp-server/tools/rerankListModels.ts: + id: 2b0f9b341ea3 + last_write_checksum: sha1:48de7368faf9e877672fb3b6fea8bb600edec875 + pristine_git_object: d276138eb24ef4e1e7529501ed347323f9ebd3d0 + src/mcp-server/tools/rerankListRerankModelsRerankModelsGet.ts: + id: cb4a50f33fd9 + pristine_git_object: 7656ef40e84f788e9e6a610a36dc08305d1a1af8 + src/mcp-server/tools/rerankRerankDocumentsRerankPost.ts: + id: 74d3bc803260 + pristine_git_object: 4869646fe80306c6c250b75f9a1cf4265180ff58 + src/mcp-server/tools/spanMetricsCreateMetric.ts: + id: 6a984c06c137 + last_write_checksum: sha1:ed51464f404d603eef47a3920e4cef631787b9fe + pristine_git_object: 0af4d4065e3b762eb6adaafbb0725da45a0449d4 + src/mcp-server/tools/spanMetricsDelete.ts: + id: 114518271d27 + last_write_checksum: sha1:8d59f39d8d28c1f5caec0aad30e9c5f8761be8bb + pristine_git_object: cd76dd68959ea53a3fb816e25e891e10deeb4a45 + src/mcp-server/tools/spanMetricsGet.ts: + id: 3fa019b998f3 + last_write_checksum: sha1:cc0ea93ed2a7a4a298978c7fa9c1765ce9ea0faa + pristine_git_object: 41ef1ecd416bf20ecb6f17895a28979b0e8eac7a + src/mcp-server/tools/spanMetricsList.ts: + id: 3687095f193a + last_write_checksum: sha1:89ca19534d97017dcdda22434ea1c426a9222a35 + pristine_git_object: fc92efd7e899edae7b4e83d4514a9fdd45629bb5 + src/mcp-server/tools/spanMetricsUpdateMetric.ts: + id: 3a0baf8876c3 + last_write_checksum: sha1:47ffd6bc97b9116a45a66dbd26ba6dc5167f8fc0 + pristine_git_object: dd61b1ed577550c593331743b7b48b3cbca2334b + src/mcp-server/tools/spansCreate.ts: + id: 0a6419d1ee27 + last_write_checksum: sha1:171fc851d7dc2545c2c9021ac84610e6a637213e + pristine_git_object: 7c6ebe033fc9b7474f4870548a732dc62e3df5ea + src/mcp-server/tools/spansDelete.ts: + id: 7e4ddeecf65b + last_write_checksum: sha1:be93d32fc1659ecd33fa83b08c3f9ac5e625ca8c + pristine_git_object: 3ba2912e08017aa4446caf1029e12f5dc8f95f75 + src/mcp-server/tools/spansGet.ts: + id: 7fe0e88d5ede + last_write_checksum: sha1:e0c93a90fb2d4e25f3ddf4741c3d90950cf91781 + pristine_git_object: d0bae5b646636bba8c7ffd492a121cfca2661097 + src/mcp-server/tools/spansSaveExamples.ts: + id: 7f8b205f589c + last_write_checksum: sha1:2a1a8bb4d1b3101dd0bdfda3ecac42abdf49b1a6 + pristine_git_object: e7cff75e6990376c07e925ec9e79c0f76cef188b + src/mcp-server/tools/spansSubmitFeedback.ts: + id: 642062671c70 + last_write_checksum: sha1:dce97457af68f72c6413fa92b6f264d352135e08 + pristine_git_object: f38376fa0f14f1f058675a61ee0ebcea9030dbaf + src/mcp-server/tools/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts: + id: c930954875f7 + pristine_git_object: 9ded3897acb6639c02cfad38052e92cf1b74f091 + src/mcp-server/tools/spansUpdate.ts: + id: f47268dd1948 + last_write_checksum: sha1:acd3beef536773c535c945292bf140b56e8a0108 + pristine_git_object: b868ca9dc8d19581bdb5263c95695e448e7866e4 + src/mcp-server/tools/stream.ts: + id: 3ca601f0e9ed + last_write_checksum: sha1:8db1e89337d01f1994af7dc4f5a73aeb478a3df1 + pristine_git_object: ee7c1e002f8d7d1ff6e77a5cce3ea23a28f6b036 + src/mcp-server/tools/tracesGet.ts: + id: 42492f3ff12c + last_write_checksum: sha1:fe0a6928963e4962e1f456a462686f299ef0db93 + pristine_git_object: b4d24baa2f9f00463121e9f3c1613ab843298eda + src/mcp-server/tools/tracesList.ts: + id: 1eb0d385ae14 + last_write_checksum: sha1:72a335884b29a0c091e0ff183a4999ebc951dad9 + pristine_git_object: 625d2cdc39087a9013aa25fa1bddc4b748fbb900 + src/models/addrequest.ts: + id: 01c5bce1c101 + last_write_checksum: sha1:879fa27010aaeac1d5f1834b994833e6d10f2f0b + pristine_git_object: 6935e794844a67a791b737da275e75b6427d9e8e + src/models/annotation.ts: + id: "154996783512" + last_write_checksum: sha1:2fd69c737e40a941ee3950cab7ac685a0ae9c744 + pristine_git_object: ee1fbcd632deb325e3a20a688d0b1c4ac3e5a476 + src/models/annotationurlcitation.ts: + id: 895bf7dfa898 + last_write_checksum: sha1:f99500a572eeb48526b1b696941eb8362ae90c86 + pristine_git_object: f60420de3f08bdc90eae584fae28fbda93a7e3d0 + src/models/appapipublicv2functioncallcallfunctionrequest.ts: + id: b2209fa1addc + last_write_checksum: sha1:f7336623a39952be54505834e5302db55df856d6 + pristine_git_object: 90e2bf0a4494b6fc3834a608cce0beaaf56b49e5 + src/models/appapipublicv2functioncallcallfunctionresponse.ts: + id: bc9b70199c5a + last_write_checksum: sha1:bc89171dc945ade15b64b261d963bfcdfbda75a2 + pristine_git_object: ddef5eb27611638b7db28433f1b6dbe0a6ac4d0d + src/models/appapipublicv2functionscallfunctionrequest.ts: + id: cfc6ca65127c + last_write_checksum: sha1:21a85c34b00e3a3568d368314efbdbbf9f98d039 + pristine_git_object: eb1583acd9cdac04e5022ea123bbe05dd5fac927 + src/models/appapipublicv2functionscallfunctionresponse.ts: + id: 7dad677b6ebe + last_write_checksum: sha1:540a57a92ba4e7d628507aa252d4c44fcbb228f5 + pristine_git_object: bdc3b95d9a0b50ce240e5f28e73bc8b54adfadc3 + src/models/audio.ts: + id: 4b0a8214f90e + last_write_checksum: sha1:ab7ccb9e3da028e8d174b677c5cd5b495c933265 + pristine_git_object: dc5d9095908ca2b583c8b582366213157ac57d6e + src/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.ts: + id: 16bf9a5901fb + last_write_checksum: sha1:24c7d0c7f0e761ab0be6082cd6d51b2fb328c662 + pristine_git_object: 876787fa3699ff215572ca4ecf4b65697d632cc8 + src/models/chatcompletion.ts: + id: 92c8e8bb5ac2 + last_write_checksum: sha1:afd602d8f1b3a3d8c78dd639f84634b775c807dd + pristine_git_object: 088a344f8b77d45a66bd22564772775b0612a236 + src/models/chatcompletionallowedtoolchoiceparam.ts: + id: 1aa24512d96c + last_write_checksum: sha1:2acf9e16227bdb328bd1f40bf0aa577542fae330 + pristine_git_object: 03882ec6df2aaa7a370c4ef3f65620df1ffe380f + src/models/chatcompletionallowedtoolsparam.ts: + id: 3faec20c8037 + last_write_checksum: sha1:2aec299f076f05c95f66b7454eb7129b8d5b91a2 + pristine_git_object: c2f6740ed18b128a7a8a8b49a86dcca48e11496e + src/models/chatcompletionassistantmessageparam.ts: + id: c7711ad60d84 + last_write_checksum: sha1:cb3f4b40902d20792ae47ae8ad92405f2728ff65 + pristine_git_object: 7f2216b58b371f91c396f8cfb6f68842de17bc0d + src/models/chatcompletionaudio.ts: + id: cd4a67ba6dce + last_write_checksum: sha1:a1c287cfe7281a74276b9e66e4c0a98583483bfc + pristine_git_object: 895976f560d13ad1ac26d7016bee8042b3325eec + src/models/chatcompletionaudioparam.ts: + id: ae6eb9bc4505 + last_write_checksum: sha1:5e21693c6772dcf2943d7485935f6c7d3b8762f7 + pristine_git_object: 9f05ab398b6abdd0b35dd922700fe667cbca10fc + src/models/chatcompletioncontentpartimageparam.ts: + id: 21b5ffd74f6f + last_write_checksum: sha1:dfa9d7b64a9be3bdcf46940481e9922aec9d5c21 + pristine_git_object: 106f92d05ef84a2b997cc2d3d5d6dc6dc0db0883 + src/models/chatcompletioncontentpartinputaudioparam.ts: + id: 800293d5a9a6 + last_write_checksum: sha1:0fc6ea55c542d080b4089dace8f5902ce03d34ff + pristine_git_object: dbdf214052e7e07c66ed72cdf78be8be4354daa5 + src/models/chatcompletioncontentpartrefusalparam.ts: + id: 1c0286d547ed + last_write_checksum: sha1:a1370cd5ef80d7fd1193ec17e451046f0af76f97 + pristine_git_object: 0e8ae02e009a0e35ef089694937561942ea364fc + src/models/chatcompletioncontentparttextparam.ts: + id: 09643c36a2d6 + last_write_checksum: sha1:a4d10f227daec64f32803d0362df550951f15318 + pristine_git_object: 76e32320d34e8527706d2c7a188706deb65660d4 + src/models/chatcompletioncustomtoolparam.ts: + id: fccd964a4304 + last_write_checksum: sha1:85472473b8b3c69ff5b113ece3ef3efe75baa2a0 + pristine_git_object: 297e9cd38dd944b9d148bb8df7883c24d0ed7959 + src/models/chatcompletiondevelopermessageparam.ts: + id: c30d9cbacaa2 + last_write_checksum: sha1:6c1852e1ba12cc3aeaa4192a31fa50957a248f3a + pristine_git_object: 3e8f7386d4d03117a25eddd9964578ceb7c6cf8a + src/models/chatcompletionfunctioncalloptionparam.ts: + id: fc48763beb7e + last_write_checksum: sha1:fb6d43cd583d08ce9ab9f106e5570ab4ac4089f1 + pristine_git_object: 56fbf8e9f185b9936137402c9ca74806db07ccd0 + src/models/chatcompletionfunctionmessageparam.ts: + id: 6cd067be1819 + last_write_checksum: sha1:831a52f871f2416a0b38fcabcebcf259023665c7 + pristine_git_object: 62238c855689d6d1b4a3b01e3e162be4e8bcfa1e + src/models/chatcompletionfunctiontoolparam.ts: + id: e45f3050615a + last_write_checksum: sha1:200b5f78a93884025f2cf5a911fbeeb5b8d58b52 + pristine_git_object: 9528caa015a1c72d9bf09e3939d1f139368a795f + src/models/chatcompletionmessage.ts: + id: a42b4acd1a1d + last_write_checksum: sha1:c4da04fd280cce7ef2c39f9e87ca7fd1a78099ff + pristine_git_object: cd85096e434c71b007b70d88658cd7c1a01519e3 + src/models/chatcompletionmessagecustomtoolcall.ts: + id: 519069b45dd1 + last_write_checksum: sha1:ac24f7d56c687f4b318d5e8a1de84313f81d84c3 + pristine_git_object: c9b7a1e86f722d01728b371e3df9719e778e4eae + src/models/chatcompletionmessagecustomtoolcallparam.ts: + id: 3fa91f2449f1 + last_write_checksum: sha1:ed306e0f9831792271fbd79946a6a4f76d47fc9b + pristine_git_object: 9fa8e1ae6fab0dbaf704111e915388b6ee35fe82 + src/models/chatcompletionmessagefunctiontoolcall.ts: + id: 88c888125c56 + last_write_checksum: sha1:c57a0e33829b5237a6f54d49ba9c74898fe18d3b + pristine_git_object: ed6beaadc7f231cf21d85f7135eafdd78bdb9502 + src/models/chatcompletionmessagefunctiontoolcallparam.ts: + id: ebb57e9df9e5 + last_write_checksum: sha1:f4907a75e8c775436fce535383d4e563817591b3 + pristine_git_object: bc146a118c73df82509b9858234b1c2beec97000 + src/models/chatcompletionnamedtoolchoicecustomparam.ts: + id: ce9af7e698ad + last_write_checksum: sha1:5c0be99e15ad80e2945d3aa6f338877a6677edbe + pristine_git_object: b1a1b1142ac170e7ae1339c59f855d59ebe53dd1 + src/models/chatcompletionnamedtoolchoiceparam.ts: + id: 6cf82ddeafec + last_write_checksum: sha1:81f3ae850e00a8c7c05cdd4f09bb58af1dba0e36 + pristine_git_object: 18f7b03e34456d1674be2838974ce9656d69a768 + src/models/chatcompletionnonstreaming.ts: + id: fac6c1131324 + last_write_checksum: sha1:a6f56012cab520da14cf9052b2ce3a9dc5288786 + pristine_git_object: ea68bd8bc54b54d05d8307fb6074e33ee66e5b31 + src/models/chatcompletionpredictioncontentparam.ts: + id: 9295c97a4ecb + last_write_checksum: sha1:252cd230390cd7e0a604081931d804b1248884cf + pristine_git_object: 742bedf1b0c017e05140c3ed33cb13825123767c + src/models/chatcompletionstreaming.ts: + id: edca9474148c + last_write_checksum: sha1:dd0e3ec1b7ffa9a91804ea8939d49a3fb1cd726d + pristine_git_object: cdbbf5100fb0a14d61f64bb2630aa780818845cd + src/models/chatcompletionstreamoptionsparam.ts: + id: 8eecbef20df4 + last_write_checksum: sha1:1b910381c9eef245cf110f4691002235ffb129c5 + pristine_git_object: 879167b82ecbf64ad70d60e168ce1984a9a48d0a + src/models/chatcompletionsystemmessageparam.ts: + id: 4ba7460abb5c + last_write_checksum: sha1:4200265e07a7ad9862d41006721537a4e852f3b4 + pristine_git_object: 783b5013d370534fc223e96ebcab7271f3c078af + src/models/chatcompletiontokenlogprob.ts: + id: 118f4ff16855 + last_write_checksum: sha1:eb41e57939e7fcad543d51004d69188bf12d6e38 + pristine_git_object: 9a59fa1425a369d1787148b50287cb2036fc2afa + src/models/chatcompletiontoolmessageparam.ts: + id: 5b76d3d26eea + last_write_checksum: sha1:4b973632d5f075493392b5a132e4297ffb0ce4ce + pristine_git_object: 1c717375e13cfc57fe31a39a530f0c8cacf010c7 + src/models/chatcompletionusermessageparam.ts: + id: 0f2ac198b0c3 + last_write_checksum: sha1:7eb2220d73feed823d7200247a34c089b6f47813 + pristine_git_object: 909ae302e050b96ec1d3a7c74531a7013877884e + src/models/choice.ts: + id: 72ad68052e8a + last_write_checksum: sha1:a385cf3492b7a26183b1632bcbffb399ddcc7b9d + pristine_git_object: bfae54367b1a4fc46e38bf77a5a2e0bf0b7b2cad + src/models/choicelogprobs.ts: + id: f2eedd9721a5 + last_write_checksum: sha1:848c3aa60f5f0ace9eb4a3d51600ecea856bbc7f + pristine_git_object: 9dbb1ab4fd47ce4a356d35459902c06ae5abe806 + src/models/completiontokensdetails.ts: + id: cb0229099440 + last_write_checksum: sha1:0fa66ef5d11d5feea3e284428b60bbef55bf50be + pristine_git_object: f3deeb26c65df92e6c92f41adfb3cf88e9b26ea0 + src/models/completionusage.ts: + id: 4a222248409d + last_write_checksum: sha1:2e8ea41f7036fe960d14c4ca5b7542de4846beef + pristine_git_object: 29befa9d7bfabb55c35038b07cdfc854734f4d6c + src/models/createdatasetentryrequest.ts: + id: 7fa20174b22c + last_write_checksum: sha1:fc951134f9821a3b282447c39d75ef8c1e725433 + pristine_git_object: e938498c3096e54e9b5e7f8636ef60141cb7bf81 + src/models/createdatasetentryresponse.ts: + id: 4cba5074f006 + last_write_checksum: sha1:24e46596181f887b08ca5e246b5686b585546cdc + pristine_git_object: 401daef480e5e72c36c5a76dd5347dbc2b6f697b + src/models/createembeddingrequest.ts: + id: 30ebeb0f049b + last_write_checksum: sha1:a6a5d16440183ac2a715c144fa3c677bc57b1842 + pristine_git_object: 915dda147c72c107ed6fcb19b3a069ada77d176d + src/models/createembeddingresponse.ts: + id: 006e81d95ddb + last_write_checksum: sha1:f43c03e95fe23c3d17d5aa46dd1efa466aa7086b + pristine_git_object: 95e97a9720e0a4fe0cb005babb0f63abf6ac48e3 + src/models/createfunctionrequest.ts: + id: 27fa88b6072e + last_write_checksum: sha1:9e23d50ecd5a0d9ee79e36c8fcd698f2dee2466c + pristine_git_object: 9ccafa2349d0f09e9c8e1ba6760d65030b30f7fd + src/models/createfunctionresponse.ts: + id: fb8dc344c5ea + last_write_checksum: sha1:41b7dff1e68867dd527e62151b22e835af284082 + pristine_git_object: 92be4824088f0f7d24531ef9ba4ceff05ce817a2 + src/models/createknowledgebaserequest.ts: + id: 4e53ee982e44 + last_write_checksum: sha1:926da3c20aa5d14092b786fc7f3f9a06c4045aeb + pristine_git_object: 219fc5d8fd0ff0de7b5000dc1d5374e8419559a8 + src/models/createknowledgebaseresponse.ts: + id: 91dad4c39e28 + last_write_checksum: sha1:03223c8b3b12a876c1c2b5ae78246e2824d202be + pristine_git_object: 3d16836e07f466a438b8f67c15b8b49de0d1d198 + src/models/createmodelaliasrequest.ts: + id: 4630dda196a9 + last_write_checksum: sha1:71bed8ca371b4ecd74696b2c1cb3368a87d1e06b + pristine_git_object: df4cd728ce67f4365d70db01476f05991867588b + src/models/createmodelaliasresponse.ts: + id: 38ddf403cb86 + last_write_checksum: sha1:57248794b53e40c6e792fc00f207afcadb8561e5 + pristine_git_object: 3a3b721fbddd693d48d61711a5ea1970719929cb + src/models/createspanmetricrequest.ts: + id: eee57495e44d + last_write_checksum: sha1:d07c8564235838a11b80fa7e1875eaf715d5f950 + pristine_git_object: 07d134907284b8ba363432edb10e80dafbc7888b + src/models/createspanmetricresponse.ts: + id: eafda6bfbfc5 + last_write_checksum: sha1:649a7ad914bad8b6c7d6119b946be1cf3863e841 + pristine_git_object: cc274d2d1d6c218b07dd9b5fd5666e6ef30ed7cf + src/models/createspanrequest.ts: + id: 60e5530a7be5 + last_write_checksum: sha1:ad54161d5639696d74189bd8720d1b842b2c0d5c + pristine_git_object: f1b255e918034f5ff8b7e13b0b475611ea8b0645 + src/models/createspanresponse.ts: + id: 8bb4c41e9e97 + last_write_checksum: sha1:61774dcbf124238a759c0464736ce47b09550a0e + pristine_git_object: 7b7f27b1f4b8e4a959c6df99d77fb2035f35eded + src/models/customformatgrammar.ts: + id: 49af13396242 + last_write_checksum: sha1:b232ee49c93c3cad339f9a0680d97ba70025d3e6 + pristine_git_object: 48bf703d679f8cc2a615439f1c2f8a5014ee7c29 + src/models/customformatgrammargrammar.ts: + id: 5573ba87bb14 + last_write_checksum: sha1:f8579b7351c02e43903b1a650fd6f5776661a46a + pristine_git_object: edf7b0d2611e9e39eecb70fbd1d78890d09dc9d0 + src/models/customformattext.ts: + id: 9f4416e3f035 + last_write_checksum: sha1:2b7aa7a982d59376f173c3cc1fa0acc0b454dbb9 + pristine_git_object: 93b34d33504506800a25f4a5051a1ea58a9918ab + src/models/customoutput.ts: + id: c5804f582828 + last_write_checksum: sha1:2f62e098af25b24751045500823adb6987abc26f + pristine_git_object: 13953418eebe91741284e7ccf43d7a299553894a + src/models/deleteknowledgebaserequest.ts: + id: 9f8bbdfa3098 + last_write_checksum: sha1:5e33245f595bded75447648cb87dc7477f6d0d09 + pristine_git_object: 57fd09748cfecc9de8d77fbbb26ffa2c174ac8cf + src/models/deleteknowledgebaseresponse.ts: + id: 7f2e1c2e2c8c + last_write_checksum: sha1:e1d2ab1ac113a21655ffc96c1e50971a55a847f7 + pristine_git_object: fa98ae834ef0ca3364ec64a7e50a1b2dd81b1a5f + src/models/errors/apierror.ts: + id: e2280e075454 + last_write_checksum: sha1:d1c58225704afaf176827df7c45de48bd8e7398c + pristine_git_object: dc18fe71b1f7823d0cc393dd63f778d1f40f26d9 + src/models/errors/badrequesterror.ts: + id: bd5a812eef15 + last_write_checksum: sha1:e636db2cae36d5448f60925f453dd89aa8a30b8e + pristine_git_object: c34d3c1a4f60c876cffd8a975f6401a90ed00ceb + src/models/errors/conflicterror.ts: + id: 198a1b6dab7f + last_write_checksum: sha1:fd476729c70f28c558044e85852a1985c434de8a + pristine_git_object: 741aaa1f6c9414f3deaafec1e127b3dce2494acd + src/models/errors/error.ts: + id: b25549ecd884 + last_write_checksum: sha1:792ae0e767ae66627f90d32c898f5a7a5203a399 + pristine_git_object: ee11aba97180b398efc894332601eee359092b5e + src/models/errors/httpclienterrors.ts: + id: 6948de76af99 + last_write_checksum: sha1:994ced121c54fecd0af038ccfb7855fbfd3868ec + pristine_git_object: b34f612124c797c2a1106b9735708f679a90b74f + src/models/errors/index.ts: + id: c4e22507cb83 + last_write_checksum: sha1:77cf5f6e42ca0d4d158bf9094193f8eb030866f4 + pristine_git_object: 8345ce97b1e2b789acadb66c999f4d6db3c02c02 + src/models/errors/notfounderror.ts: + id: 63d6866eb038 + last_write_checksum: sha1:a8382582c932809b9285885ce50443f5a022ba5a + pristine_git_object: ceb80b054f98b6e9d46114e32abb31a9a5df2c31 + src/models/errors/oppererror.ts: + id: 11aad139f63d + last_write_checksum: sha1:5607a037fd793cf64777df4008f9221dd78a1010 + pristine_git_object: 7aa28724dfc679a66b30cf201bcaa8a4ccddf9f7 + src/models/errors/requestvalidationerror.ts: + id: 9071ff8f7206 + last_write_checksum: sha1:cc509bcd2eb6866af55830a9cfd9e6608c3c09a4 + pristine_git_object: 84fe7b649829aa6a7b36dac7f02faf644a06194f + src/models/errors/responsevalidationerror.ts: + id: 88ff98a41be9 + last_write_checksum: sha1:6cd2e16c0c021d04f8abf39ed5f10284a287b732 + pristine_git_object: e201861aef4a33a9eb17c51a729f26791e610e42 + src/models/errors/sdkvalidationerror.ts: + id: fb6b2b49c445 + last_write_checksum: sha1:a69da17627bcc32b820544608f3400423ea53f26 + pristine_git_object: 6826e1208a5d7b7d310535d18909646522bf0fbd + src/models/errors/unauthorizederror.ts: + id: f9d465bcd56f + last_write_checksum: sha1:e657487812d6dbf37fcf95f0669f66c034c16cf8 + pristine_git_object: 9606c2af5f809907963ae9f53fab4865697f4392 + src/models/example.ts: + id: b8953c58e0d4 + last_write_checksum: sha1:2b9489063edbe3af886164d2227c78171d8823a9 + pristine_git_object: aea9da261b407d5b56a6b6116101411820b9a292 + src/models/examplein.ts: + id: 9ff34bcb9564 + last_write_checksum: sha1:139504b4953a3d9024529af2a458a85b13a30972 + pristine_git_object: cc229fffe17570548b6dcf09648f520576a82096 + src/models/feedbackinfo.ts: + id: 1c0f894260dc + last_write_checksum: sha1:531c43ec654a8c265d0d56bbaf4affed1e410107 + pristine_git_object: b922c262bb6133c034a39419f902665debd49595 + src/models/file.ts: + id: 6b94c427e8dc + last_write_checksum: sha1:9b87b16439bad3a7e88a39cdccf627ef82b3c0db + pristine_git_object: 40138830654e72f6ca9dfd64a0fce3ee997621fd + src/models/filedownloadurlresponse.ts: + id: e2fefea3b20f + last_write_checksum: sha1:459b1cce6b57789650c330c1110291fa0c9fcc95 + pristine_git_object: 30e3c36df55485dc241cb441b6f2e8024db9b2bc + src/models/filefile.ts: + id: 5c9e294a7ce0 + last_write_checksum: sha1:2a76568cdf8ace79f82aec6d4226552e80c992ad + pristine_git_object: 68da69bd343ee327c17ba4ceab311ba2f0eda80a + src/models/filter.ts: + id: bf04a8cd8dcd + last_write_checksum: sha1:1ac67dc44a6672c3bab898143c3da464eb99b611 + pristine_git_object: cdbee6be499ee63be13487f559a5d4b8a3b0b074 + src/models/functioncallconfigurationinput.ts: + id: 415491d901e9 + last_write_checksum: sha1:6d0c4d74fac294500a0ddc1b5abe55adb61fc536 + pristine_git_object: 06e1d7a0d0326aeae4de06923c2c5e438e123fdd + src/models/functioncallconfigurationoutput.ts: + id: 3be3c7071d1d + last_write_checksum: sha1:58b7086c9f130bf94c8844574bf0ed5170036db9 + pristine_git_object: e7772fac67c3a930e5629aac5c6ab0fda8d9bf01 + src/models/functioncallinput.ts: + id: 38bd6f9398e2 + last_write_checksum: sha1:0516faba0cb1a5a5ae1d189a7d8fdba87d8e51f2 + pristine_git_object: 917172c95b427f14898a50c12710a7647aac991f + src/models/functioncalloutput.ts: + id: 3dacd3bac7e0 + last_write_checksum: sha1:e9b5b836b5f5a031a89d67e97c6edb2011d9105d + pristine_git_object: 929ea76d0f0e93dfc2ce8e97243964d174a793aa + src/models/functiondefinition.ts: + id: 1e19fd0c1e0c + last_write_checksum: sha1:097f27eb9bea1a6bfe5a35630a81cac906fdf3fd + pristine_git_object: b260b0981fbf0c5c2ffdf1d2d07eace447c18a8a + src/models/functionoutput.ts: + id: c2760df20cc2 + last_write_checksum: sha1:4dea3016523d8922ad59acbf54314af3b3424b7e + pristine_git_object: 1b8bec55cdf5e9422cd794f82da90daa895f25de + src/models/getcustommodelresponse.ts: + id: d51eeaefed38 + last_write_checksum: sha1:749dcfc6cc5e4ec0389bc076063888644f000cad + pristine_git_object: 306d8195129194372d54f7a9f764a6340271753a + src/models/getdatasetentriesresponse.ts: + id: 71108759f9f9 + last_write_checksum: sha1:6298febbc81908c3deabcb45dc441f255fa5cfb3 + pristine_git_object: 81ed96bb840e00fff5db35d81718ad52b4f368b3 + src/models/getdatasetentryresponse.ts: + id: 3dd32ea2976b + last_write_checksum: sha1:e69786bd219b5fd2a6aadddc8788f3606ac373f0 + pristine_git_object: 8ccb51456a604d6dbcde2ffcd583aff7d153855d + src/models/getfunctionresponse.ts: + id: 0df2e789559a + last_write_checksum: sha1:2818198a2a23bd8c41b73a9bc05b791e0955ed55 + pristine_git_object: f9b2c0fe9ec9e553661680b85e2d11b44f4f002b + src/models/getknowledgebaseresponse.ts: + id: 670f97ca8d9d + last_write_checksum: sha1:698aee1ba5e9b9301cd50a3152681977e1d56027 + pristine_git_object: ecdf722b5b7342eb8c3d9413e4adf50b06d0d05d + src/models/getmodelaliasresponse.ts: + id: 504a12c597a9 + last_write_checksum: sha1:8f6814b2277324d0b8a0a67684ed0f6583e112ef + pristine_git_object: 6490a6f9ff43cfe3bff3845f3e27005bfbfb9b70 + src/models/getspanmetricresponse.ts: + id: ba046baec63d + last_write_checksum: sha1:8b639edc36cb1296044e965fbf09d936c8951bd9 + pristine_git_object: 62b9ed871c368410ebbe09c40df46baaf7981050 + src/models/getspanresponse.ts: + id: 04a9accfc30c + last_write_checksum: sha1:cc368f45bbf6984b9092567935a8d9798b1b79df + pristine_git_object: ca923396375caa35906e65e16ca61315b2fd57ea + src/models/gettraceresponse.ts: + id: efea4869d0e1 + last_write_checksum: sha1:5702aeebd1db5cadfd28a08126e1365f31a72657 + pristine_git_object: 7ff07dca17d987d0b5678f0a668e943efb2c1871 + src/models/getuploadurlresponse.ts: + id: 1db2876c469f + last_write_checksum: sha1:a6aef4c3ccdffc4af503f18c081b43e215284430 + pristine_git_object: 9ae52be8f2d8de16adef7ee62631ca7df09602e1 + src/models/getusageresultitem.ts: + id: e3fa3db9a091 + last_write_checksum: sha1:5ee9c550cabd7eb0d6d902daa78ceee79a7f19d6 + pristine_git_object: b9d609d56990c37e5ceac4957ac1ff4eb9fad1d3 + src/models/granularity.ts: + id: 371e23fd47d3 + last_write_checksum: sha1:4f23424034bafdd966e3ad2e49a849ae4d851de4 + pristine_git_object: e8cd5b419e1f133a5e0d63bdca6db810d848867b + src/models/imageurl.ts: + id: ecff2648c77d + last_write_checksum: sha1:0eb13ab82f4adcc20b4df87be022aac9caa36d78 + pristine_git_object: 61690cc62ba68deb1c15e548bf466dbf815de24b + src/models/index.ts: + id: f93644b0f37e + last_write_checksum: sha1:fdde67d5f387d9f4b3ab882a5dc18f02cbe6a20c + pristine_git_object: 895ac3eac4912d392d28d71c902d19ace1b6648c + src/models/inputaudio.ts: + id: 9bdc14c7565f + last_write_checksum: sha1:cbdd2b85ee862c49ab572f2a402be112b7d21c0a + pristine_git_object: d1bbaa90c01ea4d2f8e1b1e4374bc29a676d90eb + src/models/jsonschema.ts: + id: 847b89e5c5de + last_write_checksum: sha1:014d43719bd8890f606f2fb6c7f7240ebf8cbab4 + pristine_git_object: 670b7291828694a15055c4ac17412f449852809a + src/models/listcustommodelsresponseitem.ts: + id: 5728302b688f + last_write_checksum: sha1:a6f7b770490499e29e95191d9d422b0ba2e0a3e1 + pristine_git_object: ffd7213902003dc09591413a4b47d5a7c293f948 + src/models/listfilesresponse.ts: + id: 3f19c2c29d31 + last_write_checksum: sha1:fba174b3060afa3575884961a957ae5898726a74 + pristine_git_object: 6ed592267c201f7a309b416fd3907556f1d19e4d + src/models/listfunctionrevisionresponse.ts: + id: 1df76a922119 + last_write_checksum: sha1:81ed8e5b331388315c622d8422a3fb5c91b3418f + pristine_git_object: db91e728d4d38369a6b2d63ad976eec4d02f25d0 + src/models/listfunctionsresponseitem.ts: + id: 2b0e9897d366 + last_write_checksum: sha1:c67441e71776eff374f5777849fe585cde358e4a + pristine_git_object: 38b34ecf170e1145e3e9895d3b974111fbb92def + src/models/listknowledgebasesresponse.ts: + id: c87f5f66589f + last_write_checksum: sha1:4c9bc50950766d5d9de41cedccc00b3eb21f9905 + pristine_git_object: 4444d40a5315d5f6b43644d0d1806c0a1d8e0ee4 + src/models/listlanguagemodelsresponse.ts: + id: fffc29af7e46 + last_write_checksum: sha1:1adc194dd594d1aaa1eb6a6c87f9b6c24584b012 + pristine_git_object: d24c534c7fbaac7d9c4317ba6c3ff25c6028fd6b + src/models/listmodelaliasesresponseitem.ts: + id: 3de12a161b3c + last_write_checksum: sha1:37389e10a490f3efe49e7f38b3cb02c87ec30d8a + pristine_git_object: 61ace6644ae21f6453db5eceae5e4b6c974bca36 + src/models/listrerankmodelsresponse.ts: + id: 78c180126f2d + last_write_checksum: sha1:89400152a3554c0916671326f14d4314135d5b05 + pristine_git_object: 3f47c4468b8bad4e242e538e76c8cca6a1dbe71e + src/models/listspanmetricsresponse.ts: + id: 0bdb21c02066 + last_write_checksum: sha1:56e1edd528c06eeda548db96d5dd5f00c9b6977a + pristine_git_object: 40f03011a6e9a83e36b5ba7437ec713edf234136 + src/models/listtracesresponse.ts: + id: 4d71c48650f9 + last_write_checksum: sha1:8296145edacb65223c6999df05aeb3df9a510732 + pristine_git_object: dd810af0379f2d11b1e4b958a99d9ebad94209b9 + src/models/meta.ts: + id: 4958d003ef97 + last_write_checksum: sha1:e580881867eed6ab0fa680bf674ebaa24e90c981 + pristine_git_object: 46394cfbd1cfbf2145a3adf707cb06c7fe49f310 + src/models/model.ts: + id: b99d4c14e794 + last_write_checksum: sha1:47e8e1633158f37ef3f38ee03ec16d14fb057f85 + pristine_git_object: 496f8a2dd3b182b6afc1468ca9bd142b87ff2a47 + src/models/op.ts: + id: 13353dff4828 + last_write_checksum: sha1:fd5e444be6ae90f4c6e3d67677ee6ad48a7e5e7d + pristine_git_object: 58da15d0c3aaa4713959b65455623f1c20a3abfe + src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts: + id: 98b1820d5772 + last_write_checksum: sha1:9ebbc1a90924335608808b8e96021aa60f70d74c + pristine_git_object: b5b8319911eaca1a6a84db6a63e986fad005b28f + src/models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.ts: + id: 01d98a8fb574 + last_write_checksum: sha1:47202136d49be4eef21874326706957e7500d0b6 + pristine_git_object: c4ba71b219bb70f879cf70cd0f9bf480aeaf3cc8 + src/models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.ts: + id: 65545ebb10b8 + last_write_checksum: sha1:cc24e7f890c4d467f3c5987f1470eac031532f65 + pristine_git_object: c404a07d011443e3f3b825e441f463f9786fe9bc + src/models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.ts: + id: eef42d309087 + last_write_checksum: sha1:50762cd69cb9e92520361f46ae96428b207d25db + pristine_git_object: c7f3e9d3f742f69328aa874de7668d071d02ea0f + src/models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.ts: + id: 2648e746b0da + last_write_checksum: sha1:128347edca8d39a834b880b33a5798031ac81927 + pristine_git_object: dbfdacf138959c733798bf7808759f94501c25f6 + src/models/openaitypeschatcompletioncreateparamsfunction.ts: + id: 292e5286081b + last_write_checksum: sha1:b5ba6f39fed53c98a3eb16878104860635294662 + pristine_git_object: d69de9aeefa25807b643b563673363b77a2b5015 + src/models/operations/addknowledgeknowledgebaseidaddpost.ts: + id: 5ad8d2b6ef81 + last_write_checksum: sha1:247907b43854e9cd3b1566ed7547b7f4e05bbeae + pristine_git_object: aeb81b9f689d146df985767a842cbef0f546e275 + src/models/operations/callfunctionfunctionsfunctionidcallpost.ts: + id: 1644db62c9ec + last_write_checksum: sha1:b0b402117254e721ec5fc689a88e255bb020944a + pristine_git_object: 3c0b1aefcccb6292af975cfb77b112b87b3161af + src/models/operations/callfunctionrevisionfunctionsfunctionidcallrevisionidpost.ts: + id: 836a8f944d2c + last_write_checksum: sha1:0084e9c477b50668479b8760e13ace38d4df2fa6 + pristine_git_object: d50137f5ffee53817c3761bec166fa806fdc79ed + src/models/operations/chatcompletionsopenaichatcompletionspost.ts: + id: c41eaba7d6db + last_write_checksum: sha1:46d54fb7be01c703bed3ec1b8952e904ff064773 + pristine_git_object: c68d0653ab4c1ada9d26e629925240ecfbd8fee2 + src/models/operations/createdatasetentrydatasetsdatasetidpost.ts: + id: 9e75f580cc5f + last_write_checksum: sha1:4084a643630baea84e91015a1283d8e5f1b5a37e + pristine_git_object: 6bce720b17e319d2d87dde8503df034e136540ad + src/models/operations/createmetricspansspanidmetricspost.ts: + id: db1b45544a62 + last_write_checksum: sha1:47b42394b912962495a36af9b7b31b57d0477740 + pristine_git_object: 94c9ab0ab3929be40d8b8da5b080dc1ec2945c2c + src/models/operations/deletecustommodelmodelscustommodeliddelete.ts: + id: d73b5c04bcf5 + last_write_checksum: sha1:53928a316c6a1f4d954ff938a88833cf9a68bf86 + pristine_git_object: e9147414154343e170a9d347080d5384f7fe7e9c + src/models/operations/deletedatasetentrydatasetsdatasetidentriesentryiddelete.ts: + id: 569a2ba68006 + last_write_checksum: sha1:1cc5ea78a679bc3428bd7f978ce12e0c23e52bbd + pristine_git_object: 8d2eafb06d29714d08f98bc93c69e80b1d436d4b + src/models/operations/deletedocumentsknowledgeknowledgebaseidquerydelete.ts: + id: 85ef69da5a9e + last_write_checksum: sha1:265af1737095a89f51eb013da80b4e3ca385da7e + pristine_git_object: eece3a2d4e0d2c557d810f221bd11898d25a6816 + src/models/operations/deletefilefromknowledgebaseknowledgeknowledgebaseidfilesfileiddelete.ts: + id: f5d40c5b3791 + last_write_checksum: sha1:2d36873736cb51992a6cc9bc4263eda396917b77 + pristine_git_object: 410b4cb2d72f36fe536881971bb82288ed0045fd + src/models/operations/deletefunctionfunctionsfunctioniddelete.ts: + id: 4cde8b7c6ab1 + last_write_checksum: sha1:1412e3128ae19a4b72565b59d8fd11f06037c93d + pristine_git_object: b3ff39121b0f5155c34a2f54c8ff2fdb3ff0ff9c + src/models/operations/deleteknowledgebaseknowledgeknowledgebaseiddelete.ts: + id: bab249c16bb2 + last_write_checksum: sha1:01b5d11ba80ea56dbcb7e85bde94eb39d8cfe4fa + pristine_git_object: 172f0ba95605aa340d4618acf38b469049500c30 + src/models/operations/deletemetricspansspanidmetricsmetriciddelete.ts: + id: 618d9e38f31d + last_write_checksum: sha1:50e9a8bf06c056579401cfd629dc188f85e77f17 + pristine_git_object: 5f60a02516f7b3985377378a0a0b5bd4bed90ace + src/models/operations/deletemodelaliasmodelsaliasesaliasiddelete.ts: + id: 9e22134862a5 + last_write_checksum: sha1:9e696c3709a8f0ed0b6ec9ed82bb4d960c5642be + pristine_git_object: 595949a78b2b8222fb3ce975c7cca2629245eefb + src/models/operations/deletespanspansspaniddelete.ts: + id: 654110fe2931 + last_write_checksum: sha1:73ebd03fca7c6dbc5091b41229dbe726338b9f68 + pristine_git_object: b2b2965dce6b4c18c4cb4e8a3aa5dba85a8b7c99 + src/models/operations/functionstreamcallstreampost.ts: + id: e5a256f310d7 + last_write_checksum: sha1:979e26f8a34dbe5a2a2c6df7007955454886765a + pristine_git_object: 340283f7b9393a8cb847c7f332959584eb20c946 + src/models/operations/getcustommodelbynamemodelscustombynamenameget.ts: + id: 9ed64aa434e1 + last_write_checksum: sha1:9086babff32e23ffe5a7d93ffd8646b877c85588 + pristine_git_object: 4e5c1c3233d134b385ee95defae228e22bfb70fb + src/models/operations/getcustommodelmodelscustommodelidget.ts: + id: 3fb6094c790b + last_write_checksum: sha1:56de321a2a6afef3a5d634bf662759d5ec7dbf5c + pristine_git_object: c9876955564b1dad3fef0334d4586f0e5ac92647 + src/models/operations/getdatasetentrydatasetsdatasetidentriesentryidget.ts: + id: 8e7d89ad1b40 + last_write_checksum: sha1:8cfcd74c69c58435943d8ede3a6a50fc38b7d81b + pristine_git_object: e1c2029f7c1485deb8ee76b805673ca2c4892266 + src/models/operations/getfiledownloadurlknowledgeknowledgebaseidfilesfileiddownloadurlget.ts: + id: aa49caf9ad28 + last_write_checksum: sha1:df0f065f67db35fa2487a3a1177284b4b9fd4e50 + pristine_git_object: 762352027ddf005d288e9acdf9250a8bb06d45f9 + src/models/operations/getfunctionbynamefunctionsbynamenameget.ts: + id: d1e8c603d9e5 + last_write_checksum: sha1:e47f47e0c7532f7bc37cb60166262f691ea92fa6 + pristine_git_object: 902c27be153478111f01b28e9023a6d572defeee + src/models/operations/getfunctionbyrevisionfunctionsfunctionidrevisionsrevisionidget.ts: + id: c28b9f02dac6 + last_write_checksum: sha1:da9bd7392ec2910bbdc82e872f1d58e1407aedef + pristine_git_object: 4cb4e06b6b068dfe5e63311bb58b0dff4c3d3154 + src/models/operations/getfunctionfunctionsfunctionidget.ts: + id: d781517e6f03 + last_write_checksum: sha1:cd4806b42811f8780670714649be5f2c3d679352 + pristine_git_object: e54c4a0f8b3618e85f33cf86d6a6cbb3cfedc1de + src/models/operations/getknowledgebasebynameknowledgebynameknowledgebasenameget.ts: + id: 69e82026fecd + last_write_checksum: sha1:c590a7fa803b90f26c368560caa2f1f5752c9db5 + pristine_git_object: fcbb040388afed126e62d3297558fe236d97db23 + src/models/operations/getknowledgebaseknowledgeknowledgebaseidget.ts: + id: 4f37dec8909b + last_write_checksum: sha1:dadde0ddf8ccaf881093e56209a34515b39ea4eb + pristine_git_object: 6cab7fee2025c88cccb0d5033fb0600fc2110d09 + src/models/operations/getmetricspansspanidmetricsmetricidget.ts: + id: 5281215940cb + last_write_checksum: sha1:e822c5c1a0c8693998e42e981c80e0f450b02bb8 + pristine_git_object: 1dd53045e85de248d6a7231c52bacca28183621c + src/models/operations/getmodelaliasbynamemodelsaliasesbynamenameget.ts: + id: afa2cedea0b9 + last_write_checksum: sha1:c822958eb3aa77f3a17f7c7ec77ff5649767e7e0 + pristine_git_object: 32aed00101167ecde880b708306d44fbb6873c6c + src/models/operations/getmodelaliasmodelsaliasesaliasidget.ts: + id: 4f87179dc85e + last_write_checksum: sha1:458a7e44133cd35dfdafd2fa1c46383120e8bc0d + pristine_git_object: 6bb9cef6ac8669a43d59940a46246c56bb4890d6 + src/models/operations/getspanspansspanidget.ts: + id: f8cf411e713c + last_write_checksum: sha1:7c7e88df4cacdbc6af0b46636ae7d6899d0a4de0 + pristine_git_object: 1da859adf42302daa000556fc0c78cf82debffd9 + src/models/operations/gettracetracestraceidget.ts: + id: edbeea565c31 + last_write_checksum: sha1:66f848beb275633bc5a33e96dc2e44a2e0b131de + pristine_git_object: 1da1457097c7ef90cd3dcae65857fd006cd33eff + src/models/operations/getuploadurlknowledgeknowledgebaseiduploadurlget.ts: + id: ebbd49399273 + last_write_checksum: sha1:e9f2b5f6096b6afd0a15b5121c68fbcede7fa840 + pristine_git_object: 57bc33563a2c3273d4ed326de006e49d49d5be10 + src/models/operations/index.ts: + id: 0d9ffaf774d2 + last_write_checksum: sha1:ca429ba7b56624de03484c11e214daee4217d35b + pristine_git_object: 60715225bdd794ec3b48e02f819731b95f6d802c + src/models/operations/listcustommodelsmodelscustomget.ts: + id: e455d05ec0ed + last_write_checksum: sha1:630a7362d10d2360cf3fc6c275dccea9c0ef0d58 + pristine_git_object: 792f7719dc9a043043041b9815abfc53a0939423 + src/models/operations/listdatasetentriesdatasetsdatasetidentriesget.ts: + id: 7b042a5e1a63 + last_write_checksum: sha1:353689e5b7b272de29a4c4c005cea4000e07de76 + pristine_git_object: d3ba88284163de4cfb744acfdc00f2df89c0ee7c + src/models/operations/listfilesknowledgeknowledgebaseidfilesget.ts: + id: c74bbd9a7e38 + last_write_checksum: sha1:cbd26202f16b032d26b13a0034ae7048e6fd1e08 + pristine_git_object: e04a4dcbdd7d71be77f9629e9661dc1216b8192d + src/models/operations/listfunctionrevisionsfunctionsfunctionidrevisionsget.ts: + id: fe41c46a3fe2 + last_write_checksum: sha1:7f49080ceef894478ba19a033cef7c47605c5165 + pristine_git_object: f45267885c756803146476e8dce5de13d096ff36 + src/models/operations/listfunctionsfunctionsget.ts: + id: 68b39bfeec72 + last_write_checksum: sha1:3e0a27220ae67102129657866aded789cac8168c + pristine_git_object: 4cbb611c852e0638e0f4a26a354e46d920e26eb3 + src/models/operations/listknowledgebasesknowledgeget.ts: + id: dd19400cc5e9 + last_write_checksum: sha1:469103ba179c775a8160cd12b7d4caaa76f66f76 + pristine_git_object: 9174a90062897112d437c17dc1e78967116f503c + src/models/operations/listmetricsspansspanidmetricsget.ts: + id: 3192e9d27b11 + last_write_checksum: sha1:cdee7d8456cd8428e59f8d2cccfe5942b8fc4b13 + pristine_git_object: 2c28c2a115b04038020013ddcd9175f995cc803c + src/models/operations/listmodelaliasesmodelsaliasesget.ts: + id: 5dc441441ead + last_write_checksum: sha1:39ceec5b62a23950dfd5ad4c4f700e1ab9671f6f + pristine_git_object: 655dd22e15831d0a67445fd0ad7da8263d6bba84 + src/models/operations/listmodelsmodelsget.ts: + id: c90754055b4a + last_write_checksum: sha1:7667cff2b9a54203bb2973fa22e6a2b3e1ffdda9 + pristine_git_object: 7586b13c787dee408f0fdcc49de8f398be9b3e70 + src/models/operations/listtracestracesget.ts: + id: 6096467ecc48 + last_write_checksum: sha1:c64636fb47fe67c57a42884f3e4fcffffc739dd5 + pristine_git_object: d5bf83b53b8c7ebc8858e2ce6b3d80252665788a + src/models/operations/querydatasetentriesdatasetsdatasetidentriesquerypost.ts: + id: 4a03466b751d + last_write_checksum: sha1:d5d5ae89e40faf21d3985a2c0fb52b4f776f9976 + pristine_git_object: 9e3640cb84c9747215133a8e774601cf6f596e24 + src/models/operations/queryknowledgebaseknowledgeknowledgebaseidquerypost.ts: + id: 4846d4db958e + last_write_checksum: sha1:aae76b7759e2396cac02fd8ad98aedea82ba6d19 + pristine_git_object: be61983f90f8f075422b786c87c249189caa82d5 + src/models/operations/registerfileuploadknowledgeknowledgebaseidregisterfilepost.ts: + id: a7dbc76598d5 + last_write_checksum: sha1:db685478765786048005d3a402a3cf192b6a7126 + pristine_git_object: 81b7bca1704654564d1b6749dc9f535af301acad + src/models/operations/savetodatasetspansspanidsaveexamplespost.ts: + id: 605c41d933e4 + last_write_checksum: sha1:19018eabcbcdaa948194ee7ad936d9c8277655d5 + pristine_git_object: e4865764ed20eb001efc709ea404efc2d7ed7633 + src/models/operations/streamfunctionfunctionsfunctionidcallstreampost.ts: + id: 07b7965e3d2a + last_write_checksum: sha1:ac26e55dde7cbaf0b6c7e656c61c1ccdbf4a1a59 + pristine_git_object: c5e209297c2d6b43b38cfe3957bc5b4b9d715a2a + src/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpost.ts: + id: 23b4043d5b3b + last_write_checksum: sha1:c2f12403cdb84b20e2ca77da85804a972c06d8af + pristine_git_object: e4a05eaf485a6acd52649c048a886a784885c6da + src/models/operations/submitspanfeedbackspansspanidfeedbackpost.ts: + id: 2d935520f209 + last_write_checksum: sha1:bd5106f5bd91eac640a4c4c42bf6f9f29be5ff66 + pristine_git_object: 76cf2644f78133a09f8f85931f80da821c1cbc47 + src/models/operations/updatecustommodelmodelscustommodelidpatch.ts: + id: 48d79692472a + last_write_checksum: sha1:37b8b73f9f6c1bc3b938b5ac2df9a659e44deb40 + pristine_git_object: 171d222c6ac4f0154b01859e5cdc7bda4f739084 + src/models/operations/updatedatasetentrydatasetsdatasetidentriesentryidpatch.ts: + id: 622bd44a38e3 + last_write_checksum: sha1:88a5793993521afecd3fb058345efc4930c7c6db + pristine_git_object: ce58b3f6974bcd90ef48091917b359b28775925d + src/models/operations/updatefunctionfunctionsfunctionidpatch.ts: + id: 42b1c2daa614 + last_write_checksum: sha1:1ec54c5345c28fe8e1e523e23099b8460ab68a93 + pristine_git_object: 92ff5e9df7479a88cb0be75ddaf220fd0c1393cc + src/models/operations/updatemetricspansspanidmetricsmetricidpatch.ts: + id: f9d87f43a36f + last_write_checksum: sha1:6c24384b50cbfad28e5c1a2d23806bcca2db4304 + pristine_git_object: 02bc054ac41631350e6d97a8e9f5a53e4dc2f176 + src/models/operations/updatemodelaliasmodelsaliasesaliasidpatch.ts: + id: c73d9bf4899f + last_write_checksum: sha1:1137c087a34eaa5ba0dfa959ab240a298c2d0aaf + pristine_git_object: ebbf4f55255126ac2e63427f38eb6503a7648edc + src/models/operations/updatespanspansspanidpatch.ts: + id: 697bb3062f2b + last_write_checksum: sha1:e52ada8e712fb5ca6baaf75018054673ad8c205b + pristine_git_object: 4227e8f19083644f64de4417aa32bcb4e8a4088f + src/models/operations/uploadfileknowledgeknowledgebaseiduploadpost.ts: + id: 55b08f723c6a + last_write_checksum: sha1:ce3b4f69a593e49f205ec7d652ee7692da074208 + pristine_git_object: 5ea1b7131a9f32a14c8b277c169dd9fb68d6e1ec + src/models/operations/usageanalyticsusageget.ts: + id: 142334adf3de + last_write_checksum: sha1:ffc5bed3717c9b3765fd1dc99e3301790ef863ab + pristine_git_object: 23157722ea23491873cbd3ef38a069ebbd082924 + src/models/paginatedresponsegetdatasetentriesresponse.ts: + id: 922012a66625 + last_write_checksum: sha1:3ea42a8a4cb068af8bdcd2561c1481301b3d844b + pristine_git_object: 015445f64e703418bae6b6bf895238964d818739 + src/models/paginatedresponselistcustommodelsresponseitem.ts: + id: 276294cbad55 + last_write_checksum: sha1:94177a9ee7abf0a2bd0d7592f24d51680eeea043 + pristine_git_object: 684092c973cb532db5fe790f912ae0f7f0db78ae + src/models/paginatedresponselistfilesresponse.ts: + id: e43df5608eb4 + last_write_checksum: sha1:0ad3a560b263144f396a482dccf77c26e57d73b3 + pristine_git_object: 00cd9b06fd185fad4c46684484e52a25da937ef6 + src/models/paginatedresponselistfunctionrevisionresponse.ts: + id: 43756b597caf + last_write_checksum: sha1:442fcef5e5809e96a1b8d214e5218514cc15a648 + pristine_git_object: 8ce7b3c9b1bd341e911799c0d5d20066597fe628 + src/models/paginatedresponselistfunctionsresponseitem.ts: + id: b7bbd0cc0208 + last_write_checksum: sha1:973e0ad28db36a8a49b0000452b7cd0a4f5aa56e + pristine_git_object: 6723da8f14d06e00a89b247d004c7004803eed8d + src/models/paginatedresponselistknowledgebasesresponse.ts: + id: e1a449747f76 + last_write_checksum: sha1:7cdd2ef6c7bd964179e7aa0f82bd0b825c903b1b + pristine_git_object: 71e1bb0174aedb29f8af9377377ab53dfa0e5502 + src/models/paginatedresponselistlanguagemodelsresponse.ts: + id: f7716fe967d6 + last_write_checksum: sha1:a571664b53dba67e7567553dea25bc3f30365a88 + pristine_git_object: 57ddbd260469c65b21394418dd74fece6029a716 + src/models/paginatedresponselistmodelaliasesresponseitem.ts: + id: 806518ed1ba1 + last_write_checksum: sha1:7a2362bea8898ac944a5e2beef2544233c46111d + pristine_git_object: 23037a0a918ec6d28d99191d8c0d749a90330f03 + src/models/paginatedresponselistrerankmodelsresponse.ts: + id: a2eed9c0836a + last_write_checksum: sha1:f6615dd8f9e6e72dd0b5443338c3fd0e5ab4b81f + pristine_git_object: ef3b7b17c0216f0d6f98ae36443194b65a0d0c98 + src/models/paginatedresponselistspanmetricsresponse.ts: + id: 1afb83a5e22b + last_write_checksum: sha1:15a0ba221eef1db1edc42a2729fef6898cc7fd3a + pristine_git_object: ce3f112f1827c75e2ae07b2c0896bfdb630ccbe0 + src/models/paginatedresponselisttracesresponse.ts: + id: 441d8d9d9282 + last_write_checksum: sha1:2f9613fbc5fe27fb60d0c14b3f7c11978c364af6 + pristine_git_object: 8d99b6e986a59a140377bc0d5d74484512bcaf6b + src/models/prompttokensdetails.ts: + id: f6a8f5d8d09b + last_write_checksum: sha1:fb3de1157f13f6af8248e148f9c3533e36d8b0c8 + pristine_git_object: d22c01ac4532496741a0ab1440d5b9ddd581170a + src/models/querydatasetentriesresponse.ts: + id: 2da742f8ceda + last_write_checksum: sha1:bd3c4a08dd5995732090a3a7a8d86b7255030de8 + pristine_git_object: a508abc158c3d2ea35d116e71b07e37b7c451b5d + src/models/queryknowledgebaserequest.ts: + id: 54fd2c5a8c60 + last_write_checksum: sha1:5aeae6576a82e5889b3c21dcdc54c62f10052260 + pristine_git_object: 10d77daa4721ad50e30c9da961179f6e5beb459e + src/models/queryknowledgebaseresponse.ts: + id: b35fa38ca499 + last_write_checksum: sha1:3a79044de394bd5768e00220bf42e5b8b12e54ed + pristine_git_object: 7143ad0a47ba90a04d7c4684f92f46847f11e89b + src/models/registercustommodelrequest.ts: + id: af5f2f2e687d + last_write_checksum: sha1:b48e9b96c109fb8675c33a631b3d21c9092fe2c4 + pristine_git_object: dac0d091ee075f5dd6994f41e56d9d854cdf6f50 + src/models/registercustommodelresponse.ts: + id: e6417e1d4f02 + last_write_checksum: sha1:8a29f285bfbd694d9c04d65892270d251118090a + pristine_git_object: d50e91ce38a8afebe401116f1652342df7b75505 + src/models/registerfileuploadrequest.ts: + id: 8b755121c85b + last_write_checksum: sha1:e491eb7b7404c402f6583401433cb1848c68e504 + pristine_git_object: 24fc4e7fc4975fd0209914ad0f5edc5f415f9854 + src/models/registerfileuploadresponse.ts: + id: 0980f2ef7434 + last_write_checksum: sha1:14fa4b814282cddbe3e4ee7c34cd385dae566956 + pristine_git_object: f4d9729baaf18fb5818a2f3e4c78b8f9d13c7b10 + src/models/rerankcost.ts: + id: 7f59efb76820 + last_write_checksum: sha1:73a23ac66d00a12ff9f71a34d43670dce7db2b3a + pristine_git_object: eb6369017a5b9566ff8ad17ce97f5afd47177316 + src/models/rerankdocument.ts: + id: 71592132a2e6 + last_write_checksum: sha1:e7554e09d64b466b1ab9be54037e1f5eead91717 + pristine_git_object: 6852dff64441e0be22a4d329379b52f1773de7d9 + src/models/rerankrequestmodel.ts: + id: cbaa0851e6f3 + last_write_checksum: sha1:417620f537c50a2bb23530c1522a822e975cc022 + pristine_git_object: 212af821d7e92800bd15af715f4ee2203bc01cf6 + src/models/rerankresponsemodel.ts: + id: 8449e548924a + last_write_checksum: sha1:ab0bcba4e5168dbafc2327343b0b0aa6e13c6711 + pristine_git_object: 2a0c1ca017ed9da452451784ebadd43e11cdea83 + src/models/rerankresult.ts: + id: bb1e37ad1114 + last_write_checksum: sha1:7cef8d426a51f306fe13dfe358666f61d5dc070a + pristine_git_object: da54c9c8efb41414fb977bb99564536c081b6a46 + src/models/responseformatjsonobject.ts: + id: ae5419a9e494 + last_write_checksum: sha1:33db9a6a8b14bd58d82054d6d9dbcfbeddde41be + pristine_git_object: fb92f4b85059b314634fe1fb180f308dad7a4cbf + src/models/responseformatjsonschema.ts: + id: ff0b42f802dc + last_write_checksum: sha1:dea26df436f357c5832c1315a701d23402e42a62 + pristine_git_object: 43469a6f57fbc640e1e9d40b7b037bb8d5c98747 + src/models/responseformattext.ts: + id: 872eaee007ec + last_write_checksum: sha1:2f0c1589b192debb802457255c627598f8264545 + pristine_git_object: fde67810bbcf13d0d9bcbbc6d33f43d656c8d270 + src/models/savetodatasetresponse.ts: + id: bb5a3ad6bfa6 + last_write_checksum: sha1:3ccca1e7e001404711af93c14c92fe32dae88e8b + pristine_git_object: 665505eb2927138bcaddc5b6b958f9d250d46645 + src/models/security.ts: + id: d90c6c784ca5 + last_write_checksum: sha1:be7f7107341b67137e0247d7cd0bdb6ce24d3bb4 + pristine_git_object: a647865388931e84ac445807949fe82044d6ae64 + src/models/spandata.ts: + id: d28c49b2e42c + last_write_checksum: sha1:ef8113a9fdefe7dffb1e88929740eb2551677a6f + pristine_git_object: fc9d5ebf3ae52553892cd32a3db4bb203baf5195 + src/models/spanmetricdata.ts: + id: dfdfbf5b3530 + last_write_checksum: sha1:ca259af6549e83edad1bc6b180ff915800a5eb1f + pristine_git_object: 71dbe900bcbe86c819c69b979ff1f5421632bbce + src/models/spanschema.ts: + id: 40d088e6153b + last_write_checksum: sha1:6ba025a0383066e7225f3816b3b70ef70bfa21c5 + pristine_git_object: aa4d6ce56b3b70de8825ccd639a2ce77334b4b25 + src/models/submitfeedbackrequest.ts: + id: 8c77927ea6f0 + last_write_checksum: sha1:aa6b2ee54df2db9212b7149f43eaee0dace7bee3 + pristine_git_object: 8ba1c26b09739cfc6b169d5371374fb853abb03f + src/models/submitfeedbackresponse.ts: + id: ac83d2dc4c63 + last_write_checksum: sha1:bc39ed45299ff95c3af62801fdb2281867e0b45f + pristine_git_object: c50dd165b083ec73b87daf98810145cc5899389b + src/models/textprocessingconfiguration.ts: + id: 8371cd5ff7a8 + last_write_checksum: sha1:e89b12ee695c2939b6e951dd2eea051c60966b60 + pristine_git_object: c6e74a45696e28b8f46aa049d17522b934b440aa + src/models/tmodel.ts: + id: 3a97afaa8bf6 + last_write_checksum: sha1:827fc63f77a7f360bc02f5a46f1aff20d38e17e2 + pristine_git_object: aacd736ca5f4f251d7b21f20d8f82f65aa254a64 + src/models/toplogprob.ts: + id: f10a928ba199 + last_write_checksum: sha1:2a45d73ce148934b3709b04e144bb807fc3c6384 + pristine_git_object: 4057a5fc1dbdd0ca3c4a9c07274ba238c1d3f27d + src/models/updatecustommodelrequest.ts: + id: 1458bed91cdc + last_write_checksum: sha1:be774d65220af0f86abf9da8d7eee6d0ada02fb6 + pristine_git_object: e1bc6f2f551bff45f69bd57a62be4df9d09746e7 + src/models/updatecustommodelresponse.ts: + id: b68982601415 + last_write_checksum: sha1:d075212b6f0f01d277fbebe56ecbee24e1f18ae7 + pristine_git_object: c6496d1dad1f2705845029f71db285d57b421cb9 + src/models/updatedatasetentryrequest.ts: + id: a7eb1ea68dab + last_write_checksum: sha1:7d10d62856d003a204a1c5256abc7f411eebbd2c + pristine_git_object: 26b5581dfef1bbf61885248edce664c134ab8cc2 + src/models/updatedatasetentryresponse.ts: + id: 1c8e568cd18a + last_write_checksum: sha1:fd0da8535f2dce5f82cddd66454b5cdb44504be5 + pristine_git_object: 8344ab2dac66b73105a18d7fcc81113d067767c4 + src/models/updatefunctionrequest.ts: + id: 8513ed120b5d + last_write_checksum: sha1:e5100f914c8ab5708980842a2d2cc7d58a497909 + pristine_git_object: 20f638a2ad05539fea1f2d5a0f933efd8b4e10d8 + src/models/updatefunctionresponse.ts: + id: c8d50abcf66b + last_write_checksum: sha1:96087a0754fa9f76d9876e281e20fa232442b080 + pristine_git_object: b4d0ad2d4b89e6d5c3b19436b095391ec12f8c52 + src/models/updatemodelaliasrequest.ts: + id: 8725185942ba + last_write_checksum: sha1:d831eb0d425e7e55f69a63fc963128647be141f0 + pristine_git_object: 1c7471d6f1853a9288986c6e07846e87d14801b4 + src/models/updatemodelaliasresponse.ts: + id: 85d7918eec69 + last_write_checksum: sha1:db57f256cbc15a8e1aaf9e190690c0bc677fd43b + pristine_git_object: 52816969e77676481e3e57bfa45de64f9e4dfabc + src/models/updatespanmetricrequest.ts: + id: 85981d9b8e88 + last_write_checksum: sha1:aeae3a0a7edf857d8990f6940b8b4f3b873c0da4 + pristine_git_object: 5a0fb5493211042b277fd74cd31e652521f56152 + src/models/updatespanmetricresponse.ts: + id: 133405a09f70 + last_write_checksum: sha1:b5c8530bd6fe1ec53e7a546848fbeaac842e9219 + pristine_git_object: 0288d42379fd6a143b5a4bfc4b711439c6cbab54 + src/models/updatespanrequest.ts: + id: 389b1557fb51 + last_write_checksum: sha1:a1cbf421dfe318b4957793fc20f87d9efd1dc928 + pristine_git_object: 47911c5666389d2e1c2558ed48bc0cb4500b2ae9 + src/models/updatespanresponse.ts: + id: 197c5b5dd0b3 + last_write_checksum: sha1:34e799899b63c1db14d766fd2e258574ea6be932 + pristine_git_object: 8ffb50664f991ac9b4e4a5f2ff5b18a44da11d9a + src/models/uploadfileresponse.ts: + id: 5a93fd3caff8 + last_write_checksum: sha1:0b9c3a47e5079bf10a7df17c44632ed6349846da + pristine_git_object: 2270c556702227bbad7650f8acceff843a41090a + src/models/websearchoptions.ts: + id: ae8f3959df1c + last_write_checksum: sha1:8a9c3bf41e8409d8efeafd65dc43eef204358c16 + pristine_git_object: 280e0ed7d3e82d492cae6664bb08797f42472598 + src/models/websearchoptionsuserlocation.ts: + id: 46d6a153a80a + last_write_checksum: sha1:1c1090b0e3137df955187252f8d76aac1476d873 + pristine_git_object: fb335e9992f7e9cdacad81e870ef1adc8ed67b18 + src/models/websearchoptionsuserlocationapproximate.ts: + id: b8d608734838 + last_write_checksum: sha1:a986bfb22e959feffd7a793fcf9f84c98edc7fb3 + pristine_git_object: d8b3d31e1e2748607ef44c52dd76f419b68ea689 + src/sdk/analytics.ts: + id: 411d91261be3 + last_write_checksum: sha1:8e9b3ffa697fc48d7d37fedc53709d71d9751fb7 + pristine_git_object: 4e34a767c7eb5b4ed9d63aea2d2feb97c962bb29 + src/sdk/datasets.ts: + id: 2f1e89a21914 + last_write_checksum: sha1:f79bc8ba058001f9a28d01371c7bd3e38327592a + pristine_git_object: 42bef07ab2e7d2e39c9199b776333c8a5c8a0fe6 + src/sdk/embeddings.ts: + id: 70cbb18bedaf + last_write_checksum: sha1:0ad0669bae842aa7e70c9b6a64c744383718c62b + pristine_git_object: 048a6e4a9e8d01f7a86bb1b76c209f8a645f91e8 + src/sdk/entries.ts: + id: 0b5a3a679c57 + last_write_checksum: sha1:927dc8eb8ffc5005d16fc542cf25e13bd7ed531a + pristine_git_object: 37c2f97fe32b9eec41886eb3e8f157d482339e1d + src/sdk/functions.ts: + id: cbc1d38a7d46 + last_write_checksum: sha1:92fb1021fbe6c93c21f0642aaf9099d94c58dfed + pristine_git_object: 062812a1a0ca8f1225a42cd86cfce49d449f35d4 + src/sdk/index.ts: + id: a857902a703f + last_write_checksum: sha1:ed6d64f2a6135349aa8498b8d8cff9ba85c7fb8f + pristine_git_object: ecac2264817bb369ff2dbf0f0e9029807e67ff77 + src/sdk/knowledge.ts: + id: a447d40cc327 + last_write_checksum: sha1:d6a043d493dd5c0fdfdd827a3bf6015bbf8e1117 + pristine_git_object: 0ff42252ec5f9cbf7d891afd4658cf96ded17080 + src/sdk/languagemodels.ts: + id: c375504a88ed + last_write_checksum: sha1:2fd11f3b1ddc63587b4e26272342c7b6021ffa7f + pristine_git_object: e8f024e724b2821b97c1b37c20b1a54a9e3d0bae + src/sdk/models.ts: + id: 8c761ab180fd + pristine_git_object: 8319ec06b42f9a99d0aff440ff670d93787559f1 + src/sdk/openai.ts: + id: e8d34c2ab254 + last_write_checksum: sha1:decaaaa60ce99bcfb51403bb96595931fae8d0a9 + pristine_git_object: cab5fb91106feebcde9896aa42af27b22fc4127a + src/sdk/rerank.ts: + id: 0d5a42c2eac3 + last_write_checksum: sha1:94b267396a3aebaefce21846525d0e871ae4eb81 + pristine_git_object: ed1ed7a0d2166c23923f646fb9e8b0a34ba6c065 + src/sdk/revisions.ts: + id: 3a714caba039 + last_write_checksum: sha1:c8ff47ee760e2816a56f66d34e4365f1b9838da3 + pristine_git_object: 5869bac1e088a87e0e332d7062fbf06c50dee14d + src/sdk/sdk.ts: + id: 784571af2f69 + last_write_checksum: sha1:09771e5a66368bd8a8642c587bd2345ee8be5069 + pristine_git_object: e00d496d4c180f31f716f08fb474125c26ba115e + src/sdk/spanmetrics.ts: + id: 273ced1995d4 + last_write_checksum: sha1:591300ee66cfb61b181225004ccfa68ddbb05ff6 + pristine_git_object: c02eac38bf32ba00ab782ff408536f3390b6b51d + src/sdk/spans.ts: + id: c69e203e4392 + last_write_checksum: sha1:2cc2ff982d0252b6e65d20106928e15795b0214c + pristine_git_object: 5c9f9fbceef3e17b5381a62286dd7acddb7da448 + src/sdk/traces.ts: + id: 4845e9e6a8d1 + last_write_checksum: sha1:0c7cfc5f465d2aaf68c220dc28631d3206c48548 + pristine_git_object: 76b7c8155a3ca16b5b32067882c14e649e9a4186 + src/types/async.ts: + id: fac8da972f86 + last_write_checksum: sha1:3ff07b3feaf390ec1aeb18ff938e139c6c4a9585 + pristine_git_object: 689dba5de50e8769e5f3bb913e3f42a146d15bc1 + src/types/blobs.ts: + id: f8ab9b326c86 + last_write_checksum: sha1:cf45d78916671cb6345a11c97c633c64402bc27c + pristine_git_object: cce2892d4f573a120ef3907db90ab15f5979cfda + src/types/constdatetime.ts: + id: 0f7b6f513917 + last_write_checksum: sha1:dfaaf9adfaf49808bd4c9dea0039f21b7088d9c0 + pristine_git_object: fe62144eaf6a2054fc8ca9a98466e70f41b5434d + src/types/enums.ts: + id: 4d03ddfe5100 + last_write_checksum: sha1:ee590453d2c87e33e89c633d37ee46907eca0e58 + pristine_git_object: aba0ffd2a3308a31e516d83b52823d80aa65a8f9 + src/types/fp.ts: + id: ae9f0fb8aab6 + last_write_checksum: sha1:d24994d58f37a1ca106847fcc6d2e976c6f1c093 + pristine_git_object: ccbe51eac69dfb0da5131f14fd753c4b47c1d527 + src/types/index.ts: + id: cd7a0a5ed005 + last_write_checksum: sha1:bf43b3dccb960ca9ae9c5ab940da4786255881cd + pristine_git_object: abf0b7ab8f196829df8946da40d627a46da68e3c + src/types/operations.ts: + id: 314da01dca47 + last_write_checksum: sha1:c49e724cfb1259296381cb57bc0fcdd2eae45865 + pristine_git_object: beb81e10f0b9eee2ed398a853fe6f737b743f818 + src/types/rfcdate.ts: + id: 9eb64906dcd6 + last_write_checksum: sha1:8e5f382e02fe21c2f2e24deb1b7bbf8cddd3dd16 + pristine_git_object: c79b3f53a3dd922aa2ace5a4191c8652cf9a8e89 + src/types/streams.ts: + id: f99be9c4bf14 + last_write_checksum: sha1:cc9ced2dd34a76c3a1bd7784ccda1cc3b37ab9a9 + pristine_git_object: a0163e7a99cea88f21d0ad4ce3af1c720180ee20 + src/types/unrecognized.ts: + id: 476605c40716 + last_write_checksum: sha1:d33ac686528492f4cdc0dbf81ed343b4afe020fe + pristine_git_object: b7a2a13f3dff50663429df24ae2f55b647ff1084 + tsconfig.json: + id: 61ebb9fd6e8c + last_write_checksum: sha1:c3ec7996536cdb9a54319e7d1eb3b199b733d34c + pristine_git_object: 0ccdbe286a8780e06a469a9eb7e2fb95322fd507 examples: function_call_call_post: speakeasy-default-function-call-call-post: requestBody: - application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} + application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} responses: "200": application/json: {"span_id": "174109ca-ebca-4823-8c0d-08c3789b2fea", "message": "The sum of 1 and 3 is 4", "json_payload": {"sum": 4}, "cached": true, "images": ["image_url"], "usage": {"input_tokens": 25, "output_tokens": 972, "output_tokens_details": {"reasoning_tokens": 704}, "total_tokens": 997}, "cost": {"generation": 0.0001, "platform": 0.00001, "total": 0.00011}} @@ -787,19 +3026,19 @@ examples: text/event-stream: {"data": {"delta": "Hello! How can I assist you today?", "span_id": "123e4567-e89b-12d3-a456-426614174000"}} span_id_only: requestBody: - application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} + application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} responses: "200": text/event-stream: {"data": {"span_id": "123e4567-e89b-12d3-a456-426614174000"}} text_streaming_content: requestBody: - application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} + application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} responses: "200": text/event-stream: {"data": {"delta": "Hello! How can I assist you today?", "chunk_type": "text"}} structured_streaming_content: requestBody: - application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} + application/json: {"name": "add_numbers", "instructions": "Calculate the sum of two numbers", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "input": {"x": 4, "y": 5}, "examples": [{"input": {"x": 1, "y": 3}, "output": {"sum": 4}, "comment": "Adds two numbers"}], "parent_span_id": "123e4567-e89b-12d3-a456-426614174000", "tags": {"project": "project_456", "user": "company_123"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} responses: "200": text/event-stream: {"data": {"delta": "John Doe", "json_path": "people[0].name", "chunk_type": "json"}} @@ -1032,7 +3271,7 @@ examples: path: span_id: "77b258a2-45c1-4b87-a50c-9116bc8ed1d6" requestBody: - application/json: {"name": "my span", "start_time": "2025-11-28T13:52:33.685136Z", "type": "email_tool", "end_time": "2025-11-28T13:52:33.685231Z", "input": "Hello, world!", "output": "Hello, world!", "error": "Exception: This is an error message", "meta": {"key": "value"}, "score": 10} + application/json: {"name": "my span", "start_time": "2025-12-09T10:00:59.573865Z", "type": "email_tool", "end_time": "2025-12-09T10:00:59.573926Z", "input": "Hello, world!", "output": "Hello, world!", "error": "Exception: This is an error message", "meta": {"key": "value"}, "score": 10} responses: "200": application/json: {"name": "my span", "start_time": "2024-03-20T10:00:00+00:00", "id": "84d9ffc8-336c-4953-b92f-fe05d5405951", "trace_id": "123e4567-e89b-12d3-a456-426614174000", "parent_id": "123e4567-e89b-12d3-a456-426614174000", "type": "email_tool", "end_time": "2024-03-20T10:00:10+00:00", "input": "Hello, world!", "output": "Hello, world!", "error": "Exception: This is an error message", "meta": {"key": "value"}, "score": 10} @@ -1246,10 +3485,10 @@ examples: create_function_functions_post: speakeasy-default-create-function-functions-post: requestBody: - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}} responses: "201": - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "a246e349-93f1-4ae1-9ed0-d3ca4f954a62", "observer_enabled": true} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "a246e349-93f1-4ae1-9ed0-d3ca4f954a62", "observer_enabled": true} "409": application/json: {"type": "ConflictError", "message": "The resource already exists", "detail": "The resource already exists"} "422": @@ -1284,7 +3523,7 @@ examples: function_id: "42016421-16e8-4b50-a2d1-30fc3894763b" responses: "200": - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "692b28e0-d3e6-4ea4-adf0-c629aeecfdab", "observer_enabled": true} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "692b28e0-d3e6-4ea4-adf0-c629aeecfdab", "observer_enabled": true} "422": application/json: {"type": "RequestValidationError", "message": "The request is invalid", "detail": {"input": "input value", "loc": ["path", "to", "error"], "msg": "error message", "type": "type of error"}} "400": @@ -1299,10 +3538,10 @@ examples: path: function_id: "b0f067f3-9aa2-4ce2-aad5-c9832fbf4fa4" requestBody: - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false, "invocation.cache.ttl": 0, "invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5}} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false, "invocation.cache.ttl": 0, "invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5}} responses: "200": - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "7111f9fb-1c8a-4eee-bcaf-a0e751490b7f", "observer_enabled": true} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "7111f9fb-1c8a-4eee-bcaf-a0e751490b7f", "observer_enabled": true} "422": application/json: {"type": "RequestValidationError", "message": "The request is invalid", "detail": {"input": "input value", "loc": ["path", "to", "error"], "msg": "error message", "type": "type of error"}} "400": @@ -1333,7 +3572,7 @@ examples: revision_id: "e60c7090-8545-4e1f-84d5-0d9e4be6c0d1" responses: "200": - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "1af4e1a9-7f11-4e7c-962d-827d5bc836a1", "observer_enabled": true} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "1af4e1a9-7f11-4e7c-962d-827d5bc836a1", "observer_enabled": true} "422": application/json: {"type": "RequestValidationError", "message": "The request is invalid", "detail": {"input": "input value", "loc": ["path", "to", "error"], "msg": "error message", "type": "type of error"}} "400": @@ -1676,7 +3915,7 @@ examples: name: "" responses: "200": - application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 0, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "6f887222-2826-417a-ba23-ddd2b6bc4cbf", "observer_enabled": true} + application/json: {"name": "my-function", "description": "This function is used to add two numbers and return the result.", "instructions": "You are a calculator that adds two numbers and returns the result.", "input_schema": {"properties": {"x": {"title": "X", "type": "integer"}, "y": {"title": "Y", "type": "integer"}}, "required": ["x", "y"], "title": "OpperInputExample", "type": "object"}, "output_schema": {"properties": {"sum": {"title": "Sum", "type": "integer"}}, "required": ["sum"], "title": "OpperOutputExample", "type": "object"}, "configuration": {"invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, "invocation.cache.ttl": 0, "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false}, "id": "6f887222-2826-417a-ba23-ddd2b6bc4cbf", "observer_enabled": true} "400": application/json: {"type": "BadRequestError", "message": "The request is invalid", "detail": "The request is invalid"} "401": @@ -2016,5 +4255,764 @@ examples: application/json: {"type": "NotFoundError", "message": "The resource was not found", "detail": "Span 123e4567-e89b-12d3-a456-426614174000 not found"} "422": application/json: {"type": "RequestValidationError", "message": "The request is invalid", "detail": {"input": "input value", "loc": ["path", "to", "error"], "msg": "error message", "type": "type of error"}} + upload_file_knowledge__knowledge_base_id__upload_post: + speakeasy-default-upload-file-knowledge-knowledge-base-id-upload-post: + parameters: + path: + knowledge_base_id: "68275f14-e70f-4536-be7e-03a877ce8be8" + requestBody: + multipart/form-data: {"file": "x-file: example.file", "chunk_size": 2000, "chunk_overlap": 200, "metadata": "{\"category\": \"legal\", \"client\": \"acme\"}"} + responses: + "201": + application/json: {"id": "c3e5f895-19ee-441a-87c8-97e005c826fd", "key": "", "original_filename": "", "document_id": 946193} + "400": + application/json: {"type": "BadRequestError", "message": "The request is invalid", "detail": "The request is invalid"} + "401": + application/json: {"type": "UnauthorizedError", "message": "The request is unauthorized", "detail": "The API key is invalid"} + "404": + application/json: {"type": "NotFoundError", "message": "The resource was not found", "detail": "Span 123e4567-e89b-12d3-a456-426614174000 not found"} + "422": + application/json: {"type": "RequestValidationError", "message": "The request is invalid", "detail": {"input": "input value", "loc": ["path", "to", "error"], "msg": "error message", "type": "type of error"}} + submit_span_feedback_spans__span_id__feedback_post: + speakeasy-default-submit-span-feedback-spans-span-id-feedback-post: + parameters: + path: + span_id: "c1be9633-665b-418c-a08f-19cb9734dd23" + requestBody: + application/json: {"score": 1, "comment": "Great output, exactly what I needed"} + responses: + "200": + application/json: {"span_id": "6e2c8656-c871-4147-aed9-6b71878d6726", "score": 5330.69, "example_saved": true} + "400": + application/json: {"type": "BadRequestError", "message": "The request is invalid", "detail": "The request is invalid"} + "401": + application/json: {"type": "UnauthorizedError", "message": "The request is unauthorized", "detail": "The API key is invalid"} + "404": + application/json: {"type": "NotFoundError", "message": "The resource was not found", "detail": "Span 123e4567-e89b-12d3-a456-426614174000 not found"} + "422": + application/json: {"type": "RequestValidationError", "message": "The request is invalid", "detail": {"input": "input value", "loc": ["path", "to", "error"], "msg": "error message", "type": "type of error"}} examplesVersion: 1.0.2 generatedTests: {} +generatedFiles: + - .devcontainer/README.md + - .devcontainer/devcontainer.json + - .devcontainer/setup.sh + - .gitattributes + - .npmignore + - FUNCTIONS.md + - RUNTIMES.md + - USAGE.md + - docs/lib/utils/retryconfig.md + - docs/models/addrequest.md + - docs/models/annotation.md + - docs/models/annotationurlcitation.md + - docs/models/appapipublicv2functioncallcallfunctionrequest.md + - docs/models/appapipublicv2functioncallcallfunctionresponse.md + - docs/models/appapipublicv2functionscallfunctionrequest.md + - docs/models/appapipublicv2functionscallfunctionresponse.md + - docs/models/audio.md + - docs/models/chatcompletion.md + - docs/models/chatcompletionallowedtoolchoiceparam.md + - docs/models/chatcompletionallowedtoolsparam.md + - docs/models/chatcompletionassistantmessageparam.md + - docs/models/chatcompletionassistantmessageparamcontent1.md + - docs/models/chatcompletionassistantmessageparamcontent2.md + - docs/models/chatcompletionassistantmessageparamtoolcall.md + - docs/models/chatcompletionaudio.md + - docs/models/chatcompletionaudioparam.md + - docs/models/chatcompletionaudioparamformat.md + - docs/models/chatcompletioncontentpartimageparam.md + - docs/models/chatcompletioncontentpartinputaudioparam.md + - docs/models/chatcompletioncontentpartrefusalparam.md + - docs/models/chatcompletioncontentparttextparam.md + - docs/models/chatcompletioncustomtoolparam.md + - docs/models/chatcompletiondevelopermessageparam.md + - docs/models/chatcompletiondevelopermessageparamcontent.md + - docs/models/chatcompletionfunctioncalloptionparam.md + - docs/models/chatcompletionfunctionmessageparam.md + - docs/models/chatcompletionfunctiontoolparam.md + - docs/models/chatcompletionmessage.md + - docs/models/chatcompletionmessagecustomtoolcall.md + - docs/models/chatcompletionmessagecustomtoolcallparam.md + - docs/models/chatcompletionmessagefunctiontoolcall.md + - docs/models/chatcompletionmessagefunctiontoolcallparam.md + - docs/models/chatcompletionmessagetoolcall.md + - docs/models/chatcompletionnamedtoolchoicecustomparam.md + - docs/models/chatcompletionnamedtoolchoiceparam.md + - docs/models/chatcompletionnonstreaming.md + - docs/models/chatcompletionnonstreamingfunctioncallenum.md + - docs/models/chatcompletionnonstreamingfunctioncallunion.md + - docs/models/chatcompletionnonstreamingmessage.md + - docs/models/chatcompletionnonstreamingmodality.md + - docs/models/chatcompletionnonstreamingreasoningeffort.md + - docs/models/chatcompletionnonstreamingresponseformat.md + - docs/models/chatcompletionnonstreamingservicetier.md + - docs/models/chatcompletionnonstreamingstop.md + - docs/models/chatcompletionnonstreamingtool.md + - docs/models/chatcompletionnonstreamingtoolchoiceenum.md + - docs/models/chatcompletionnonstreamingtoolchoiceunion.md + - docs/models/chatcompletionnonstreamingverbosity.md + - docs/models/chatcompletionpredictioncontentparam.md + - docs/models/chatcompletionpredictioncontentparamcontent.md + - docs/models/chatcompletionservicetier.md + - docs/models/chatcompletionstreaming.md + - docs/models/chatcompletionstreamingfunctioncallenum.md + - docs/models/chatcompletionstreamingfunctioncallunion.md + - docs/models/chatcompletionstreamingmessage.md + - docs/models/chatcompletionstreamingmodality.md + - docs/models/chatcompletionstreamingreasoningeffort.md + - docs/models/chatcompletionstreamingresponseformat.md + - docs/models/chatcompletionstreamingservicetier.md + - docs/models/chatcompletionstreamingstop.md + - docs/models/chatcompletionstreamingtool.md + - docs/models/chatcompletionstreamingtoolchoiceenum.md + - docs/models/chatcompletionstreamingtoolchoiceunion.md + - docs/models/chatcompletionstreamingverbosity.md + - docs/models/chatcompletionstreamoptionsparam.md + - docs/models/chatcompletionsystemmessageparam.md + - docs/models/chatcompletionsystemmessageparamcontent.md + - docs/models/chatcompletiontokenlogprob.md + - docs/models/chatcompletiontoolmessageparam.md + - docs/models/chatcompletiontoolmessageparamcontent.md + - docs/models/chatcompletionusermessageparam.md + - docs/models/chatcompletionusermessageparamcontent1.md + - docs/models/chatcompletionusermessageparamcontent2.md + - docs/models/choice.md + - docs/models/choicelogprobs.md + - docs/models/completiontokensdetails.md + - docs/models/completionusage.md + - docs/models/createdatasetentryrequest.md + - docs/models/createdatasetentryresponse.md + - docs/models/createembeddingrequest.md + - docs/models/createembeddingresponse.md + - docs/models/createfunctionrequest.md + - docs/models/createfunctionresponse.md + - docs/models/createknowledgebaserequest.md + - docs/models/createknowledgebaseresponse.md + - docs/models/createmodelaliasrequest.md + - docs/models/createmodelaliasresponse.md + - docs/models/createspanmetricrequest.md + - docs/models/createspanmetricresponse.md + - docs/models/createspanrequest.md + - docs/models/createspanresponse.md + - docs/models/customformatgrammar.md + - docs/models/customformatgrammargrammar.md + - docs/models/customformattext.md + - docs/models/customoutput.md + - docs/models/deleteknowledgebaserequest.md + - docs/models/deleteknowledgebaseresponse.md + - docs/models/detail.md + - docs/models/errors/badrequesterror.md + - docs/models/errors/conflicterror.md + - docs/models/errors/errort.md + - docs/models/errors/notfounderror.md + - docs/models/errors/requestvalidationerror.md + - docs/models/errors/unauthorizederror.md + - docs/models/example.md + - docs/models/examplein.md + - docs/models/filedownloadurlresponse.md + - docs/models/filefile.md + - docs/models/filet.md + - docs/models/filter.md + - docs/models/finishreason.md + - docs/models/format.md + - docs/models/functioncallconfigurationinput.md + - docs/models/functioncallconfigurationoutput.md + - docs/models/functioncallinput.md + - docs/models/functioncalloutput.md + - docs/models/functiondefinition.md + - docs/models/functionoutput.md + - docs/models/getcustommodelresponse.md + - docs/models/getdatasetentriesresponse.md + - docs/models/getdatasetentryresponse.md + - docs/models/getfunctionresponse.md + - docs/models/getknowledgebaseresponse.md + - docs/models/getmodelaliasresponse.md + - docs/models/getspanmetricresponse.md + - docs/models/getspanresponse.md + - docs/models/gettraceresponse.md + - docs/models/getuploadurlresponse.md + - docs/models/getusageresultitem.md + - docs/models/granularity.md + - docs/models/imageurl.md + - docs/models/input.md + - docs/models/inputaudio.md + - docs/models/inputaudioformat.md + - docs/models/jsonpayload.md + - docs/models/jsonschema.md + - docs/models/listcustommodelsresponseitem.md + - docs/models/listfilesresponse.md + - docs/models/listfunctionrevisionresponse.md + - docs/models/listfunctionsresponseitem.md + - docs/models/listknowledgebasesresponse.md + - docs/models/listlanguagemodelsresponse.md + - docs/models/listmodelaliasesresponseitem.md + - docs/models/listrerankmodelsresponse.md + - docs/models/listspanmetricsresponse.md + - docs/models/listtracesresponse.md + - docs/models/meta.md + - docs/models/mode.md + - docs/models/model.md + - docs/models/op.md + - docs/models/openaitypeschatchatcompletioncustomtoolparamcustom.md + - docs/models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.md + - docs/models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.md + - docs/models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.md + - docs/models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.md + - docs/models/openaitypeschatcompletioncreateparamsfunction.md + - docs/models/operations/addknowledgeknowledgebaseidaddpostrequest.md + - docs/models/operations/callfunctionfunctionsfunctionidcallpostrequest.md + - docs/models/operations/callfunctionrevisionfunctionsfunctionidcallrevisionidpostrequest.md + - docs/models/operations/createdatasetentrydatasetsdatasetidpostrequest.md + - docs/models/operations/createmetricspansspanidmetricspostrequest.md + - docs/models/operations/deletecustommodelmodelscustommodeliddeleterequest.md + - docs/models/operations/deletedatasetentrydatasetsdatasetidentriesentryiddeleterequest.md + - docs/models/operations/deletedocumentsknowledgeknowledgebaseidquerydeleterequest.md + - docs/models/operations/deletefilefromknowledgebaseknowledgeknowledgebaseidfilesfileiddeleterequest.md + - docs/models/operations/deletefunctionfunctionsfunctioniddeleterequest.md + - docs/models/operations/deleteknowledgebaseknowledgeknowledgebaseiddeleterequest.md + - docs/models/operations/deletemetricspansspanidmetricsmetriciddeleterequest.md + - docs/models/operations/deletemodelaliasmodelsaliasesaliasiddeleterequest.md + - docs/models/operations/deletespanspansspaniddeleterequest.md + - docs/models/operations/delta.md + - docs/models/operations/functionstreamcallstreampostresponse.md + - docs/models/operations/functionstreamcallstreampostresponsebody.md + - docs/models/operations/getcustommodelbynamemodelscustombynamenamegetrequest.md + - docs/models/operations/getcustommodelmodelscustommodelidgetrequest.md + - docs/models/operations/getdatasetentrydatasetsdatasetidentriesentryidgetrequest.md + - docs/models/operations/getfiledownloadurlknowledgeknowledgebaseidfilesfileiddownloadurlgetrequest.md + - docs/models/operations/getfunctionbynamefunctionsbynamenamegetrequest.md + - docs/models/operations/getfunctionbyrevisionfunctionsfunctionidrevisionsrevisionidgetrequest.md + - docs/models/operations/getfunctionfunctionsfunctionidgetrequest.md + - docs/models/operations/getknowledgebasebynameknowledgebynameknowledgebasenamegetrequest.md + - docs/models/operations/getknowledgebaseknowledgeknowledgebaseidgetrequest.md + - docs/models/operations/getmetricspansspanidmetricsmetricidgetrequest.md + - docs/models/operations/getmodelaliasbynamemodelsaliasesbynamenamegetrequest.md + - docs/models/operations/getmodelaliasmodelsaliasesaliasidgetrequest.md + - docs/models/operations/getspanspansspanidgetrequest.md + - docs/models/operations/gettracetracestraceidgetrequest.md + - docs/models/operations/getuploadurlknowledgeknowledgebaseiduploadurlgetrequest.md + - docs/models/operations/listcustommodelsmodelscustomgetrequest.md + - docs/models/operations/listdatasetentriesdatasetsdatasetidentriesgetrequest.md + - docs/models/operations/listfilesknowledgeknowledgebaseidfilesgetrequest.md + - docs/models/operations/listfunctionrevisionsfunctionsfunctionidrevisionsgetrequest.md + - docs/models/operations/listfunctionsfunctionsgetrequest.md + - docs/models/operations/listknowledgebasesknowledgegetrequest.md + - docs/models/operations/listmetricsspansspanidmetricsgetrequest.md + - docs/models/operations/listmodelaliasesmodelsaliasesgetrequest.md + - docs/models/operations/listmodelsmodelsgetrequest.md + - docs/models/operations/listtracestracesgetrequest.md + - docs/models/operations/payload.md + - docs/models/operations/querydatasetentriesdatasetsdatasetidentriesquerypostrequest.md + - docs/models/operations/queryknowledgebaseknowledgeknowledgebaseidquerypostrequest.md + - docs/models/operations/registerfileuploadknowledgeknowledgebaseidregisterfilepostrequest.md + - docs/models/operations/savetodatasetspansspanidsaveexamplespostrequest.md + - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostdata.md + - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostrequest.md + - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostresponse.md + - docs/models/operations/streamfunctionfunctionsfunctionidcallstreampostresponsebody.md + - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostdata.md + - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostrequest.md + - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostresponse.md + - docs/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpostresponsebody.md + - docs/models/operations/streamingchunk.md + - docs/models/operations/updatecustommodelmodelscustommodelidpatchrequest.md + - docs/models/operations/updatedatasetentrydatasetsdatasetidentriesentryidpatchrequest.md + - docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md + - docs/models/operations/updatemetricspansspanidmetricsmetricidpatchrequest.md + - docs/models/operations/updatemodelaliasmodelsaliasesaliasidpatchrequest.md + - docs/models/operations/updatespanspansspanidpatchrequest.md + - docs/models/operations/usageanalyticsusagegetrequest.md + - docs/models/paginatedresponsegetdatasetentriesresponse.md + - docs/models/paginatedresponselistcustommodelsresponseitem.md + - docs/models/paginatedresponselistfilesresponse.md + - docs/models/paginatedresponselistfunctionrevisionresponse.md + - docs/models/paginatedresponselistfunctionsresponseitem.md + - docs/models/paginatedresponselistknowledgebasesresponse.md + - docs/models/paginatedresponselistlanguagemodelsresponse.md + - docs/models/paginatedresponselistmodelaliasesresponseitem.md + - docs/models/paginatedresponselistrerankmodelsresponse.md + - docs/models/paginatedresponselistspanmetricsresponse.md + - docs/models/paginatedresponselisttracesresponse.md + - docs/models/prompttokensdetails.md + - docs/models/querydatasetentriesresponse.md + - docs/models/queryknowledgebaserequest.md + - docs/models/queryknowledgebaseresponse.md + - docs/models/registercustommodelrequest.md + - docs/models/registercustommodelresponse.md + - docs/models/registerfileuploadrequest.md + - docs/models/registerfileuploadresponse.md + - docs/models/rerankcost.md + - docs/models/rerankdocument.md + - docs/models/rerankrequestmodel.md + - docs/models/rerankresponsemodel.md + - docs/models/rerankresult.md + - docs/models/responseformatjsonobject.md + - docs/models/responseformatjsonschema.md + - docs/models/responseformattext.md + - docs/models/savetodatasetresponse.md + - docs/models/searchcontextsize.md + - docs/models/security.md + - docs/models/spandata.md + - docs/models/spanmetricdata.md + - docs/models/spanschema.md + - docs/models/syntax.md + - docs/models/textprocessingconfiguration.md + - docs/models/tmodel.md + - docs/models/tmodel1.md + - docs/models/toplogprob.md + - docs/models/updatecustommodelrequest.md + - docs/models/updatecustommodelresponse.md + - docs/models/updatedatasetentryrequest.md + - docs/models/updatedatasetentryresponse.md + - docs/models/updatefunctionrequest.md + - docs/models/updatefunctionresponse.md + - docs/models/updatemodelaliasrequest.md + - docs/models/updatemodelaliasresponse.md + - docs/models/updatespanmetricrequest.md + - docs/models/updatespanmetricresponse.md + - docs/models/updatespanrequest.md + - docs/models/updatespanresponse.md + - docs/models/value1.md + - docs/models/value2.md + - docs/models/voice.md + - docs/models/voiceenum.md + - docs/models/websearchoptions.md + - docs/models/websearchoptionsuserlocation.md + - docs/models/websearchoptionsuserlocationapproximate.md + - docs/sdks/analytics/README.md + - docs/sdks/datasets/README.md + - docs/sdks/embeddings/README.md + - docs/sdks/entries/README.md + - docs/sdks/functions/README.md + - docs/sdks/knowledge/README.md + - docs/sdks/languagemodels/README.md + - docs/sdks/models/README.md + - docs/sdks/openai/README.md + - docs/sdks/opper/README.md + - docs/sdks/rerank/README.md + - docs/sdks/revisions/README.md + - docs/sdks/spanmetrics/README.md + - docs/sdks/spans/README.md + - docs/sdks/traces/README.md + - eslint.config.mjs + - examples/.env.template + - examples/README.md + - examples/call.example.ts + - examples/package.json + - jsr.json + - package.json + - src/core.ts + - src/funcs/analyticsGetUsage.ts + - src/funcs/call.ts + - src/funcs/datasetsCreateEntry.ts + - src/funcs/datasetsDeleteEntry.ts + - src/funcs/datasetsEntriesUpdate.ts + - src/funcs/datasetsGetEntry.ts + - src/funcs/datasetsListEntries.ts + - src/funcs/datasetsQueryEntries.ts + - src/funcs/embeddingsCreate.ts + - src/funcs/functionsCall.ts + - src/funcs/functionsCallRevision.ts + - src/funcs/functionsCreate.ts + - src/funcs/functionsDelete.ts + - src/funcs/functionsGet.ts + - src/funcs/functionsGetByName.ts + - src/funcs/functionsGetByRevision.ts + - src/funcs/functionsList.ts + - src/funcs/functionsRevisionsList.ts + - src/funcs/functionsStream.ts + - src/funcs/functionsStreamRevision.ts + - src/funcs/functionsUpdate.ts + - src/funcs/knowledgeAdd.ts + - src/funcs/knowledgeCreate.ts + - src/funcs/knowledgeDelete.ts + - src/funcs/knowledgeDeleteDocuments.ts + - src/funcs/knowledgeDeleteFile.ts + - src/funcs/knowledgeGet.ts + - src/funcs/knowledgeGetByName.ts + - src/funcs/knowledgeGetFileDownloadUrl.ts + - src/funcs/knowledgeGetUploadUrl.ts + - src/funcs/knowledgeList.ts + - src/funcs/knowledgeListFiles.ts + - src/funcs/knowledgeQuery.ts + - src/funcs/knowledgeRegisterFileUpload.ts + - src/funcs/languageModelsDeleteCustom.ts + - src/funcs/languageModelsGetCustom.ts + - src/funcs/languageModelsGetCustomByName.ts + - src/funcs/languageModelsList.ts + - src/funcs/languageModelsListCustom.ts + - src/funcs/languageModelsRegisterCustom.ts + - src/funcs/languageModelsUpdateCustom.ts + - src/funcs/modelsCreateModelAliasModelsAliasesPost.ts + - src/funcs/modelsDeleteModelAliasModelsAliasesAliasIdDelete.ts + - src/funcs/modelsGetModelAliasByNameModelsAliasesByNameNameGet.ts + - src/funcs/modelsGetModelAliasModelsAliasesAliasIdGet.ts + - src/funcs/modelsListModelAliasesModelsAliasesGet.ts + - src/funcs/modelsUpdateModelAliasModelsAliasesAliasIdPatch.ts + - src/funcs/openaiCreateChatCompletion.ts + - src/funcs/rerankListRerankModelsRerankModelsGet.ts + - src/funcs/rerankRerankDocumentsRerankPost.ts + - src/funcs/spanMetricsCreateMetric.ts + - src/funcs/spanMetricsDelete.ts + - src/funcs/spanMetricsGet.ts + - src/funcs/spanMetricsList.ts + - src/funcs/spanMetricsUpdateMetric.ts + - src/funcs/spansCreate.ts + - src/funcs/spansDelete.ts + - src/funcs/spansGet.ts + - src/funcs/spansSaveExamples.ts + - src/funcs/spansUpdate.ts + - src/funcs/stream.ts + - src/funcs/tracesGet.ts + - src/funcs/tracesList.ts + - src/hooks/hooks.ts + - src/hooks/index.ts + - src/hooks/types.ts + - src/index.ts + - src/lib/base64.ts + - src/lib/config.ts + - src/lib/dlv.ts + - src/lib/encodings.ts + - src/lib/env.ts + - src/lib/event-streams.ts + - src/lib/files.ts + - src/lib/http.ts + - src/lib/is-plain-object.ts + - src/lib/logger.ts + - src/lib/matchers.ts + - src/lib/primitives.ts + - src/lib/retries.ts + - src/lib/schemas.ts + - src/lib/sdks.ts + - src/lib/security.ts + - src/lib/url.ts + - src/mcp-server/build.mts + - src/mcp-server/cli.ts + - src/mcp-server/cli/start/command.ts + - src/mcp-server/cli/start/impl.ts + - src/mcp-server/console-logger.ts + - src/mcp-server/extensions.ts + - src/mcp-server/mcp-server.ts + - src/mcp-server/prompts.ts + - src/mcp-server/resources.ts + - src/mcp-server/scopes.ts + - src/mcp-server/server.ts + - src/mcp-server/shared.ts + - src/mcp-server/tools.ts + - src/mcp-server/tools/analyticsGetUsage.ts + - src/mcp-server/tools/call.ts + - src/mcp-server/tools/datasetsCreateEntry.ts + - src/mcp-server/tools/datasetsDeleteEntry.ts + - src/mcp-server/tools/datasetsEntriesUpdate.ts + - src/mcp-server/tools/datasetsGetEntry.ts + - src/mcp-server/tools/datasetsListEntries.ts + - src/mcp-server/tools/datasetsQueryEntries.ts + - src/mcp-server/tools/embeddingsCreate.ts + - src/mcp-server/tools/functionsCall.ts + - src/mcp-server/tools/functionsCallRevision.ts + - src/mcp-server/tools/functionsCreate.ts + - src/mcp-server/tools/functionsDelete.ts + - src/mcp-server/tools/functionsGet.ts + - src/mcp-server/tools/functionsGetByName.ts + - src/mcp-server/tools/functionsGetByRevision.ts + - src/mcp-server/tools/functionsList.ts + - src/mcp-server/tools/functionsRevisionsList.ts + - src/mcp-server/tools/functionsStream.ts + - src/mcp-server/tools/functionsStreamRevision.ts + - src/mcp-server/tools/functionsUpdate.ts + - src/mcp-server/tools/knowledgeAdd.ts + - src/mcp-server/tools/knowledgeCreate.ts + - src/mcp-server/tools/knowledgeDelete.ts + - src/mcp-server/tools/knowledgeDeleteDocuments.ts + - src/mcp-server/tools/knowledgeDeleteFile.ts + - src/mcp-server/tools/knowledgeGet.ts + - src/mcp-server/tools/knowledgeGetByName.ts + - src/mcp-server/tools/knowledgeGetFileDownloadUrl.ts + - src/mcp-server/tools/knowledgeGetUploadUrl.ts + - src/mcp-server/tools/knowledgeList.ts + - src/mcp-server/tools/knowledgeListFiles.ts + - src/mcp-server/tools/knowledgeQuery.ts + - src/mcp-server/tools/knowledgeRegisterFileUpload.ts + - src/mcp-server/tools/languageModelsDeleteCustom.ts + - src/mcp-server/tools/languageModelsGetCustom.ts + - src/mcp-server/tools/languageModelsGetCustomByName.ts + - src/mcp-server/tools/languageModelsList.ts + - src/mcp-server/tools/languageModelsListCustom.ts + - src/mcp-server/tools/languageModelsRegisterCustom.ts + - src/mcp-server/tools/languageModelsUpdateCustom.ts + - src/mcp-server/tools/modelsCreateModelAliasModelsAliasesPost.ts + - src/mcp-server/tools/modelsDeleteModelAliasModelsAliasesAliasIdDelete.ts + - src/mcp-server/tools/modelsGetModelAliasByNameModelsAliasesByNameNameGet.ts + - src/mcp-server/tools/modelsGetModelAliasModelsAliasesAliasIdGet.ts + - src/mcp-server/tools/modelsListModelAliasesModelsAliasesGet.ts + - src/mcp-server/tools/modelsUpdateModelAliasModelsAliasesAliasIdPatch.ts + - src/mcp-server/tools/openaiCreateChatCompletion.ts + - src/mcp-server/tools/rerankListRerankModelsRerankModelsGet.ts + - src/mcp-server/tools/rerankRerankDocumentsRerankPost.ts + - src/mcp-server/tools/spanMetricsCreateMetric.ts + - src/mcp-server/tools/spanMetricsDelete.ts + - src/mcp-server/tools/spanMetricsGet.ts + - src/mcp-server/tools/spanMetricsList.ts + - src/mcp-server/tools/spanMetricsUpdateMetric.ts + - src/mcp-server/tools/spansCreate.ts + - src/mcp-server/tools/spansDelete.ts + - src/mcp-server/tools/spansGet.ts + - src/mcp-server/tools/spansSaveExamples.ts + - src/mcp-server/tools/spansUpdate.ts + - src/mcp-server/tools/stream.ts + - src/mcp-server/tools/tracesGet.ts + - src/mcp-server/tools/tracesList.ts + - src/models/addrequest.ts + - src/models/annotation.ts + - src/models/annotationurlcitation.ts + - src/models/appapipublicv2functioncallcallfunctionrequest.ts + - src/models/appapipublicv2functioncallcallfunctionresponse.ts + - src/models/appapipublicv2functionscallfunctionrequest.ts + - src/models/appapipublicv2functionscallfunctionresponse.ts + - src/models/audio.ts + - src/models/chatcompletion.ts + - src/models/chatcompletionallowedtoolchoiceparam.ts + - src/models/chatcompletionallowedtoolsparam.ts + - src/models/chatcompletionassistantmessageparam.ts + - src/models/chatcompletionaudio.ts + - src/models/chatcompletionaudioparam.ts + - src/models/chatcompletioncontentpartimageparam.ts + - src/models/chatcompletioncontentpartinputaudioparam.ts + - src/models/chatcompletioncontentpartrefusalparam.ts + - src/models/chatcompletioncontentparttextparam.ts + - src/models/chatcompletioncustomtoolparam.ts + - src/models/chatcompletiondevelopermessageparam.ts + - src/models/chatcompletionfunctioncalloptionparam.ts + - src/models/chatcompletionfunctionmessageparam.ts + - src/models/chatcompletionfunctiontoolparam.ts + - src/models/chatcompletionmessage.ts + - src/models/chatcompletionmessagecustomtoolcall.ts + - src/models/chatcompletionmessagecustomtoolcallparam.ts + - src/models/chatcompletionmessagefunctiontoolcall.ts + - src/models/chatcompletionmessagefunctiontoolcallparam.ts + - src/models/chatcompletionnamedtoolchoicecustomparam.ts + - src/models/chatcompletionnamedtoolchoiceparam.ts + - src/models/chatcompletionnonstreaming.ts + - src/models/chatcompletionpredictioncontentparam.ts + - src/models/chatcompletionstreaming.ts + - src/models/chatcompletionstreamoptionsparam.ts + - src/models/chatcompletionsystemmessageparam.ts + - src/models/chatcompletiontokenlogprob.ts + - src/models/chatcompletiontoolmessageparam.ts + - src/models/chatcompletionusermessageparam.ts + - src/models/choice.ts + - src/models/choicelogprobs.ts + - src/models/completiontokensdetails.ts + - src/models/completionusage.ts + - src/models/createdatasetentryrequest.ts + - src/models/createdatasetentryresponse.ts + - src/models/createembeddingrequest.ts + - src/models/createembeddingresponse.ts + - src/models/createfunctionrequest.ts + - src/models/createfunctionresponse.ts + - src/models/createknowledgebaserequest.ts + - src/models/createknowledgebaseresponse.ts + - src/models/createmodelaliasrequest.ts + - src/models/createmodelaliasresponse.ts + - src/models/createspanmetricrequest.ts + - src/models/createspanmetricresponse.ts + - src/models/createspanrequest.ts + - src/models/createspanresponse.ts + - src/models/customformatgrammar.ts + - src/models/customformatgrammargrammar.ts + - src/models/customformattext.ts + - src/models/customoutput.ts + - src/models/deleteknowledgebaserequest.ts + - src/models/deleteknowledgebaseresponse.ts + - src/models/errors/apierror.ts + - src/models/errors/badrequesterror.ts + - src/models/errors/conflicterror.ts + - src/models/errors/error.ts + - src/models/errors/httpclienterrors.ts + - src/models/errors/index.ts + - src/models/errors/notfounderror.ts + - src/models/errors/oppererror.ts + - src/models/errors/requestvalidationerror.ts + - src/models/errors/responsevalidationerror.ts + - src/models/errors/sdkvalidationerror.ts + - src/models/errors/unauthorizederror.ts + - src/models/example.ts + - src/models/examplein.ts + - src/models/file.ts + - src/models/filedownloadurlresponse.ts + - src/models/filefile.ts + - src/models/filter.ts + - src/models/functioncallconfigurationinput.ts + - src/models/functioncallconfigurationoutput.ts + - src/models/functioncallinput.ts + - src/models/functioncalloutput.ts + - src/models/functiondefinition.ts + - src/models/functionoutput.ts + - src/models/getcustommodelresponse.ts + - src/models/getdatasetentriesresponse.ts + - src/models/getdatasetentryresponse.ts + - src/models/getfunctionresponse.ts + - src/models/getknowledgebaseresponse.ts + - src/models/getmodelaliasresponse.ts + - src/models/getspanmetricresponse.ts + - src/models/getspanresponse.ts + - src/models/gettraceresponse.ts + - src/models/getuploadurlresponse.ts + - src/models/getusageresultitem.ts + - src/models/granularity.ts + - src/models/imageurl.ts + - src/models/index.ts + - src/models/inputaudio.ts + - src/models/jsonschema.ts + - src/models/listcustommodelsresponseitem.ts + - src/models/listfilesresponse.ts + - src/models/listfunctionrevisionresponse.ts + - src/models/listfunctionsresponseitem.ts + - src/models/listknowledgebasesresponse.ts + - src/models/listlanguagemodelsresponse.ts + - src/models/listmodelaliasesresponseitem.ts + - src/models/listrerankmodelsresponse.ts + - src/models/listspanmetricsresponse.ts + - src/models/listtracesresponse.ts + - src/models/meta.ts + - src/models/model.ts + - src/models/op.ts + - src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts + - src/models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.ts + - src/models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.ts + - src/models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.ts + - src/models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.ts + - src/models/openaitypeschatcompletioncreateparamsfunction.ts + - src/models/operations/addknowledgeknowledgebaseidaddpost.ts + - src/models/operations/callfunctionfunctionsfunctionidcallpost.ts + - src/models/operations/callfunctionrevisionfunctionsfunctionidcallrevisionidpost.ts + - src/models/operations/chatcompletionsopenaichatcompletionspost.ts + - src/models/operations/createdatasetentrydatasetsdatasetidpost.ts + - src/models/operations/createmetricspansspanidmetricspost.ts + - src/models/operations/deletecustommodelmodelscustommodeliddelete.ts + - src/models/operations/deletedatasetentrydatasetsdatasetidentriesentryiddelete.ts + - src/models/operations/deletedocumentsknowledgeknowledgebaseidquerydelete.ts + - src/models/operations/deletefilefromknowledgebaseknowledgeknowledgebaseidfilesfileiddelete.ts + - src/models/operations/deletefunctionfunctionsfunctioniddelete.ts + - src/models/operations/deleteknowledgebaseknowledgeknowledgebaseiddelete.ts + - src/models/operations/deletemetricspansspanidmetricsmetriciddelete.ts + - src/models/operations/deletemodelaliasmodelsaliasesaliasiddelete.ts + - src/models/operations/deletespanspansspaniddelete.ts + - src/models/operations/functionstreamcallstreampost.ts + - src/models/operations/getcustommodelbynamemodelscustombynamenameget.ts + - src/models/operations/getcustommodelmodelscustommodelidget.ts + - src/models/operations/getdatasetentrydatasetsdatasetidentriesentryidget.ts + - src/models/operations/getfiledownloadurlknowledgeknowledgebaseidfilesfileiddownloadurlget.ts + - src/models/operations/getfunctionbynamefunctionsbynamenameget.ts + - src/models/operations/getfunctionbyrevisionfunctionsfunctionidrevisionsrevisionidget.ts + - src/models/operations/getfunctionfunctionsfunctionidget.ts + - src/models/operations/getknowledgebasebynameknowledgebynameknowledgebasenameget.ts + - src/models/operations/getknowledgebaseknowledgeknowledgebaseidget.ts + - src/models/operations/getmetricspansspanidmetricsmetricidget.ts + - src/models/operations/getmodelaliasbynamemodelsaliasesbynamenameget.ts + - src/models/operations/getmodelaliasmodelsaliasesaliasidget.ts + - src/models/operations/getspanspansspanidget.ts + - src/models/operations/gettracetracestraceidget.ts + - src/models/operations/getuploadurlknowledgeknowledgebaseiduploadurlget.ts + - src/models/operations/index.ts + - src/models/operations/listcustommodelsmodelscustomget.ts + - src/models/operations/listdatasetentriesdatasetsdatasetidentriesget.ts + - src/models/operations/listfilesknowledgeknowledgebaseidfilesget.ts + - src/models/operations/listfunctionrevisionsfunctionsfunctionidrevisionsget.ts + - src/models/operations/listfunctionsfunctionsget.ts + - src/models/operations/listknowledgebasesknowledgeget.ts + - src/models/operations/listmetricsspansspanidmetricsget.ts + - src/models/operations/listmodelaliasesmodelsaliasesget.ts + - src/models/operations/listmodelsmodelsget.ts + - src/models/operations/listtracestracesget.ts + - src/models/operations/querydatasetentriesdatasetsdatasetidentriesquerypost.ts + - src/models/operations/queryknowledgebaseknowledgeknowledgebaseidquerypost.ts + - src/models/operations/registerfileuploadknowledgeknowledgebaseidregisterfilepost.ts + - src/models/operations/savetodatasetspansspanidsaveexamplespost.ts + - src/models/operations/streamfunctionfunctionsfunctionidcallstreampost.ts + - src/models/operations/streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpost.ts + - src/models/operations/updatecustommodelmodelscustommodelidpatch.ts + - src/models/operations/updatedatasetentrydatasetsdatasetidentriesentryidpatch.ts + - src/models/operations/updatefunctionfunctionsfunctionidpatch.ts + - src/models/operations/updatemetricspansspanidmetricsmetricidpatch.ts + - src/models/operations/updatemodelaliasmodelsaliasesaliasidpatch.ts + - src/models/operations/updatespanspansspanidpatch.ts + - src/models/operations/usageanalyticsusageget.ts + - src/models/paginatedresponsegetdatasetentriesresponse.ts + - src/models/paginatedresponselistcustommodelsresponseitem.ts + - src/models/paginatedresponselistfilesresponse.ts + - src/models/paginatedresponselistfunctionrevisionresponse.ts + - src/models/paginatedresponselistfunctionsresponseitem.ts + - src/models/paginatedresponselistknowledgebasesresponse.ts + - src/models/paginatedresponselistlanguagemodelsresponse.ts + - src/models/paginatedresponselistmodelaliasesresponseitem.ts + - src/models/paginatedresponselistrerankmodelsresponse.ts + - src/models/paginatedresponselistspanmetricsresponse.ts + - src/models/paginatedresponselisttracesresponse.ts + - src/models/prompttokensdetails.ts + - src/models/querydatasetentriesresponse.ts + - src/models/queryknowledgebaserequest.ts + - src/models/queryknowledgebaseresponse.ts + - src/models/registercustommodelrequest.ts + - src/models/registercustommodelresponse.ts + - src/models/registerfileuploadrequest.ts + - src/models/registerfileuploadresponse.ts + - src/models/rerankcost.ts + - src/models/rerankdocument.ts + - src/models/rerankrequestmodel.ts + - src/models/rerankresponsemodel.ts + - src/models/rerankresult.ts + - src/models/responseformatjsonobject.ts + - src/models/responseformatjsonschema.ts + - src/models/responseformattext.ts + - src/models/savetodatasetresponse.ts + - src/models/security.ts + - src/models/spandata.ts + - src/models/spanmetricdata.ts + - src/models/spanschema.ts + - src/models/textprocessingconfiguration.ts + - src/models/tmodel.ts + - src/models/toplogprob.ts + - src/models/updatecustommodelrequest.ts + - src/models/updatecustommodelresponse.ts + - src/models/updatedatasetentryrequest.ts + - src/models/updatedatasetentryresponse.ts + - src/models/updatefunctionrequest.ts + - src/models/updatefunctionresponse.ts + - src/models/updatemodelaliasrequest.ts + - src/models/updatemodelaliasresponse.ts + - src/models/updatespanmetricrequest.ts + - src/models/updatespanmetricresponse.ts + - src/models/updatespanrequest.ts + - src/models/updatespanresponse.ts + - src/models/websearchoptions.ts + - src/models/websearchoptionsuserlocation.ts + - src/models/websearchoptionsuserlocationapproximate.ts + - src/sdk/analytics.ts + - src/sdk/datasets.ts + - src/sdk/embeddings.ts + - src/sdk/entries.ts + - src/sdk/functions.ts + - src/sdk/index.ts + - src/sdk/knowledge.ts + - src/sdk/languagemodels.ts + - src/sdk/models.ts + - src/sdk/openai.ts + - src/sdk/rerank.ts + - src/sdk/revisions.ts + - src/sdk/sdk.ts + - src/sdk/spanmetrics.ts + - src/sdk/spans.ts + - src/sdk/traces.ts + - src/types/async.ts + - src/types/blobs.ts + - src/types/constdatetime.ts + - src/types/enums.ts + - src/types/fp.ts + - src/types/index.ts + - src/types/operations.ts + - src/types/rfcdate.ts + - src/types/streams.ts + - src/types/unrecognized.ts + - tsconfig.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f5a4630..28fb59b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -24,12 +24,13 @@ generation: schemas: allOfMergeStrategy: shallowMerge requestBodyFieldName: "" + persistentEdits: {} tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 3.3.2 + version: 3.4.0 acceptHeaderEnum: true additionalDependencies: dependencies: {} @@ -44,7 +45,7 @@ typescript: author: Speakeasy baseErrorName: OpperError clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true + constFieldsAlwaysOptional: false defaultErrorName: APIError enableCustomCodeRegions: false enableMCPServer: true @@ -77,6 +78,7 @@ typescript: multipartArrayFormat: legacy outputModelSuffix: output packageName: opperai + preApplyUnionDiscriminators: true responseFormat: flat sseFlatResponse: false templateVersion: v2 diff --git a/.speakeasy/speakeasy-modifications-overlay.yaml b/.speakeasy/speakeasy-modifications-overlay.yaml index e281220..f3bdbd6 100644 --- a/.speakeasy/speakeasy-modifications-overlay.yaml +++ b/.speakeasy/speakeasy-modifications-overlay.yaml @@ -745,3 +745,98 @@ actions: created_at: 1732872000000 reviewed_at: 1732872000000 type: method-name + - target: $["paths"]["/models/aliases/{alias_id}"]["delete"] + update: + x-speakeasy-group: languageModels + x-speakeasy-name-override: deleteAlias + x-speakeasy-metadata: + after: sdk.languageModels.deleteAlias() + before: sdk.models.delete_model_alias_models_aliases__alias_id__delete() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/models/aliases"]["get"] + update: + x-speakeasy-group: languageModels + x-speakeasy-name-override: listAliases + x-speakeasy-metadata: + after: sdk.languageModels.listAliases() + before: sdk.models.list_model_aliases_models_aliases_get() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/models/aliases/{alias_id}"]["patch"] + update: + x-speakeasy-group: languageModels + x-speakeasy-name-override: updateAlias + x-speakeasy-metadata: + after: sdk.languageModels.updateAlias() + before: sdk.models.update_model_alias_models_aliases__alias_id__patch() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/models/aliases/by-name/{name}"]["get"] + update: + x-speakeasy-group: languageModels + x-speakeasy-name-override: getAliasByName + x-speakeasy-metadata: + after: sdk.languageModels.getAliasByName() + before: sdk.models.get_model_alias_by_name_models_aliases_by_name__name__get() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/models/aliases"]["post"] + update: + x-speakeasy-group: languageModels + x-speakeasy-name-override: createAlias + x-speakeasy-metadata: + after: sdk.languageModels.createAlias() + before: sdk.models.create_model_alias_models_aliases_post() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/models/aliases/{alias_id}"]["get"] + update: + x-speakeasy-group: languageModels + x-speakeasy-name-override: getAlias + x-speakeasy-metadata: + after: sdk.languageModels.getAlias() + before: sdk.models.get_model_alias_models_aliases__alias_id__get() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/rerank"]["post"] + update: + x-speakeasy-name-override: documents + x-speakeasy-metadata: + after: sdk.rerank.documents() + before: sdk.rerank.rerank_documents_rerank_post() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/rerank/models"]["get"] + update: + x-speakeasy-name-override: listModels + x-speakeasy-metadata: + after: sdk.rerank.listModels() + before: sdk.rerank.list_rerank_models_rerank_models_get() + created_at: 1762265966139 + reviewed_at: 1762265978991 + type: method-name + - target: $["paths"]["/knowledge/{knowledge_base_id}/upload"]["post"] + update: + x-speakeasy-name-override: uploadFile + x-speakeasy-metadata: + after: sdk.knowledge.uploadFile() + before: sdk.knowledge.upload_file_knowledge__knowledge_base_id__upload_post() + created_at: 1765275433136 + type: method-name + - target: $["paths"]["/spans/{span_id}/feedback"]["post"] + update: + x-speakeasy-name-override: submitFeedback + x-speakeasy-metadata: + after: sdk.spans.submitFeedback() + before: sdk.spans.submit_span_feedback_spans__span_id__feedback_post() + created_at: 1765275433136 + reviewed_at: 1765276561875 + type: method-name diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 97978d2..916f61e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.664.0 +speakeasyVersion: 1.673.0 sources: FastAPI: sourceNamespace: fast-api - sourceRevisionDigest: sha256:96c05ebf50787da9b70ff351605b19d5d0ee37a6d96719e9bf18e0fea8163d7e - sourceBlobDigest: sha256:8ba1960e535cf0cc797a118bca7a9325a2dae0615250814ec9fa6f9c3faf3631 + sourceRevisionDigest: sha256:c00f8f01fad31e2d303ef77bdfb664b9aca304c102331cb4f6a33832f8262c9a + sourceBlobDigest: sha256:372f70b704a08a21b81ab23ad5c3a7820b43acfc1bd31e3e4f24ca14f7940499 tags: - latest - 2.0.0 @@ -11,10 +11,10 @@ targets: opper: source: FastAPI sourceNamespace: fast-api - sourceRevisionDigest: sha256:96c05ebf50787da9b70ff351605b19d5d0ee37a6d96719e9bf18e0fea8163d7e - sourceBlobDigest: sha256:8ba1960e535cf0cc797a118bca7a9325a2dae0615250814ec9fa6f9c3faf3631 + sourceRevisionDigest: sha256:c00f8f01fad31e2d303ef77bdfb664b9aca304c102331cb4f6a33832f8262c9a + sourceBlobDigest: sha256:372f70b704a08a21b81ab23ad5c3a7820b43acfc1bd31e3e4f24ca14f7940499 codeSamplesNamespace: fast-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:bb5610491dbaf2387cbcb8c6cfcae50804b90cbaa81890e0c98573c64c44542b + codeSamplesRevisionDigest: sha256:3ce9061e9d8cf8b98dd9727ec0161f9135e94323e2ba02792ed6bede26adf5a4 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/docs/models/annotation.md b/docs/models/annotation.md index 56c3e04..07491cc 100644 --- a/docs/models/annotation.md +++ b/docs/models/annotation.md @@ -6,6 +6,7 @@ import { Annotation } from "opperai/models"; let value: Annotation = { + type: "url_citation", urlCitation: { endIndex: 92225, startIndex: 139911, @@ -19,6 +20,6 @@ let value: Annotation = { | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `type` | *string* | :heavy_check_mark: | N/A | +| `type` | *"url_citation"* | :heavy_check_mark: | N/A | | `urlCitation` | [models.AnnotationURLCitation](../models/annotationurlcitation.md) | :heavy_check_mark: | N/A | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/appapipublicv2functioncallcallfunctionrequest.md b/docs/models/appapipublicv2functioncallcallfunctionrequest.md index 653ffdb..01d2aa9 100644 --- a/docs/models/appapipublicv2functioncallcallfunctionrequest.md +++ b/docs/models/appapipublicv2functioncallcallfunctionrequest.md @@ -77,4 +77,4 @@ let value: AppApiPublicV2FunctionCallCallFunctionRequest = { | `examples` | [models.Example](../models/example.md)[] | :heavy_minus_sign: | Optionally provide examples of successful task completions. Will be added to the prompt to help the model understand the task from examples. | [
{
"comment": "Adds two numbers",
"input": {
"x": 1,
"y": 3
},
"output": {
"sum": 4
}
}
] | | `parentSpanId` | *string* | :heavy_minus_sign: | Optionally provide the parent span ID to add to the call event. This will automatically tie the call to a parent span in the UI. | 123e4567-e89b-12d3-a456-426614174000 | | `tags` | Record | :heavy_minus_sign: | Optionally provide a list of tags to add to the call event. Useful for being able to understand aggregate analytics on some dimension. | {
"project": "project_456",
"user": "company_123"
} | -| `configuration` | [models.FunctionCallConfigurationInput](../models/functioncallconfigurationinput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 0,
"invocation.structured_generation.max_attempts": 5
} | \ No newline at end of file +| `configuration` | [models.FunctionCallConfigurationInput](../models/functioncallconfigurationinput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 3,
"invocation.structured_generation.max_attempts": 5
} | \ No newline at end of file diff --git a/docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.md b/docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.md new file mode 100644 index 0000000..7365dc3 --- /dev/null +++ b/docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.md @@ -0,0 +1,18 @@ +# BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost + +## Example Usage + +```typescript +import { BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost } from "opperai/models"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `file` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile](../models/bodyuploadfileknowledgeknowledgebaseiduploadpostfile.md) | :heavy_check_mark: | The file to upload | | +| `chunkSize` | *number* | :heavy_minus_sign: | The chunk size to use for the document (number of characters) | | +| `chunkOverlap` | *number* | :heavy_minus_sign: | The chunk overlap to use for the document (number of characters) | | +| `metadata` | *string* | :heavy_minus_sign: | Optional JSON object metadata to attach to the file | {"category": "legal", "client": "acme"} | \ No newline at end of file diff --git a/docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpostfile.md b/docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpostfile.md new file mode 100644 index 0000000..61f52a3 --- /dev/null +++ b/docs/models/bodyuploadfileknowledgeknowledgebaseiduploadpostfile.md @@ -0,0 +1,16 @@ +# BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile + +## Example Usage + +```typescript +import { BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile } from "opperai/models"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `fileName` | *string* | :heavy_check_mark: | N/A | +| `content` | *ReadableStream* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletion.md b/docs/models/chatcompletion.md index 23f7efc..ffe3c96 100644 --- a/docs/models/chatcompletion.md +++ b/docs/models/chatcompletion.md @@ -10,6 +10,7 @@ let value: ChatCompletion = { choices: [], created: 676471, model: "Altima", + object: "chat.completion", }; ``` @@ -21,7 +22,7 @@ let value: ChatCompletion = { | `choices` | [models.Choice](../models/choice.md)[] | :heavy_check_mark: | N/A | | `created` | *number* | :heavy_check_mark: | N/A | | `model` | *string* | :heavy_check_mark: | N/A | -| `object` | *string* | :heavy_check_mark: | N/A | +| `object` | *"chat.completion"* | :heavy_check_mark: | N/A | | `serviceTier` | [models.ChatCompletionServiceTier](../models/chatcompletionservicetier.md) | :heavy_minus_sign: | N/A | | `systemFingerprint` | *string* | :heavy_minus_sign: | N/A | | `usage` | [models.CompletionUsage](../models/completionusage.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/chatcompletionallowedtoolchoiceparam.md b/docs/models/chatcompletionallowedtoolchoiceparam.md index 7d2da40..5d91113 100644 --- a/docs/models/chatcompletionallowedtoolchoiceparam.md +++ b/docs/models/chatcompletionallowedtoolchoiceparam.md @@ -20,6 +20,7 @@ let value: ChatCompletionAllowedToolChoiceParam = { {}, ], }, + type: "allowed_tools", }; ``` @@ -28,4 +29,4 @@ let value: ChatCompletionAllowedToolChoiceParam = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | `allowedTools` | [models.ChatCompletionAllowedToolsParam](../models/chatcompletionallowedtoolsparam.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"allowed_tools"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionassistantmessageparam.md b/docs/models/chatcompletionassistantmessageparam.md index 2106b9c..45f1715 100644 --- a/docs/models/chatcompletionassistantmessageparam.md +++ b/docs/models/chatcompletionassistantmessageparam.md @@ -5,14 +5,16 @@ ```typescript import { ChatCompletionAssistantMessageParam } from "opperai/models"; -let value: ChatCompletionAssistantMessageParam = {}; +let value: ChatCompletionAssistantMessageParam = { + role: "assistant", +}; ``` ## Fields | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `role` | *string* | :heavy_check_mark: | N/A | +| `role` | *"assistant"* | :heavy_check_mark: | N/A | | `audio` | [models.Audio](../models/audio.md) | :heavy_minus_sign: | N/A | | `content` | *models.ChatCompletionAssistantMessageParamContent2* | :heavy_minus_sign: | N/A | | `functionCall` | [models.FunctionCallInput](../models/functioncallinput.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/chatcompletionassistantmessageparamcontent1.md b/docs/models/chatcompletionassistantmessageparamcontent1.md index 18309fb..a8696fc 100644 --- a/docs/models/chatcompletionassistantmessageparamcontent1.md +++ b/docs/models/chatcompletionassistantmessageparamcontent1.md @@ -8,6 +8,7 @@ ```typescript const value: models.ChatCompletionContentPartTextParam = { text: "", + type: "text", }; ``` @@ -16,6 +17,7 @@ const value: models.ChatCompletionContentPartTextParam = { ```typescript const value: models.ChatCompletionContentPartRefusalParam = { refusal: "", + type: "refusal", }; ``` diff --git a/docs/models/chatcompletionassistantmessageparamcontent2.md b/docs/models/chatcompletionassistantmessageparamcontent2.md index 76c2745..385d159 100644 --- a/docs/models/chatcompletionassistantmessageparamcontent2.md +++ b/docs/models/chatcompletionassistantmessageparamcontent2.md @@ -15,6 +15,7 @@ const value: string = ""; const value: models.ChatCompletionAssistantMessageParamContent1[] = [ { text: "", + type: "text", }, ]; ``` diff --git a/docs/models/chatcompletionassistantmessageparamtoolcall.md b/docs/models/chatcompletionassistantmessageparamtoolcall.md index f6b50e2..712bdab 100644 --- a/docs/models/chatcompletionassistantmessageparamtoolcall.md +++ b/docs/models/chatcompletionassistantmessageparamtoolcall.md @@ -12,6 +12,7 @@ const value: models.ChatCompletionMessageFunctionToolCallParam = { arguments: "", name: "", }, + type: "function", }; ``` @@ -24,6 +25,7 @@ const value: models.ChatCompletionMessageCustomToolCallParam = { input: "", name: "", }, + type: "custom", }; ``` diff --git a/docs/models/chatcompletioncontentpartimageparam.md b/docs/models/chatcompletioncontentpartimageparam.md index 9207f43..200eb33 100644 --- a/docs/models/chatcompletioncontentpartimageparam.md +++ b/docs/models/chatcompletioncontentpartimageparam.md @@ -9,6 +9,7 @@ let value: ChatCompletionContentPartImageParam = { imageUrl: { url: "https://lustrous-mouser.org/", }, + type: "image_url", }; ``` @@ -17,4 +18,4 @@ let value: ChatCompletionContentPartImageParam = { | Field | Type | Required | Description | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | `imageUrl` | [models.ImageURL](../models/imageurl.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"image_url"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletioncontentpartinputaudioparam.md b/docs/models/chatcompletioncontentpartinputaudioparam.md index 531c516..ef4c72d 100644 --- a/docs/models/chatcompletioncontentpartinputaudioparam.md +++ b/docs/models/chatcompletioncontentpartinputaudioparam.md @@ -10,6 +10,7 @@ let value: ChatCompletionContentPartInputAudioParam = { data: "", format: "wav", }, + type: "input_audio", }; ``` @@ -18,4 +19,4 @@ let value: ChatCompletionContentPartInputAudioParam = { | Field | Type | Required | Description | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | `inputAudio` | [models.InputAudio](../models/inputaudio.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"input_audio"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletioncontentpartrefusalparam.md b/docs/models/chatcompletioncontentpartrefusalparam.md index 9c11598..069a7ca 100644 --- a/docs/models/chatcompletioncontentpartrefusalparam.md +++ b/docs/models/chatcompletioncontentpartrefusalparam.md @@ -7,6 +7,7 @@ import { ChatCompletionContentPartRefusalParam } from "opperai/models"; let value: ChatCompletionContentPartRefusalParam = { refusal: "", + type: "refusal", }; ``` @@ -15,4 +16,4 @@ let value: ChatCompletionContentPartRefusalParam = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `refusal` | *string* | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"refusal"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletioncontentparttextparam.md b/docs/models/chatcompletioncontentparttextparam.md index 0c61642..28359d7 100644 --- a/docs/models/chatcompletioncontentparttextparam.md +++ b/docs/models/chatcompletioncontentparttextparam.md @@ -7,6 +7,7 @@ import { ChatCompletionContentPartTextParam } from "opperai/models"; let value: ChatCompletionContentPartTextParam = { text: "", + type: "text", }; ``` @@ -15,4 +16,4 @@ let value: ChatCompletionContentPartTextParam = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `text` | *string* | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"text"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletioncustomtoolparam.md b/docs/models/chatcompletioncustomtoolparam.md index b6d5f29..c3c1fa4 100644 --- a/docs/models/chatcompletioncustomtoolparam.md +++ b/docs/models/chatcompletioncustomtoolparam.md @@ -9,6 +9,7 @@ let value: ChatCompletionCustomToolParam = { custom: { name: "", }, + type: "custom", }; ``` @@ -17,4 +18,4 @@ let value: ChatCompletionCustomToolParam = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | `custom` | [models.OpenaiTypesChatChatCompletionCustomToolParamCustom](../models/openaitypeschatchatcompletioncustomtoolparamcustom.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"custom"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletiondevelopermessageparam.md b/docs/models/chatcompletiondevelopermessageparam.md index 8873882..068e222 100644 --- a/docs/models/chatcompletiondevelopermessageparam.md +++ b/docs/models/chatcompletiondevelopermessageparam.md @@ -7,6 +7,7 @@ import { ChatCompletionDeveloperMessageParam } from "opperai/models"; let value: ChatCompletionDeveloperMessageParam = { content: "", + role: "developer", }; ``` @@ -15,5 +16,5 @@ let value: ChatCompletionDeveloperMessageParam = { | Field | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | | `content` | *models.ChatCompletionDeveloperMessageParamContent* | :heavy_check_mark: | N/A | -| `role` | *string* | :heavy_check_mark: | N/A | +| `role` | *"developer"* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionfunctionmessageparam.md b/docs/models/chatcompletionfunctionmessageparam.md index df8cebf..ec7e5aa 100644 --- a/docs/models/chatcompletionfunctionmessageparam.md +++ b/docs/models/chatcompletionfunctionmessageparam.md @@ -8,6 +8,7 @@ import { ChatCompletionFunctionMessageParam } from "opperai/models"; let value: ChatCompletionFunctionMessageParam = { content: "", name: "", + role: "function", }; ``` @@ -17,4 +18,4 @@ let value: ChatCompletionFunctionMessageParam = { | ------------------ | ------------------ | ------------------ | ------------------ | | `content` | *string* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_check_mark: | N/A | -| `role` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `role` | *"function"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionfunctiontoolparam.md b/docs/models/chatcompletionfunctiontoolparam.md index 9784524..ad9367c 100644 --- a/docs/models/chatcompletionfunctiontoolparam.md +++ b/docs/models/chatcompletionfunctiontoolparam.md @@ -9,6 +9,7 @@ let value: ChatCompletionFunctionToolParam = { function: { name: "", }, + type: "function", }; ``` @@ -17,4 +18,4 @@ let value: ChatCompletionFunctionToolParam = { | Field | Type | Required | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | `function` | [models.FunctionDefinition](../models/functiondefinition.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"function"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionmessage.md b/docs/models/chatcompletionmessage.md index 18ab495..6d214ef 100644 --- a/docs/models/chatcompletionmessage.md +++ b/docs/models/chatcompletionmessage.md @@ -5,7 +5,9 @@ ```typescript import { ChatCompletionMessage } from "opperai/models"; -let value: ChatCompletionMessage = {}; +let value: ChatCompletionMessage = { + role: "assistant", +}; ``` ## Fields @@ -14,7 +16,7 @@ let value: ChatCompletionMessage = {}; | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | | `content` | *string* | :heavy_minus_sign: | N/A | | `refusal` | *string* | :heavy_minus_sign: | N/A | -| `role` | *string* | :heavy_check_mark: | N/A | +| `role` | *"assistant"* | :heavy_check_mark: | N/A | | `annotations` | [models.Annotation](../models/annotation.md)[] | :heavy_minus_sign: | N/A | | `audio` | [models.ChatCompletionAudio](../models/chatcompletionaudio.md) | :heavy_minus_sign: | N/A | | `functionCall` | [models.FunctionCallOutput](../models/functioncalloutput.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/chatcompletionmessagecustomtoolcall.md b/docs/models/chatcompletionmessagecustomtoolcall.md index 592b4b8..0e819d2 100644 --- a/docs/models/chatcompletionmessagecustomtoolcall.md +++ b/docs/models/chatcompletionmessagecustomtoolcall.md @@ -11,6 +11,7 @@ let value: ChatCompletionMessageCustomToolCall = { input: "", name: "", }, + type: "custom", }; ``` @@ -20,5 +21,5 @@ let value: ChatCompletionMessageCustomToolCall = { | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | | `id` | *string* | :heavy_check_mark: | N/A | | `custom` | [models.CustomOutput](../models/customoutput.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | +| `type` | *"custom"* | :heavy_check_mark: | N/A | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionmessagecustomtoolcallparam.md b/docs/models/chatcompletionmessagecustomtoolcallparam.md index a3d146d..32240fc 100644 --- a/docs/models/chatcompletionmessagecustomtoolcallparam.md +++ b/docs/models/chatcompletionmessagecustomtoolcallparam.md @@ -11,6 +11,7 @@ let value: ChatCompletionMessageCustomToolCallParam = { input: "", name: "", }, + type: "custom", }; ``` @@ -20,4 +21,4 @@ let value: ChatCompletionMessageCustomToolCallParam = { | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_check_mark: | N/A | | `custom` | [models.OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom](../models/openaitypeschatchatcompletionmessagecustomtoolcallparamcustom.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"custom"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionmessagefunctiontoolcall.md b/docs/models/chatcompletionmessagefunctiontoolcall.md index 79d160f..db81f23 100644 --- a/docs/models/chatcompletionmessagefunctiontoolcall.md +++ b/docs/models/chatcompletionmessagefunctiontoolcall.md @@ -11,6 +11,7 @@ let value: ChatCompletionMessageFunctionToolCall = { arguments: "", name: "", }, + type: "function", }; ``` @@ -20,5 +21,5 @@ let value: ChatCompletionMessageFunctionToolCall = { | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `id` | *string* | :heavy_check_mark: | N/A | | `function` | [models.FunctionOutput](../models/functionoutput.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | +| `type` | *"function"* | :heavy_check_mark: | N/A | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionmessagefunctiontoolcallparam.md b/docs/models/chatcompletionmessagefunctiontoolcallparam.md index 1b60ee1..5aa5019 100644 --- a/docs/models/chatcompletionmessagefunctiontoolcallparam.md +++ b/docs/models/chatcompletionmessagefunctiontoolcallparam.md @@ -11,6 +11,7 @@ let value: ChatCompletionMessageFunctionToolCallParam = { arguments: "", name: "", }, + type: "function", }; ``` @@ -20,4 +21,4 @@ let value: ChatCompletionMessageFunctionToolCallParam = { | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_check_mark: | N/A | | `function` | [models.OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction](../models/openaitypeschatchatcompletionmessagefunctiontoolcallparamfunction.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"function"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionmessagetoolcall.md b/docs/models/chatcompletionmessagetoolcall.md index 497050d..c28f317 100644 --- a/docs/models/chatcompletionmessagetoolcall.md +++ b/docs/models/chatcompletionmessagetoolcall.md @@ -12,6 +12,7 @@ const value: models.ChatCompletionMessageFunctionToolCall = { arguments: "", name: "", }, + type: "function", }; ``` @@ -24,6 +25,7 @@ const value: models.ChatCompletionMessageCustomToolCall = { input: "", name: "", }, + type: "custom", }; ``` diff --git a/docs/models/chatcompletionnamedtoolchoicecustomparam.md b/docs/models/chatcompletionnamedtoolchoicecustomparam.md index 9d30cae..c3877ac 100644 --- a/docs/models/chatcompletionnamedtoolchoicecustomparam.md +++ b/docs/models/chatcompletionnamedtoolchoicecustomparam.md @@ -9,6 +9,7 @@ let value: ChatCompletionNamedToolChoiceCustomParam = { custom: { name: "", }, + type: "custom", }; ``` @@ -17,4 +18,4 @@ let value: ChatCompletionNamedToolChoiceCustomParam = { | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | `custom` | [models.OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom](../models/openaitypeschatchatcompletionnamedtoolchoicecustomparamcustom.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"custom"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionnamedtoolchoiceparam.md b/docs/models/chatcompletionnamedtoolchoiceparam.md index 7cfd48c..d98357f 100644 --- a/docs/models/chatcompletionnamedtoolchoiceparam.md +++ b/docs/models/chatcompletionnamedtoolchoiceparam.md @@ -9,6 +9,7 @@ let value: ChatCompletionNamedToolChoiceParam = { function: { name: "", }, + type: "function", }; ``` @@ -17,4 +18,4 @@ let value: ChatCompletionNamedToolChoiceParam = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | `function` | [models.OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction](../models/openaitypeschatchatcompletionnamedtoolchoiceparamfunction.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"function"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionnonstreaming.md b/docs/models/chatcompletionnonstreaming.md index 8071661..f9909b6 100644 --- a/docs/models/chatcompletionnonstreaming.md +++ b/docs/models/chatcompletionnonstreaming.md @@ -7,7 +7,9 @@ import { ChatCompletionNonStreaming } from "opperai/models"; let value: ChatCompletionNonStreaming = { messages: [ - {}, + { + role: "assistant", + }, ], }; ``` @@ -49,6 +51,6 @@ let value: ChatCompletionNonStreaming = { | `user` | *string* | :heavy_minus_sign: | N/A | | `verbosity` | [models.ChatCompletionNonStreamingVerbosity](../models/chatcompletionnonstreamingverbosity.md) | :heavy_minus_sign: | N/A | | `webSearchOptions` | [models.WebSearchOptions](../models/websearchoptions.md) | :heavy_minus_sign: | N/A | -| `stream` | *boolean* | :heavy_minus_sign: | N/A | +| `stream` | *false* | :heavy_minus_sign: | N/A | | `tags` | Record | :heavy_minus_sign: | N/A | | `parentSpanId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionnonstreamingmessage.md b/docs/models/chatcompletionnonstreamingmessage.md index b091520..39d234b 100644 --- a/docs/models/chatcompletionnonstreamingmessage.md +++ b/docs/models/chatcompletionnonstreamingmessage.md @@ -8,6 +8,7 @@ ```typescript const value: models.ChatCompletionDeveloperMessageParam = { content: "", + role: "developer", }; ``` @@ -18,8 +19,10 @@ const value: models.ChatCompletionSystemMessageParam = { content: [ { text: "", + type: "text", }, ], + role: "system", }; ``` @@ -28,13 +31,16 @@ const value: models.ChatCompletionSystemMessageParam = { ```typescript const value: models.ChatCompletionUserMessageParam = { content: [], + role: "user", }; ``` ### `models.ChatCompletionAssistantMessageParam` ```typescript -const value: models.ChatCompletionAssistantMessageParam = {}; +const value: models.ChatCompletionAssistantMessageParam = { + role: "assistant", +}; ``` ### `models.ChatCompletionToolMessageParam` @@ -44,8 +50,10 @@ const value: models.ChatCompletionToolMessageParam = { content: [ { text: "", + type: "text", }, ], + role: "tool", toolCallId: "", }; ``` @@ -56,6 +64,7 @@ const value: models.ChatCompletionToolMessageParam = { const value: models.ChatCompletionFunctionMessageParam = { content: "", name: "", + role: "function", }; ``` diff --git a/docs/models/chatcompletionnonstreamingresponseformat.md b/docs/models/chatcompletionnonstreamingresponseformat.md index f0af07f..3bf9c4c 100644 --- a/docs/models/chatcompletionnonstreamingresponseformat.md +++ b/docs/models/chatcompletionnonstreamingresponseformat.md @@ -6,7 +6,9 @@ ### `models.ResponseFormatText` ```typescript -const value: models.ResponseFormatText = {}; +const value: models.ResponseFormatText = { + type: "text", +}; ``` ### `models.ResponseFormatJSONSchema` @@ -16,12 +18,15 @@ const value: models.ResponseFormatJSONSchema = { jsonSchema: { name: "", }, + type: "json_schema", }; ``` ### `models.ResponseFormatJSONObject` ```typescript -const value: models.ResponseFormatJSONObject = {}; +const value: models.ResponseFormatJSONObject = { + type: "json_object", +}; ``` diff --git a/docs/models/chatcompletionnonstreamingtool.md b/docs/models/chatcompletionnonstreamingtool.md index ef1eb57..efea722 100644 --- a/docs/models/chatcompletionnonstreamingtool.md +++ b/docs/models/chatcompletionnonstreamingtool.md @@ -10,6 +10,7 @@ const value: models.ChatCompletionFunctionToolParam = { function: { name: "", }, + type: "function", }; ``` @@ -20,6 +21,7 @@ const value: models.ChatCompletionCustomToolParam = { custom: { name: "", }, + type: "custom", }; ``` diff --git a/docs/models/chatcompletionnonstreamingtoolchoiceunion.md b/docs/models/chatcompletionnonstreamingtoolchoiceunion.md index 74acde6..be9ece8 100644 --- a/docs/models/chatcompletionnonstreamingtoolchoiceunion.md +++ b/docs/models/chatcompletionnonstreamingtoolchoiceunion.md @@ -27,6 +27,7 @@ const value: models.ChatCompletionAllowedToolChoiceParam = { {}, ], }, + type: "allowed_tools", }; ``` @@ -37,6 +38,7 @@ const value: models.ChatCompletionNamedToolChoiceParam = { function: { name: "", }, + type: "function", }; ``` @@ -47,6 +49,7 @@ const value: models.ChatCompletionNamedToolChoiceCustomParam = { custom: { name: "", }, + type: "custom", }; ``` diff --git a/docs/models/chatcompletionpredictioncontentparam.md b/docs/models/chatcompletionpredictioncontentparam.md index 2b8daca..3ff3198 100644 --- a/docs/models/chatcompletionpredictioncontentparam.md +++ b/docs/models/chatcompletionpredictioncontentparam.md @@ -9,8 +9,10 @@ let value: ChatCompletionPredictionContentParam = { content: [ { text: "", + type: "text", }, ], + type: "content", }; ``` @@ -19,4 +21,4 @@ let value: ChatCompletionPredictionContentParam = { | Field | Type | Required | Description | | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `content` | *models.ChatCompletionPredictionContentParamContent* | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"content"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionstreaming.md b/docs/models/chatcompletionstreaming.md index ceba12a..0227faf 100644 --- a/docs/models/chatcompletionstreaming.md +++ b/docs/models/chatcompletionstreaming.md @@ -9,8 +9,10 @@ let value: ChatCompletionStreaming = { messages: [ { content: "", + role: "user", }, ], + stream: true, }; ``` @@ -51,6 +53,6 @@ let value: ChatCompletionStreaming = { | `user` | *string* | :heavy_minus_sign: | N/A | | `verbosity` | [models.ChatCompletionStreamingVerbosity](../models/chatcompletionstreamingverbosity.md) | :heavy_minus_sign: | N/A | | `webSearchOptions` | [models.WebSearchOptions](../models/websearchoptions.md) | :heavy_minus_sign: | N/A | -| `stream` | *boolean* | :heavy_check_mark: | N/A | +| `stream` | *true* | :heavy_check_mark: | N/A | | `tags` | Record | :heavy_minus_sign: | N/A | | `parentSpanId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionstreamingmessage.md b/docs/models/chatcompletionstreamingmessage.md index 70f0c7a..091aba9 100644 --- a/docs/models/chatcompletionstreamingmessage.md +++ b/docs/models/chatcompletionstreamingmessage.md @@ -8,6 +8,7 @@ ```typescript const value: models.ChatCompletionDeveloperMessageParam = { content: "", + role: "developer", }; ``` @@ -18,8 +19,10 @@ const value: models.ChatCompletionSystemMessageParam = { content: [ { text: "", + type: "text", }, ], + role: "system", }; ``` @@ -28,13 +31,16 @@ const value: models.ChatCompletionSystemMessageParam = { ```typescript const value: models.ChatCompletionUserMessageParam = { content: [], + role: "user", }; ``` ### `models.ChatCompletionAssistantMessageParam` ```typescript -const value: models.ChatCompletionAssistantMessageParam = {}; +const value: models.ChatCompletionAssistantMessageParam = { + role: "assistant", +}; ``` ### `models.ChatCompletionToolMessageParam` @@ -44,8 +50,10 @@ const value: models.ChatCompletionToolMessageParam = { content: [ { text: "", + type: "text", }, ], + role: "tool", toolCallId: "", }; ``` @@ -56,6 +64,7 @@ const value: models.ChatCompletionToolMessageParam = { const value: models.ChatCompletionFunctionMessageParam = { content: "", name: "", + role: "function", }; ``` diff --git a/docs/models/chatcompletionstreamingresponseformat.md b/docs/models/chatcompletionstreamingresponseformat.md index 08f79c4..9ca4cdb 100644 --- a/docs/models/chatcompletionstreamingresponseformat.md +++ b/docs/models/chatcompletionstreamingresponseformat.md @@ -6,7 +6,9 @@ ### `models.ResponseFormatText` ```typescript -const value: models.ResponseFormatText = {}; +const value: models.ResponseFormatText = { + type: "text", +}; ``` ### `models.ResponseFormatJSONSchema` @@ -16,12 +18,15 @@ const value: models.ResponseFormatJSONSchema = { jsonSchema: { name: "", }, + type: "json_schema", }; ``` ### `models.ResponseFormatJSONObject` ```typescript -const value: models.ResponseFormatJSONObject = {}; +const value: models.ResponseFormatJSONObject = { + type: "json_object", +}; ``` diff --git a/docs/models/chatcompletionstreamingtool.md b/docs/models/chatcompletionstreamingtool.md index db7171c..14248c6 100644 --- a/docs/models/chatcompletionstreamingtool.md +++ b/docs/models/chatcompletionstreamingtool.md @@ -10,6 +10,7 @@ const value: models.ChatCompletionFunctionToolParam = { function: { name: "", }, + type: "function", }; ``` @@ -20,6 +21,7 @@ const value: models.ChatCompletionCustomToolParam = { custom: { name: "", }, + type: "custom", }; ``` diff --git a/docs/models/chatcompletionstreamingtoolchoiceunion.md b/docs/models/chatcompletionstreamingtoolchoiceunion.md index 0b76c90..767f619 100644 --- a/docs/models/chatcompletionstreamingtoolchoiceunion.md +++ b/docs/models/chatcompletionstreamingtoolchoiceunion.md @@ -27,6 +27,7 @@ const value: models.ChatCompletionAllowedToolChoiceParam = { {}, ], }, + type: "allowed_tools", }; ``` @@ -37,6 +38,7 @@ const value: models.ChatCompletionNamedToolChoiceParam = { function: { name: "", }, + type: "function", }; ``` @@ -47,6 +49,7 @@ const value: models.ChatCompletionNamedToolChoiceCustomParam = { custom: { name: "", }, + type: "custom", }; ``` diff --git a/docs/models/chatcompletionsystemmessageparam.md b/docs/models/chatcompletionsystemmessageparam.md index 8ef3caa..d0e43a1 100644 --- a/docs/models/chatcompletionsystemmessageparam.md +++ b/docs/models/chatcompletionsystemmessageparam.md @@ -9,8 +9,10 @@ let value: ChatCompletionSystemMessageParam = { content: [ { text: "", + type: "text", }, ], + role: "system", }; ``` @@ -19,5 +21,5 @@ let value: ChatCompletionSystemMessageParam = { | Field | Type | Required | Description | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | | `content` | *models.ChatCompletionSystemMessageParamContent* | :heavy_check_mark: | N/A | -| `role` | *string* | :heavy_check_mark: | N/A | +| `role` | *"system"* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletiontoolmessageparam.md b/docs/models/chatcompletiontoolmessageparam.md index 5699e2f..f365855 100644 --- a/docs/models/chatcompletiontoolmessageparam.md +++ b/docs/models/chatcompletiontoolmessageparam.md @@ -9,8 +9,10 @@ let value: ChatCompletionToolMessageParam = { content: [ { text: "", + type: "text", }, ], + role: "tool", toolCallId: "", }; ``` @@ -20,5 +22,5 @@ let value: ChatCompletionToolMessageParam = { | Field | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | `content` | *models.ChatCompletionToolMessageParamContent* | :heavy_check_mark: | N/A | -| `role` | *string* | :heavy_check_mark: | N/A | +| `role` | *"tool"* | :heavy_check_mark: | N/A | | `toolCallId` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionusermessageparam.md b/docs/models/chatcompletionusermessageparam.md index d9c7dbc..cd77728 100644 --- a/docs/models/chatcompletionusermessageparam.md +++ b/docs/models/chatcompletionusermessageparam.md @@ -7,6 +7,7 @@ import { ChatCompletionUserMessageParam } from "opperai/models"; let value: ChatCompletionUserMessageParam = { content: [], + role: "user", }; ``` @@ -15,5 +16,5 @@ let value: ChatCompletionUserMessageParam = { | Field | Type | Required | Description | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | | `content` | *models.ChatCompletionUserMessageParamContent2* | :heavy_check_mark: | N/A | -| `role` | *string* | :heavy_check_mark: | N/A | +| `role` | *"user"* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionusermessageparamcontent1.md b/docs/models/chatcompletionusermessageparamcontent1.md index e78372b..847b593 100644 --- a/docs/models/chatcompletionusermessageparamcontent1.md +++ b/docs/models/chatcompletionusermessageparamcontent1.md @@ -8,6 +8,7 @@ ```typescript const value: models.ChatCompletionContentPartTextParam = { text: "", + type: "text", }; ``` @@ -18,6 +19,7 @@ const value: models.ChatCompletionContentPartImageParam = { imageUrl: { url: "https://lustrous-mouser.org/", }, + type: "image_url", }; ``` @@ -29,6 +31,7 @@ const value: models.ChatCompletionContentPartInputAudioParam = { data: "", format: "wav", }, + type: "input_audio", }; ``` @@ -37,6 +40,7 @@ const value: models.ChatCompletionContentPartInputAudioParam = { ```typescript const value: models.FileT = { file: {}, + type: "file", }; ``` diff --git a/docs/models/chatcompletionusermessageparamcontent2.md b/docs/models/chatcompletionusermessageparamcontent2.md index f196b8f..c4fecb8 100644 --- a/docs/models/chatcompletionusermessageparamcontent2.md +++ b/docs/models/chatcompletionusermessageparamcontent2.md @@ -17,6 +17,7 @@ const value: models.ChatCompletionUserMessageParamContent1[] = [ imageUrl: { url: "https://lustrous-mouser.org/", }, + type: "image_url", }, ]; ``` diff --git a/docs/models/choice.md b/docs/models/choice.md index 480ca7d..8c3f0c5 100644 --- a/docs/models/choice.md +++ b/docs/models/choice.md @@ -8,7 +8,9 @@ import { Choice } from "opperai/models"; let value: Choice = { finishReason: "length", index: 194692, - message: {}, + message: { + role: "assistant", + }, }; ``` diff --git a/docs/models/createfunctionrequest.md b/docs/models/createfunctionrequest.md index d2ce7dc..46ce1b5 100644 --- a/docs/models/createfunctionrequest.md +++ b/docs/models/createfunctionrequest.md @@ -56,4 +56,4 @@ let value: CreateFunctionRequest = { | `inputSchema` | Record | :heavy_minus_sign: | Optional input schema for the function. Can preferably include field descriptions to allow the model to reason about the input variables. Schema is validated against the input data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"x": {
"title": "X",
"type": "integer"
},
"y": {
"title": "Y",
"type": "integer"
}
},
"required": [
"x",
"y"
],
"title": "OpperInputExample",
"type": "object"
} | | `outputSchema` | Record | :heavy_minus_sign: | Optional output schema for the function. Can preferably include field descriptions to allow the model to reason about the output variables. Schema is validated against the output data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"sum": {
"title": "Sum",
"type": "integer"
}
},
"required": [
"sum"
],
"title": "OpperOutputExample",
"type": "object"
} | | `model` | *models.TModel* | :heavy_minus_sign: | N/A | | -| `configuration` | [models.FunctionCallConfigurationInput](../models/functioncallconfigurationinput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 0,
"invocation.structured_generation.max_attempts": 5
} | \ No newline at end of file +| `configuration` | [models.FunctionCallConfigurationInput](../models/functioncallconfigurationinput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 3,
"invocation.structured_generation.max_attempts": 5
} | \ No newline at end of file diff --git a/docs/models/createfunctionresponse.md b/docs/models/createfunctionresponse.md index ed16e1e..2ee7fc3 100644 --- a/docs/models/createfunctionresponse.md +++ b/docs/models/createfunctionresponse.md @@ -57,7 +57,7 @@ let value: CreateFunctionResponse = { | `inputSchema` | Record | :heavy_minus_sign: | Optional input schema for the function. Can preferably include field descriptions to allow the model to reason about the input variables. Schema is validated against the input data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"x": {
"title": "X",
"type": "integer"
},
"y": {
"title": "Y",
"type": "integer"
}
},
"required": [
"x",
"y"
],
"title": "OpperInputExample",
"type": "object"
} | | `outputSchema` | Record | :heavy_minus_sign: | Optional output schema for the function. Can preferably include field descriptions to allow the model to reason about the output variables. Schema is validated against the output data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"sum": {
"title": "Sum",
"type": "integer"
}
},
"required": [
"sum"
],
"title": "OpperOutputExample",
"type": "object"
} | | `model` | *models.TModel* | :heavy_minus_sign: | N/A | | -| `configuration` | [models.FunctionCallConfigurationOutput](../models/functioncallconfigurationoutput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 0,
"invocation.structured_generation.max_attempts": 5
} | +| `configuration` | [models.FunctionCallConfigurationOutput](../models/functioncallconfigurationoutput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 3,
"invocation.structured_generation.max_attempts": 5
} | | `id` | *string* | :heavy_check_mark: | The ID of the function | | | `datasetId` | *string* | :heavy_minus_sign: | The ID of the dataset associated with the function | | | `revisionId` | *string* | :heavy_minus_sign: | The ID of the latest revision of the function | | diff --git a/docs/models/customformatgrammar.md b/docs/models/customformatgrammar.md index ed4ecf3..16dfeff 100644 --- a/docs/models/customformatgrammar.md +++ b/docs/models/customformatgrammar.md @@ -10,6 +10,7 @@ let value: CustomFormatGrammar = { definition: "", syntax: "lark", }, + type: "grammar", }; ``` @@ -18,4 +19,4 @@ let value: CustomFormatGrammar = { | Field | Type | Required | Description | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | `grammar` | [models.CustomFormatGrammarGrammar](../models/customformatgrammargrammar.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"grammar"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/customformattext.md b/docs/models/customformattext.md index 82fd5bb..f9b592b 100644 --- a/docs/models/customformattext.md +++ b/docs/models/customformattext.md @@ -5,11 +5,13 @@ ```typescript import { CustomFormatText } from "opperai/models"; -let value: CustomFormatText = {}; +let value: CustomFormatText = { + type: "text", +}; ``` ## Fields | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"text"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/feedbackinfo.md b/docs/models/feedbackinfo.md new file mode 100644 index 0000000..89c5e87 --- /dev/null +++ b/docs/models/feedbackinfo.md @@ -0,0 +1,20 @@ +# FeedbackInfo + +Human feedback information for a span. + +## Example Usage + +```typescript +import { FeedbackInfo } from "opperai/models"; + +let value: FeedbackInfo = { + score: 8228.09, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `score` | *number* | :heavy_check_mark: | Feedback score (0.0-1.0) | +| `comment` | *string* | :heavy_minus_sign: | Optional feedback comment | \ No newline at end of file diff --git a/docs/models/filet.md b/docs/models/filet.md index 6184e27..4cbe3e4 100644 --- a/docs/models/filet.md +++ b/docs/models/filet.md @@ -7,6 +7,7 @@ import { FileT } from "opperai/models"; let value: FileT = { file: {}, + type: "file", }; ``` @@ -15,4 +16,4 @@ let value: FileT = { | Field | Type | Required | Description | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | `file` | [models.FileFile](../models/filefile.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"file"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/format.md b/docs/models/format.md index 134f6d2..da4a5b2 100644 --- a/docs/models/format.md +++ b/docs/models/format.md @@ -6,7 +6,9 @@ ### `models.CustomFormatText` ```typescript -const value: models.CustomFormatText = {}; +const value: models.CustomFormatText = { + type: "text", +}; ``` ### `models.CustomFormatGrammar` @@ -17,6 +19,7 @@ const value: models.CustomFormatGrammar = { definition: "", syntax: "lark", }, + type: "grammar", }; ``` diff --git a/docs/models/functioncallconfigurationinput.md b/docs/models/functioncallconfigurationinput.md index f0103e7..0303c37 100644 --- a/docs/models/functioncallconfigurationinput.md +++ b/docs/models/functioncallconfigurationinput.md @@ -10,11 +10,11 @@ let value: FunctionCallConfigurationInput = {}; ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `invocationFewShotCount` | *number* | :heavy_minus_sign: | The number of few-shot examples to use for the call. The examples are selected using nearest neighbor search of the function's dataset for items that are similar to the input. | -| `betaEvaluation` | *any* | :heavy_minus_sign: | [DEPRECATED] This field is ignored. Evaluation is controlled by observer_enabled. | -| `invocationStructuredGenerationMaxAttempts` | *number* | :heavy_minus_sign: | The maximum number of attempts to make when generating a response matching the output schema if provided. | -| `invocationCacheTtl` | *number* | :heavy_minus_sign: | The time to live for the cache in seconds. If 0, the cache is disabled. | -| `betaInvocationInputValidationEnabled` | *boolean* | :heavy_minus_sign: | Whether to enable input validation against the input schema. This is a beta feature and is disabled by default. | -| `betaInvocationXmlModeEnabled` | *boolean* | :heavy_minus_sign: | Experimental: enable XML structured output. The model receives an XML schema and its response is converted back to JSON. We have observed better adherence to multi-paragraph text fields (especially with Anthropic models) when this is enabled. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ~~`invocationFewShotCount`~~ | *number* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[DEPRECATED via /call] This field is ignored when passed via /call endpoint. The system enforces a default of 3. Configure via PATCH /v2/functions/{uuid} or the Platform UI instead. The number of few-shot examples to use for the call, selected using nearest neighbor search of the function's dataset. | +| `betaEvaluation` | *any* | :heavy_minus_sign: | [DEPRECATED] This field is ignored. Evaluation is controlled by observer_enabled. | +| `invocationStructuredGenerationMaxAttempts` | *number* | :heavy_minus_sign: | The maximum number of attempts to make when generating a response matching the output schema if provided. | +| `invocationCacheTtl` | *number* | :heavy_minus_sign: | The time to live for the cache in seconds. If 0, the cache is disabled. | +| `betaInvocationInputValidationEnabled` | *boolean* | :heavy_minus_sign: | Whether to enable input validation against the input schema. This is a beta feature and is disabled by default. | +| `betaInvocationXmlModeEnabled` | *boolean* | :heavy_minus_sign: | Experimental: enable XML structured output. The model receives an XML schema and its response is converted back to JSON. We have observed better adherence to multi-paragraph text fields (especially with Anthropic models) when this is enabled. | \ No newline at end of file diff --git a/docs/models/functioncallconfigurationoutput.md b/docs/models/functioncallconfigurationoutput.md index f170c91..dc51c73 100644 --- a/docs/models/functioncallconfigurationoutput.md +++ b/docs/models/functioncallconfigurationoutput.md @@ -10,10 +10,10 @@ let value: FunctionCallConfigurationOutput = {}; ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `invocationFewShotCount` | *number* | :heavy_minus_sign: | The number of few-shot examples to use for the call. The examples are selected using nearest neighbor search of the function's dataset for items that are similar to the input. | -| `invocationStructuredGenerationMaxAttempts` | *number* | :heavy_minus_sign: | The maximum number of attempts to make when generating a response matching the output schema if provided. | -| `invocationCacheTtl` | *number* | :heavy_minus_sign: | The time to live for the cache in seconds. If 0, the cache is disabled. | -| `betaInvocationInputValidationEnabled` | *boolean* | :heavy_minus_sign: | Whether to enable input validation against the input schema. This is a beta feature and is disabled by default. | -| `betaInvocationXmlModeEnabled` | *boolean* | :heavy_minus_sign: | Experimental: enable XML structured output. The model receives an XML schema and its response is converted back to JSON. We have observed better adherence to multi-paragraph text fields (especially with Anthropic models) when this is enabled. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ~~`invocationFewShotCount`~~ | *number* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

[DEPRECATED via /call] This field is ignored when passed via /call endpoint. The system enforces a default of 3. Configure via PATCH /v2/functions/{uuid} or the Platform UI instead. The number of few-shot examples to use for the call, selected using nearest neighbor search of the function's dataset. | +| `invocationStructuredGenerationMaxAttempts` | *number* | :heavy_minus_sign: | The maximum number of attempts to make when generating a response matching the output schema if provided. | +| `invocationCacheTtl` | *number* | :heavy_minus_sign: | The time to live for the cache in seconds. If 0, the cache is disabled. | +| `betaInvocationInputValidationEnabled` | *boolean* | :heavy_minus_sign: | Whether to enable input validation against the input schema. This is a beta feature and is disabled by default. | +| `betaInvocationXmlModeEnabled` | *boolean* | :heavy_minus_sign: | Experimental: enable XML structured output. The model receives an XML schema and its response is converted back to JSON. We have observed better adherence to multi-paragraph text fields (especially with Anthropic models) when this is enabled. | \ No newline at end of file diff --git a/docs/models/getfunctionresponse.md b/docs/models/getfunctionresponse.md index 55913d9..02326a8 100644 --- a/docs/models/getfunctionresponse.md +++ b/docs/models/getfunctionresponse.md @@ -57,7 +57,7 @@ let value: GetFunctionResponse = { | `inputSchema` | Record | :heavy_minus_sign: | Optional input schema for the function. Can preferably include field descriptions to allow the model to reason about the input variables. Schema is validated against the input data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"x": {
"title": "X",
"type": "integer"
},
"y": {
"title": "Y",
"type": "integer"
}
},
"required": [
"x",
"y"
],
"title": "OpperInputExample",
"type": "object"
} | | `outputSchema` | Record | :heavy_minus_sign: | Optional output schema for the function. Can preferably include field descriptions to allow the model to reason about the output variables. Schema is validated against the output data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"sum": {
"title": "Sum",
"type": "integer"
}
},
"required": [
"sum"
],
"title": "OpperOutputExample",
"type": "object"
} | | `model` | *models.TModel* | :heavy_minus_sign: | N/A | | -| `configuration` | [models.FunctionCallConfigurationOutput](../models/functioncallconfigurationoutput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 0,
"invocation.structured_generation.max_attempts": 5
} | +| `configuration` | [models.FunctionCallConfigurationOutput](../models/functioncallconfigurationoutput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 3,
"invocation.structured_generation.max_attempts": 5
} | | `id` | *string* | :heavy_check_mark: | The ID of the function | | | `datasetId` | *string* | :heavy_minus_sign: | The ID of the dataset associated with the function | | | `revisionId` | *string* | :heavy_minus_sign: | The ID of the latest revision of the function | | diff --git a/docs/models/getspanresponse.md b/docs/models/getspanresponse.md index bee92d3..8b33338 100644 --- a/docs/models/getspanresponse.md +++ b/docs/models/getspanresponse.md @@ -38,4 +38,5 @@ let value: GetSpanResponse = { | `output` | *any* | :heavy_minus_sign: | The output of the span | Hello, world! | | `error` | *string* | :heavy_minus_sign: | In case of an error, the error message | Exception: This is an error message | | `meta` | Record | :heavy_minus_sign: | The metadata of the span | {
"key": "value"
} | -| `score` | *number* | :heavy_minus_sign: | The score of the span | 10 | \ No newline at end of file +| `score` | *number* | :heavy_minus_sign: | The score of the span | 10 | +| `feedback` | [models.FeedbackInfo](../models/feedbackinfo.md) | :heavy_minus_sign: | Human feedback if submitted | | \ No newline at end of file diff --git a/docs/models/operations/functionstreamcallstreampostresponsebody.md b/docs/models/operations/functionstreamcallstreampostresponsebody.md index 8e96b62..ee4cae4 100644 --- a/docs/models/operations/functionstreamcallstreampostresponsebody.md +++ b/docs/models/operations/functionstreamcallstreampostresponsebody.md @@ -15,6 +15,7 @@ let value: FunctionStreamCallStreamPostResponseBody = { jsonPath: "summary", spanId: "123e4567-e89b-12d3-a456-426614174000", chunkType: "text", + errorType: "RateLimitError", }, retry: 1000, }; diff --git a/docs/models/operations/payload.md b/docs/models/operations/payload.md index 93a2552..6e4a0a2 100644 --- a/docs/models/operations/payload.md +++ b/docs/models/operations/payload.md @@ -8,7 +8,9 @@ ```typescript const value: models.ChatCompletionNonStreaming = { messages: [ - {}, + { + role: "assistant", + }, ], }; ``` @@ -20,8 +22,10 @@ const value: models.ChatCompletionStreaming = { messages: [ { content: "", + role: "user", }, ], + stream: true, }; ``` diff --git a/docs/models/operations/streamingchunk.md b/docs/models/operations/streamingchunk.md index 5d96e6f..b6f84fa 100644 --- a/docs/models/operations/streamingchunk.md +++ b/docs/models/operations/streamingchunk.md @@ -29,6 +29,7 @@ let value: StreamingChunk = { jsonPath: "summary", spanId: "123e4567-e89b-12d3-a456-426614174000", chunkType: "text", + errorType: "RateLimitError", }; ``` @@ -39,4 +40,6 @@ let value: StreamingChunk = { | `delta` | *operations.Delta* | :heavy_minus_sign: | Incremental content for streaming. Used for both unstructured text streaming (when no output_schema) and structured streaming (when output_schema is provided). For structured streaming, contains actual field values being streamed to the json_path location. Supports all JSON types: strings, numbers, booleans. | Hello | | `jsonPath` | *string* | :heavy_minus_sign: | Dot-notation path showing exactly which field in your output_schema is being populated. Enables precise UI updates by routing content to specific components. Format: field[index].nested_field | summary | | `spanId` | *string* | :heavy_minus_sign: | Unique identifier for the execution span, included in the first streaming chunk for tracing | 123e4567-e89b-12d3-a456-426614174000 | -| `chunkType` | *string* | :heavy_minus_sign: | Indicates the streaming mode: 'text' for unstructured streaming, 'json' for structured streaming with output_schema. Only present when delta content is included. | text | \ No newline at end of file +| `chunkType` | *string* | :heavy_minus_sign: | Indicates the streaming mode: 'text' for unstructured streaming, 'json' for structured streaming with output_schema, 'error' for error events. Only present when delta content is included. | text | +| `errorType` | *string* | :heavy_minus_sign: | Error type when chunk_type is 'error' | RateLimitError | +| `errorMessage` | *string* | :heavy_minus_sign: | Error message when chunk_type is 'error' | | \ No newline at end of file diff --git a/docs/models/operations/submitspanfeedbackspansspanidfeedbackpostrequest.md b/docs/models/operations/submitspanfeedbackspansspanidfeedbackpostrequest.md new file mode 100644 index 0000000..a89e5db --- /dev/null +++ b/docs/models/operations/submitspanfeedbackspansspanidfeedbackpostrequest.md @@ -0,0 +1,22 @@ +# SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest + +## Example Usage + +```typescript +import { SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest } from "opperai/models/operations"; + +let value: SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest = { + spanId: "6bb2c562-3ade-4c65-9054-91cdf0ff36b3", + submitFeedbackRequest: { + score: 1, + comment: "Great output, exactly what I needed", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `spanId` | *string* | :heavy_check_mark: | The ID of the span to provide feedback on | +| `submitFeedbackRequest` | [models.SubmitFeedbackRequest](../../models/submitfeedbackrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md b/docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md index 2054725..85f907c 100644 --- a/docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md +++ b/docs/models/operations/updatefunctionfunctionsfunctionidpatchrequest.md @@ -48,7 +48,7 @@ let value: UpdateFunctionFunctionsFunctionIdPatchRequest = { "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false, "invocation.cache.ttl": 0, - "invocation.few_shot.count": 0, + "invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, }, }, diff --git a/docs/models/operations/updatespanspansspanidpatchrequest.md b/docs/models/operations/updatespanspansspanidpatchrequest.md index c18738c..58910ae 100644 --- a/docs/models/operations/updatespanspansspanidpatchrequest.md +++ b/docs/models/operations/updatespanspansspanidpatchrequest.md @@ -9,9 +9,9 @@ let value: UpdateSpanSpansSpanIdPatchRequest = { spanId: "c4686ca8-5f9f-483e-8cc2-e12731bcf9e5", updateSpanRequest: { name: "my span", - startTime: new Date("2025-11-28T13:52:33.685136Z"), + startTime: new Date("2025-12-09T10:00:59.573865Z"), type: "email_tool", - endTime: new Date("2025-11-28T13:52:33.685231Z"), + endTime: new Date("2025-12-09T10:00:59.573926Z"), input: "Hello, world!", output: "Hello, world!", error: "Exception: This is an error message", diff --git a/docs/models/operations/uploadfileknowledgeknowledgebaseiduploadpostrequest.md b/docs/models/operations/uploadfileknowledgeknowledgebaseiduploadpostrequest.md new file mode 100644 index 0000000..a69d1b9 --- /dev/null +++ b/docs/models/operations/uploadfileknowledgeknowledgebaseiduploadpostrequest.md @@ -0,0 +1,16 @@ +# UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest + +## Example Usage + +```typescript +import { UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest } from "opperai/models/operations"; + +// No examples available for this model +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `knowledgeBaseId` | *string* | :heavy_check_mark: | The id of the knowledge base to upload the file to | +| `bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost` | [models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost](../../models/bodyuploadfileknowledgeknowledgebaseiduploadpost.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/responseformatjsonobject.md b/docs/models/responseformatjsonobject.md index 4150848..dfc925f 100644 --- a/docs/models/responseformatjsonobject.md +++ b/docs/models/responseformatjsonobject.md @@ -5,11 +5,13 @@ ```typescript import { ResponseFormatJSONObject } from "opperai/models"; -let value: ResponseFormatJSONObject = {}; +let value: ResponseFormatJSONObject = { + type: "json_object", +}; ``` ## Fields | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"json_object"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/responseformatjsonschema.md b/docs/models/responseformatjsonschema.md index f2ebd4a..3665d7f 100644 --- a/docs/models/responseformatjsonschema.md +++ b/docs/models/responseformatjsonschema.md @@ -9,6 +9,7 @@ let value: ResponseFormatJSONSchema = { jsonSchema: { name: "", }, + type: "json_schema", }; ``` @@ -17,4 +18,4 @@ let value: ResponseFormatJSONSchema = { | Field | Type | Required | Description | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | `jsonSchema` | [models.JSONSchema](../models/jsonschema.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"json_schema"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/responseformattext.md b/docs/models/responseformattext.md index cb10876..2d35bbb 100644 --- a/docs/models/responseformattext.md +++ b/docs/models/responseformattext.md @@ -5,11 +5,13 @@ ```typescript import { ResponseFormatText } from "opperai/models"; -let value: ResponseFormatText = {}; +let value: ResponseFormatText = { + type: "text", +}; ``` ## Fields | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"text"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/submitfeedbackrequest.md b/docs/models/submitfeedbackrequest.md new file mode 100644 index 0000000..aa03156 --- /dev/null +++ b/docs/models/submitfeedbackrequest.md @@ -0,0 +1,20 @@ +# SubmitFeedbackRequest + +## Example Usage + +```typescript +import { SubmitFeedbackRequest } from "opperai/models"; + +let value: SubmitFeedbackRequest = { + score: 1, + comment: "Great output, exactly what I needed", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `score` | *number* | :heavy_check_mark: | Feedback score (0.0=negative, 1.0=positive) | 1 | +| `comment` | *string* | :heavy_minus_sign: | Optional comment explaining the feedback | Great output, exactly what I needed | +| `saveToDataset` | *boolean* | :heavy_minus_sign: | Force save to dataset (True=force save, False=never save, None=use auto-save config) | | \ No newline at end of file diff --git a/docs/models/submitfeedbackresponse.md b/docs/models/submitfeedbackresponse.md new file mode 100644 index 0000000..3c1f891 --- /dev/null +++ b/docs/models/submitfeedbackresponse.md @@ -0,0 +1,21 @@ +# SubmitFeedbackResponse + +## Example Usage + +```typescript +import { SubmitFeedbackResponse } from "opperai/models"; + +let value: SubmitFeedbackResponse = { + spanId: "f142383a-8d34-4e61-a67b-7b06e89fb98f", + score: 7664.49, + exampleSaved: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `spanId` | *string* | :heavy_check_mark: | The ID of the span | +| `score` | *number* | :heavy_check_mark: | The feedback score that was submitted | +| `exampleSaved` | *boolean* | :heavy_check_mark: | Whether the example was saved to the dataset | \ No newline at end of file diff --git a/docs/models/updatefunctionrequest.md b/docs/models/updatefunctionrequest.md index 36450ed..40fbc8e 100644 --- a/docs/models/updatefunctionrequest.md +++ b/docs/models/updatefunctionrequest.md @@ -46,7 +46,7 @@ let value: UpdateFunctionRequest = { "beta.invocation.input_validation.enabled": false, "beta.invocation.xml_mode.enabled": false, "invocation.cache.ttl": 0, - "invocation.few_shot.count": 0, + "invocation.few_shot.count": 3, "invocation.structured_generation.max_attempts": 5, }, }; @@ -62,4 +62,4 @@ let value: UpdateFunctionRequest = { | `inputSchema` | Record | :heavy_minus_sign: | Optional input schema for the function. Can preferably include field descriptions to allow the model to reason about the input variables. Schema is validated against the input data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"x": {
"title": "X",
"type": "integer"
},
"y": {
"title": "Y",
"type": "integer"
}
},
"required": [
"x",
"y"
],
"title": "OpperInputExample",
"type": "object"
} | | `outputSchema` | Record | :heavy_minus_sign: | Optional output schema for the function. Can preferably include field descriptions to allow the model to reason about the output variables. Schema is validated against the output data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"sum": {
"title": "Sum",
"type": "integer"
}
},
"required": [
"sum"
],
"title": "OpperOutputExample",
"type": "object"
} | | `model` | *models.TModel* | :heavy_minus_sign: | Optionally provide a model to use for completing the task.
If not provided, a default model will be used. Currently the default model is `azure/gpt-4o-eu`

To specify options for the model, use a dictionary of key-value pairs. The options are passed to the model on invocation.
An example of passing temperature to `gpt-4o-mini` hosted on OpenAI is shown below.

```json
{
"model": "openai/gpt-4o-mini", # the model name
"options": {
"temperature": 0.5 # the options for the model
}
}
```

To specify a fallback model, use a list of models. The models will then be tried in order.
The second model will be used if the first model is not available, and so on.

```json
[
"openai/gpt-4o-mini", # first model to try
"openai/gpt-4.1-nano", # second model to try
]
```
| | -| `configuration` | Record | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 0,
"invocation.structured_generation.max_attempts": 5
} | \ No newline at end of file +| `configuration` | Record | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 3,
"invocation.structured_generation.max_attempts": 5
} | \ No newline at end of file diff --git a/docs/models/updatefunctionresponse.md b/docs/models/updatefunctionresponse.md index d66dd59..3c9da69 100644 --- a/docs/models/updatefunctionresponse.md +++ b/docs/models/updatefunctionresponse.md @@ -57,7 +57,7 @@ let value: UpdateFunctionResponse = { | `inputSchema` | Record | :heavy_minus_sign: | Optional input schema for the function. Can preferably include field descriptions to allow the model to reason about the input variables. Schema is validated against the input data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"x": {
"title": "X",
"type": "integer"
},
"y": {
"title": "Y",
"type": "integer"
}
},
"required": [
"x",
"y"
],
"title": "OpperInputExample",
"type": "object"
} | | `outputSchema` | Record | :heavy_minus_sign: | Optional output schema for the function. Can preferably include field descriptions to allow the model to reason about the output variables. Schema is validated against the output data and issues an error if it does not match. With the Opper SDKs you can define these schemas through libraries like Pydantic and Zod. For schemas with definitions, prefer using '$defs' and '#/$defs/...' references. | {
"properties": {
"sum": {
"title": "Sum",
"type": "integer"
}
},
"required": [
"sum"
],
"title": "OpperOutputExample",
"type": "object"
} | | `model` | *models.TModel* | :heavy_minus_sign: | N/A | | -| `configuration` | [models.FunctionCallConfigurationOutput](../models/functioncallconfigurationoutput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 0,
"invocation.structured_generation.max_attempts": 5
} | +| `configuration` | [models.FunctionCallConfigurationOutput](../models/functioncallconfigurationoutput.md) | :heavy_minus_sign: | Optional configuration for the function.Configuration is a dictionary of key-value pairs that can be used to override the default configuration for the function. | {
"beta.invocation.input_validation.enabled": false,
"beta.invocation.xml_mode.enabled": false,
"invocation.cache.ttl": 0,
"invocation.few_shot.count": 3,
"invocation.structured_generation.max_attempts": 5
} | | `id` | *string* | :heavy_check_mark: | The ID of the function | | | `datasetId` | *string* | :heavy_minus_sign: | The ID of the dataset associated with the function | | | `revisionId` | *string* | :heavy_minus_sign: | The ID of the latest revision of the function | | diff --git a/docs/models/updatespanrequest.md b/docs/models/updatespanrequest.md index 13b5706..663eeaf 100644 --- a/docs/models/updatespanrequest.md +++ b/docs/models/updatespanrequest.md @@ -7,9 +7,9 @@ import { UpdateSpanRequest } from "opperai/models"; let value: UpdateSpanRequest = { name: "my span", - startTime: new Date("2025-11-28T13:52:33.685136Z"), + startTime: new Date("2025-12-09T10:00:59.573865Z"), type: "email_tool", - endTime: new Date("2025-11-28T13:52:33.685231Z"), + endTime: new Date("2025-12-09T10:00:59.573926Z"), input: "Hello, world!", output: "Hello, world!", error: "Exception: This is an error message", @@ -25,9 +25,9 @@ let value: UpdateSpanRequest = { | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `name` | *string* | :heavy_minus_sign: | The name of the span, something descriptive about the span that will be used to identify it when querying | my span | -| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start time of the span in UTC | 2025-11-28T13:52:33.685136Z | +| `startTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The start time of the span in UTC | 2025-12-09T10:00:59.573865Z | | `type` | *string* | :heavy_minus_sign: | The type of the span | email_tool | -| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end time of the span in UTC | 2025-11-28T13:52:33.685231Z | +| `endTime` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The end time of the span in UTC | 2025-12-09T10:00:59.573926Z | | `input` | *string* | :heavy_minus_sign: | The input of the span | Hello, world! | | `output` | *string* | :heavy_minus_sign: | The output of the span | Hello, world! | | `error` | *string* | :heavy_minus_sign: | In case of an error, the error message | Exception: This is an error message | diff --git a/docs/models/uploadfileresponse.md b/docs/models/uploadfileresponse.md new file mode 100644 index 0000000..745081b --- /dev/null +++ b/docs/models/uploadfileresponse.md @@ -0,0 +1,24 @@ +# UploadFileResponse + +## Example Usage + +```typescript +import { UploadFileResponse } from "opperai/models"; + +let value: UploadFileResponse = { + id: "cbd4ef50-6994-47e1-850d-6b4698506c80", + key: "", + originalFilename: "", + documentId: 457861, +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `id` | *string* | :heavy_check_mark: | N/A | +| `key` | *string* | :heavy_check_mark: | N/A | +| `originalFilename` | *string* | :heavy_check_mark: | N/A | +| `documentId` | *number* | :heavy_check_mark: | N/A | +| `metadata` | Record | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/websearchoptionsuserlocation.md b/docs/models/websearchoptionsuserlocation.md index 1965a32..3839aa9 100644 --- a/docs/models/websearchoptionsuserlocation.md +++ b/docs/models/websearchoptionsuserlocation.md @@ -7,6 +7,7 @@ import { WebSearchOptionsUserLocation } from "opperai/models"; let value: WebSearchOptionsUserLocation = { approximate: {}, + type: "approximate", }; ``` @@ -15,4 +16,4 @@ let value: WebSearchOptionsUserLocation = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | | `approximate` | [models.WebSearchOptionsUserLocationApproximate](../models/websearchoptionsuserlocationapproximate.md) | :heavy_check_mark: | N/A | -| `type` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *"approximate"* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index 6d60226..ffdcaa4 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "opperai", - "version": "3.3.2", + "version": "3.4.0", "dependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/jsr.json b/jsr.json index dd2e2eb..23b86f3 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "opperai", - "version": "3.3.2", + "version": "3.4.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 695925b..14573c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opperai", - "version": "3.3.2", + "version": "3.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opperai", - "version": "3.3.2", + "version": "3.4.0", "dependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "zod": "^3.25.0 || ^4.0.0" diff --git a/package.json b/package.json index 2b146bd..2c96d37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opperai", - "version": "3.3.2", + "version": "3.4.0", "author": "Speakeasy", "repository": { "url": "https://github.com/opper-ai/opper-node", diff --git a/src/funcs/knowledgeUploadFile.ts b/src/funcs/knowledgeUploadFile.ts new file mode 100644 index 0000000..51decdb --- /dev/null +++ b/src/funcs/knowledgeUploadFile.ts @@ -0,0 +1,300 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { appendForm, encodeSimple } from "../lib/encodings.js"; +import { + getContentTypeFromFileName, + readableStreamToArrayBuffer, +} from "../lib/files.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { isBlobLike } from "../types/blobs.js"; +import { Result } from "../types/fp.js"; +import { isReadableStream } from "../types/streams.js"; + +/** + * Upload File + * + * @remarks + * Upload a file directly to a knowledge base. + * + * This is a simplified alternative to the three-step upload process + * (get_upload_url -> upload to S3 -> register_file). Use this endpoint + * for smaller files or when you prefer a simpler API. + * + * The file will be uploaded to S3 and queued for processing automatically. + */ +export function knowledgeUploadFile( + client: OpperCore, + knowledgeBaseId: string, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options?: RequestOptions, +): APIPromise< + Result< + models.UploadFileResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + knowledgeBaseId, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options, + )); +} + +async function $do( + client: OpperCore, + knowledgeBaseId: string, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options?: RequestOptions, +): Promise< + [ + Result< + models.UploadFileResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest = + { + knowledgeBaseId: knowledgeBaseId, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + }; + + const parsed = safeParse( + input, + (value) => + operations + .UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = new FormData(); + + if ( + isBlobLike( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file, + ) + ) { + appendForm( + body, + "file", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file, + ); + } else if ( + isReadableStream( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .content, + ) + ) { + const buffer = await readableStreamToArrayBuffer( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .content, + ); + const contentType = + getContentTypeFromFileName( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ) || "application/octet-stream"; + const blob = new Blob([buffer], { type: contentType }); + appendForm( + body, + "file", + blob, + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ); + } else { + const contentType = + getContentTypeFromFileName( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ) || "application/octet-stream"; + appendForm( + body, + "file", + new Blob([ + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .content, + ], { type: contentType }), + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ); + } + if ( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_overlap !== undefined + ) { + appendForm( + body, + "chunk_overlap", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_overlap, + ); + } + if ( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_size !== undefined + ) { + appendForm( + body, + "chunk_size", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_size, + ); + } + if ( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.metadata + !== undefined + ) { + appendForm( + body, + "metadata", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .metadata, + ); + } + + const pathParams = { + knowledge_base_id: encodeSimple( + "knowledge_base_id", + payload.knowledge_base_id, + { explode: false, charEncoding: "percent" }, + ), + }; + + const path = pathToFunc("/knowledge/{knowledge_base_id}/upload")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "upload_file_knowledge__knowledge_base_id__upload_post", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.UploadFileResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(201, models.UploadFileResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts b/src/funcs/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts new file mode 100644 index 0000000..ecd4b38 --- /dev/null +++ b/src/funcs/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts @@ -0,0 +1,300 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { appendForm, encodeSimple } from "../lib/encodings.js"; +import { + getContentTypeFromFileName, + readableStreamToArrayBuffer, +} from "../lib/files.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { isBlobLike } from "../types/blobs.js"; +import { Result } from "../types/fp.js"; +import { isReadableStream } from "../types/streams.js"; + +/** + * Upload File + * + * @remarks + * Upload a file directly to a knowledge base. + * + * This is a simplified alternative to the three-step upload process + * (get_upload_url -> upload to S3 -> register_file). Use this endpoint + * for smaller files or when you prefer a simpler API. + * + * The file will be uploaded to S3 and queued for processing automatically. + */ +export function knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost( + client: OpperCore, + knowledgeBaseId: string, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options?: RequestOptions, +): APIPromise< + Result< + models.UploadFileResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + knowledgeBaseId, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options, + )); +} + +async function $do( + client: OpperCore, + knowledgeBaseId: string, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options?: RequestOptions, +): Promise< + [ + Result< + models.UploadFileResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest = + { + knowledgeBaseId: knowledgeBaseId, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + }; + + const parsed = safeParse( + input, + (value) => + operations + .UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = new FormData(); + + if ( + isBlobLike( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file, + ) + ) { + appendForm( + body, + "file", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file, + ); + } else if ( + isReadableStream( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .content, + ) + ) { + const buffer = await readableStreamToArrayBuffer( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .content, + ); + const contentType = + getContentTypeFromFileName( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ) || "application/octet-stream"; + const blob = new Blob([buffer], { type: contentType }); + appendForm( + body, + "file", + blob, + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ); + } else { + const contentType = + getContentTypeFromFileName( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ) || "application/octet-stream"; + appendForm( + body, + "file", + new Blob([ + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .content, + ], { type: contentType }), + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.file + .fileName, + ); + } + if ( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_overlap !== undefined + ) { + appendForm( + body, + "chunk_overlap", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_overlap, + ); + } + if ( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_size !== undefined + ) { + appendForm( + body, + "chunk_size", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .chunk_size, + ); + } + if ( + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post.metadata + !== undefined + ) { + appendForm( + body, + "metadata", + payload.Body_upload_file_knowledge__knowledge_base_id__upload_post + .metadata, + ); + } + + const pathParams = { + knowledge_base_id: encodeSimple( + "knowledge_base_id", + payload.knowledge_base_id, + { explode: false, charEncoding: "percent" }, + ), + }; + + const path = pathToFunc("/knowledge/{knowledge_base_id}/upload")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "upload_file_knowledge__knowledge_base_id__upload_post", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.UploadFileResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(201, models.UploadFileResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/languageModelsCreateAlias.ts b/src/funcs/languageModelsCreateAlias.ts new file mode 100644 index 0000000..bb94eea --- /dev/null +++ b/src/funcs/languageModelsCreateAlias.ts @@ -0,0 +1,189 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Create Model Alias + * + * @remarks + * Create a model alias with fallback models for the organization that owns the API key. + * + * A model alias allows you to define a name that resolves to an ordered list of fallback models. + * For example, you could create an alias called "sonnet-4" that falls back to + * ["anthropic/claude-3-5-sonnet-latest", "anthropic/claude-3-5-sonnet-20241022"]. + */ +export function languageModelsCreateAlias( + client: OpperCore, + request: models.CreateModelAliasRequest, + options?: RequestOptions, +): APIPromise< + Result< + models.CreateModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.ConflictError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpperCore, + request: models.CreateModelAliasRequest, + options?: RequestOptions, +): Promise< + [ + Result< + models.CreateModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.ConflictError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => models.CreateModelAliasRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/models/aliases")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "create_model_alias_models_aliases_post", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "409", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.CreateModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.ConflictError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.CreateModelAliasResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(409, errors.ConflictError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/languageModelsDeleteAlias.ts b/src/funcs/languageModelsDeleteAlias.ts new file mode 100644 index 0000000..ef8b2a7 --- /dev/null +++ b/src/funcs/languageModelsDeleteAlias.ts @@ -0,0 +1,196 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { OpperCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Delete Model Alias + * + * @remarks + * Delete a model alias. + */ +export function languageModelsDeleteAlias( + client: OpperCore, + aliasId: string, + options?: RequestOptions, +): APIPromise< + Result< + void, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + aliasId, + options, + )); +} + +async function $do( + client: OpperCore, + aliasId: string, + options?: RequestOptions, +): Promise< + [ + Result< + void, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.DeleteModelAliasModelsAliasesAliasIdDeleteRequest = { + aliasId: aliasId, + }; + + const parsed = safeParse( + input, + (value) => + operations + .DeleteModelAliasModelsAliasesAliasIdDeleteRequest$outboundSchema.parse( + value, + ), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + alias_id: encodeSimple("alias_id", payload.alias_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/models/aliases/{alias_id}")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "delete_model_alias_models_aliases__alias_id__delete", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "DELETE", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + void, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.nil(204, z.void()), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/languageModelsGetAlias.ts b/src/funcs/languageModelsGetAlias.ts new file mode 100644 index 0000000..2be4612 --- /dev/null +++ b/src/funcs/languageModelsGetAlias.ts @@ -0,0 +1,194 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Model Alias + * + * @remarks + * Get a model alias by its ID. + */ +export function languageModelsGetAlias( + client: OpperCore, + aliasId: string, + options?: RequestOptions, +): APIPromise< + Result< + models.GetModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + aliasId, + options, + )); +} + +async function $do( + client: OpperCore, + aliasId: string, + options?: RequestOptions, +): Promise< + [ + Result< + models.GetModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.GetModelAliasModelsAliasesAliasIdGetRequest = { + aliasId: aliasId, + }; + + const parsed = safeParse( + input, + (value) => + operations.GetModelAliasModelsAliasesAliasIdGetRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + alias_id: encodeSimple("alias_id", payload.alias_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/models/aliases/{alias_id}")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "get_model_alias_models_aliases__alias_id__get", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.GetModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.GetModelAliasResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/languageModelsGetAliasByName.ts b/src/funcs/languageModelsGetAliasByName.ts new file mode 100644 index 0000000..0784084 --- /dev/null +++ b/src/funcs/languageModelsGetAliasByName.ts @@ -0,0 +1,196 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get Model Alias By Name + * + * @remarks + * Get a model alias by its name. + */ +export function languageModelsGetAliasByName( + client: OpperCore, + name: string, + options?: RequestOptions, +): APIPromise< + Result< + models.GetModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + name, + options, + )); +} + +async function $do( + client: OpperCore, + name: string, + options?: RequestOptions, +): Promise< + [ + Result< + models.GetModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.GetModelAliasByNameModelsAliasesByNameNameGetRequest = + { + name: name, + }; + + const parsed = safeParse( + input, + (value) => + operations + .GetModelAliasByNameModelsAliasesByNameNameGetRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + name: encodeSimple("name", payload.name, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/models/aliases/by-name/{name}")(pathParams); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "get_model_alias_by_name_models_aliases_by_name__name__get", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.GetModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.GetModelAliasResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/languageModelsListAliases.ts b/src/funcs/languageModelsListAliases.ts new file mode 100644 index 0000000..dae7b50 --- /dev/null +++ b/src/funcs/languageModelsListAliases.ts @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * List Model Aliases + * + * @remarks + * List all model aliases for the organization that owns the API key. + */ +export function languageModelsListAliases( + client: OpperCore, + offset?: number | undefined, + limit?: number | undefined, + options?: RequestOptions, +): APIPromise< + Result< + models.PaginatedResponseListModelAliasesResponseItem, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + offset, + limit, + options, + )); +} + +async function $do( + client: OpperCore, + offset?: number | undefined, + limit?: number | undefined, + options?: RequestOptions, +): Promise< + [ + Result< + models.PaginatedResponseListModelAliasesResponseItem, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.ListModelAliasesModelsAliasesGetRequest = { + offset: offset, + limit: limit, + }; + + const parsed = safeParse( + input, + (value) => + operations.ListModelAliasesModelsAliasesGetRequest$outboundSchema.parse( + value, + ), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/models/aliases")(); + + const query = encodeFormQuery({ + "limit": payload.limit, + "offset": payload.offset, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "list_model_aliases_models_aliases_get", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.PaginatedResponseListModelAliasesResponseItem, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json( + 200, + models.PaginatedResponseListModelAliasesResponseItem$inboundSchema, + ), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/languageModelsUpdateAlias.ts b/src/funcs/languageModelsUpdateAlias.ts new file mode 100644 index 0000000..2422c13 --- /dev/null +++ b/src/funcs/languageModelsUpdateAlias.ts @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Update Model Alias + * + * @remarks + * Update a model alias. + */ +export function languageModelsUpdateAlias( + client: OpperCore, + aliasId: string, + updateModelAliasRequest: models.UpdateModelAliasRequest, + options?: RequestOptions, +): APIPromise< + Result< + models.UpdateModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + aliasId, + updateModelAliasRequest, + options, + )); +} + +async function $do( + client: OpperCore, + aliasId: string, + updateModelAliasRequest: models.UpdateModelAliasRequest, + options?: RequestOptions, +): Promise< + [ + Result< + models.UpdateModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.UpdateModelAliasModelsAliasesAliasIdPatchRequest = { + aliasId: aliasId, + updateModelAliasRequest: updateModelAliasRequest, + }; + + const parsed = safeParse( + input, + (value) => + operations.UpdateModelAliasModelsAliasesAliasIdPatchRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.UpdateModelAliasRequest, { + explode: true, + }); + + const pathParams = { + alias_id: encodeSimple("alias_id", payload.alias_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/models/aliases/{alias_id}")(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "update_model_alias_models_aliases__alias_id__patch", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "PATCH", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.UpdateModelAliasResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.UpdateModelAliasResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/rerankDocuments.ts b/src/funcs/rerankDocuments.ts new file mode 100644 index 0000000..6425f42 --- /dev/null +++ b/src/funcs/rerankDocuments.ts @@ -0,0 +1,188 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeJSON } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Rerank Documents + * + * @remarks + * Rerank documents based on relevance to a query. + * + * This endpoint allows you to rerank a list of documents based on their relevance + * to a given query using state-of-the-art reranking models. + * + * The documents will be returned in order of relevance, with the most relevant + * documents first. Each result includes the original document index and a + * relevance score. + */ +export function rerankDocuments( + client: OpperCore, + request: models.RerankRequestModel, + options?: RequestOptions, +): APIPromise< + Result< + models.RerankResponseModel, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: OpperCore, + request: models.RerankRequestModel, + options?: RequestOptions, +): Promise< + [ + Result< + models.RerankResponseModel, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => models.RerankRequestModel$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload, { explode: true }); + + const path = pathToFunc("/rerank")(); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "rerank_documents_rerank_post", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.RerankResponseModel, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.RerankResponseModel$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/rerankListModels.ts b/src/funcs/rerankListModels.ts new file mode 100644 index 0000000..d2017fc --- /dev/null +++ b/src/funcs/rerankListModels.ts @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * List Rerank Models + * + * @remarks + * List all available reranking models. + * + * Returns a list of all reranking models available on the Opper platform, + * including their hosting providers, locations, and pricing information. + */ +export function rerankListModels( + client: OpperCore, + options?: RequestOptions, +): APIPromise< + Result< + models.PaginatedResponseListRerankModelsResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + options, + )); +} + +async function $do( + client: OpperCore, + options?: RequestOptions, +): Promise< + [ + Result< + models.PaginatedResponseListRerankModelsResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const path = pathToFunc("/rerank/models")(); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "list_rerank_models_rerank_models_get", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.PaginatedResponseListRerankModelsResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.PaginatedResponseListRerankModelsResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/spansSubmitFeedback.ts b/src/funcs/spansSubmitFeedback.ts new file mode 100644 index 0000000..9f46f8d --- /dev/null +++ b/src/funcs/spansSubmitFeedback.ts @@ -0,0 +1,209 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Submit Span Feedback + * + * @remarks + * Submit human feedback for a span. + * + * This endpoint allows you to provide feedback (thumbs up/down) on a span's output. + * The feedback is stored on the associated generation and can trigger auto-save + * to the function's dataset based on the observer's configuration. + * + * - score=1.0: Positive feedback (thumbs up) + * - score=0.0: Negative feedback (thumbs down) + * - Intermediate values (e.g., 0.5) are supported for nuanced feedback + */ +export function spansSubmitFeedback( + client: OpperCore, + spanId: string, + submitFeedbackRequest: models.SubmitFeedbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + models.SubmitFeedbackResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + spanId, + submitFeedbackRequest, + options, + )); +} + +async function $do( + client: OpperCore, + spanId: string, + submitFeedbackRequest: models.SubmitFeedbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + models.SubmitFeedbackResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest = { + spanId: spanId, + submitFeedbackRequest: submitFeedbackRequest, + }; + + const parsed = safeParse( + input, + (value) => + operations.SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.SubmitFeedbackRequest, { + explode: true, + }); + + const pathParams = { + span_id: encodeSimple("span_id", payload.span_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/spans/{span_id}/feedback")(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "submit_span_feedback_spans__span_id__feedback_post", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.SubmitFeedbackResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.SubmitFeedbackResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts b/src/funcs/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts new file mode 100644 index 0000000..dea2ae6 --- /dev/null +++ b/src/funcs/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts @@ -0,0 +1,209 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { OpperCore } from "../core.js"; +import { encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { OpperError } from "../models/errors/oppererror.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as models from "../models/index.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Submit Span Feedback + * + * @remarks + * Submit human feedback for a span. + * + * This endpoint allows you to provide feedback (thumbs up/down) on a span's output. + * The feedback is stored on the associated generation and can trigger auto-save + * to the function's dataset based on the observer's configuration. + * + * - score=1.0: Positive feedback (thumbs up) + * - score=0.0: Negative feedback (thumbs down) + * - Intermediate values (e.g., 0.5) are supported for nuanced feedback + */ +export function spansSubmitSpanFeedbackSpansSpanIdFeedbackPost( + client: OpperCore, + spanId: string, + submitFeedbackRequest: models.SubmitFeedbackRequest, + options?: RequestOptions, +): APIPromise< + Result< + models.SubmitFeedbackResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + spanId, + submitFeedbackRequest, + options, + )); +} + +async function $do( + client: OpperCore, + spanId: string, + submitFeedbackRequest: models.SubmitFeedbackRequest, + options?: RequestOptions, +): Promise< + [ + Result< + models.SubmitFeedbackResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const input: operations.SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest = { + spanId: spanId, + submitFeedbackRequest: submitFeedbackRequest, + }; + + const parsed = safeParse( + input, + (value) => + operations.SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$outboundSchema + .parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.SubmitFeedbackRequest, { + explode: true, + }); + + const pathParams = { + span_id: encodeSimple("span_id", payload.span_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/spans/{span_id}/feedback")(pathParams); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.httpBearer); + const securityInput = secConfig == null ? {} : { httpBearer: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "submit_span_feedback_spans__span_id__feedback_post", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.httpBearer, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + models.SubmitFeedbackResponse, + | errors.BadRequestError + | errors.UnauthorizedError + | errors.NotFoundError + | errors.RequestValidationError + | OpperError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, models.SubmitFeedbackResponse$inboundSchema), + M.jsonErr(400, errors.BadRequestError$inboundSchema), + M.jsonErr(401, errors.UnauthorizedError$inboundSchema), + M.jsonErr(404, errors.NotFoundError$inboundSchema), + M.jsonErr(422, errors.RequestValidationError$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/lib/config.ts b/src/lib/config.ts index cc3a497..5e7de7b 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "2.0.0", - sdkVersion: "3.3.2", - genVersion: "2.766.1", - userAgent: "speakeasy-sdk/typescript 3.3.2 2.766.1 2.0.0 opperai", + sdkVersion: "3.4.0", + genVersion: "2.776.1", + userAgent: "speakeasy-sdk/typescript 3.4.0 2.776.1 2.0.0 opperai", } as const; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index 9e16bd2..78e4a3f 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "3.3.2", + currentVersion: "3.4.0", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 7094523..13fb3b0 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -47,22 +47,23 @@ import { tool$knowledgeList } from "./tools/knowledgeList.js"; import { tool$knowledgeListFiles } from "./tools/knowledgeListFiles.js"; import { tool$knowledgeQuery } from "./tools/knowledgeQuery.js"; import { tool$knowledgeRegisterFileUpload } from "./tools/knowledgeRegisterFileUpload.js"; +import { tool$knowledgeUploadFile } from "./tools/knowledgeUploadFile.js"; +import { tool$languageModelsCreateAlias } from "./tools/languageModelsCreateAlias.js"; +import { tool$languageModelsDeleteAlias } from "./tools/languageModelsDeleteAlias.js"; import { tool$languageModelsDeleteCustom } from "./tools/languageModelsDeleteCustom.js"; +import { tool$languageModelsGetAlias } from "./tools/languageModelsGetAlias.js"; +import { tool$languageModelsGetAliasByName } from "./tools/languageModelsGetAliasByName.js"; import { tool$languageModelsGetCustom } from "./tools/languageModelsGetCustom.js"; import { tool$languageModelsGetCustomByName } from "./tools/languageModelsGetCustomByName.js"; import { tool$languageModelsList } from "./tools/languageModelsList.js"; +import { tool$languageModelsListAliases } from "./tools/languageModelsListAliases.js"; import { tool$languageModelsListCustom } from "./tools/languageModelsListCustom.js"; import { tool$languageModelsRegisterCustom } from "./tools/languageModelsRegisterCustom.js"; +import { tool$languageModelsUpdateAlias } from "./tools/languageModelsUpdateAlias.js"; import { tool$languageModelsUpdateCustom } from "./tools/languageModelsUpdateCustom.js"; -import { tool$modelsCreateModelAliasModelsAliasesPost } from "./tools/modelsCreateModelAliasModelsAliasesPost.js"; -import { tool$modelsDeleteModelAliasModelsAliasesAliasIdDelete } from "./tools/modelsDeleteModelAliasModelsAliasesAliasIdDelete.js"; -import { tool$modelsGetModelAliasByNameModelsAliasesByNameNameGet } from "./tools/modelsGetModelAliasByNameModelsAliasesByNameNameGet.js"; -import { tool$modelsGetModelAliasModelsAliasesAliasIdGet } from "./tools/modelsGetModelAliasModelsAliasesAliasIdGet.js"; -import { tool$modelsListModelAliasesModelsAliasesGet } from "./tools/modelsListModelAliasesModelsAliasesGet.js"; -import { tool$modelsUpdateModelAliasModelsAliasesAliasIdPatch } from "./tools/modelsUpdateModelAliasModelsAliasesAliasIdPatch.js"; import { tool$openaiCreateChatCompletion } from "./tools/openaiCreateChatCompletion.js"; -import { tool$rerankListRerankModelsRerankModelsGet } from "./tools/rerankListRerankModelsRerankModelsGet.js"; -import { tool$rerankRerankDocumentsRerankPost } from "./tools/rerankRerankDocumentsRerankPost.js"; +import { tool$rerankDocuments } from "./tools/rerankDocuments.js"; +import { tool$rerankListModels } from "./tools/rerankListModels.js"; import { tool$spanMetricsCreateMetric } from "./tools/spanMetricsCreateMetric.js"; import { tool$spanMetricsDelete } from "./tools/spanMetricsDelete.js"; import { tool$spanMetricsGet } from "./tools/spanMetricsGet.js"; @@ -72,6 +73,7 @@ import { tool$spansCreate } from "./tools/spansCreate.js"; import { tool$spansDelete } from "./tools/spansDelete.js"; import { tool$spansGet } from "./tools/spansGet.js"; import { tool$spansSaveExamples } from "./tools/spansSaveExamples.js"; +import { tool$spansSubmitFeedback } from "./tools/spansSubmitFeedback.js"; import { tool$spansUpdate } from "./tools/spansUpdate.js"; import { tool$stream } from "./tools/stream.js"; import { tool$tracesGet } from "./tools/tracesGet.js"; @@ -87,7 +89,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Opper", - version: "3.3.2", + version: "3.4.0", }); const client = new OpperCore({ @@ -126,6 +128,7 @@ export function createMCPServer(deps: { tool(tool$knowledgeGetByName); tool(tool$knowledgeGetUploadUrl); tool(tool$knowledgeRegisterFileUpload); + tool(tool$knowledgeUploadFile); tool(tool$knowledgeDeleteFile); tool(tool$knowledgeGetFileDownloadUrl); tool(tool$knowledgeListFiles); @@ -139,6 +142,7 @@ export function createMCPServer(deps: { tool(tool$spansUpdate); tool(tool$spansDelete); tool(tool$spansSaveExamples); + tool(tool$spansSubmitFeedback); tool(tool$spanMetricsCreateMetric); tool(tool$spanMetricsList); tool(tool$spanMetricsGet); @@ -168,15 +172,15 @@ export function createMCPServer(deps: { tool(tool$languageModelsUpdateCustom); tool(tool$languageModelsDeleteCustom); tool(tool$languageModelsGetCustomByName); - tool(tool$modelsCreateModelAliasModelsAliasesPost); - tool(tool$modelsListModelAliasesModelsAliasesGet); - tool(tool$modelsGetModelAliasModelsAliasesAliasIdGet); - tool(tool$modelsUpdateModelAliasModelsAliasesAliasIdPatch); - tool(tool$modelsDeleteModelAliasModelsAliasesAliasIdDelete); - tool(tool$modelsGetModelAliasByNameModelsAliasesByNameNameGet); + tool(tool$languageModelsCreateAlias); + tool(tool$languageModelsListAliases); + tool(tool$languageModelsGetAlias); + tool(tool$languageModelsUpdateAlias); + tool(tool$languageModelsDeleteAlias); + tool(tool$languageModelsGetAliasByName); tool(tool$openaiCreateChatCompletion); - tool(tool$rerankRerankDocumentsRerankPost); - tool(tool$rerankListRerankModelsRerankModelsGet); + tool(tool$rerankDocuments); + tool(tool$rerankListModels); tool(tool$analyticsGetUsage); tool(tool$datasetsEntriesUpdate); tool(tool$functionsRevisionsList); diff --git a/src/mcp-server/tools/knowledgeUploadFile.ts b/src/mcp-server/tools/knowledgeUploadFile.ts new file mode 100644 index 0000000..bf02ec5 --- /dev/null +++ b/src/mcp-server/tools/knowledgeUploadFile.ts @@ -0,0 +1,47 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { knowledgeUploadFile } from "../../funcs/knowledgeUploadFile.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + knowledgeBaseId: z.string(), + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$inboundSchema, +}; + +export const tool$knowledgeUploadFile: ToolDefinition = { + name: "knowledge-upload-file", + description: `Upload File + +Upload a file directly to a knowledge base. + +This is a simplified alternative to the three-step upload process +(get_upload_url -> upload to S3 -> register_file). Use this endpoint +for smaller files or when you prefer a simpler API. + +The file will be uploaded to S3 and queued for processing automatically.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await knowledgeUploadFile( + client, + args.knowledgeBaseId, + args.bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts b/src/mcp-server/tools/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts new file mode 100644 index 0000000..39ae64c --- /dev/null +++ b/src/mcp-server/tools/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.ts @@ -0,0 +1,49 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost } from "../../funcs/knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + knowledgeBaseId: z.string(), + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$inboundSchema, +}; + +export const tool$knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost: + ToolDefinition = { + name: "knowledge-upload-file-knowledge-knowledge-base-id-upload-post", + description: `Upload File + +Upload a file directly to a knowledge base. + +This is a simplified alternative to the three-step upload process +(get_upload_url -> upload to S3 -> register_file). Use this endpoint +for smaller files or when you prefer a simpler API. + +The file will be uploaded to S3 and queued for processing automatically.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = + await knowledgeUploadFileKnowledgeKnowledgeBaseIdUploadPost( + client, + args.knowledgeBaseId, + args.bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, + }; diff --git a/src/mcp-server/tools/languageModelsCreateAlias.ts b/src/mcp-server/tools/languageModelsCreateAlias.ts new file mode 100644 index 0000000..6d78345 --- /dev/null +++ b/src/mcp-server/tools/languageModelsCreateAlias.ts @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { languageModelsCreateAlias } from "../../funcs/languageModelsCreateAlias.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: models.CreateModelAliasRequest$inboundSchema, +}; + +export const tool$languageModelsCreateAlias: ToolDefinition = { + name: "language-models-create-alias", + description: `Create Model Alias + +Create a model alias with fallback models for the organization that owns the API key. + +A model alias allows you to define a name that resolves to an ordered list of fallback models. +For example, you could create an alias called "sonnet-4" that falls back to +["anthropic/claude-3-5-sonnet-latest", "anthropic/claude-3-5-sonnet-20241022"].`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await languageModelsCreateAlias( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/languageModelsDeleteAlias.ts b/src/mcp-server/tools/languageModelsDeleteAlias.ts new file mode 100644 index 0000000..4b0323e --- /dev/null +++ b/src/mcp-server/tools/languageModelsDeleteAlias.ts @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { languageModelsDeleteAlias } from "../../funcs/languageModelsDeleteAlias.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + aliasId: z.string(), +}; + +export const tool$languageModelsDeleteAlias: ToolDefinition = { + name: "language-models-delete-alias", + description: `Delete Model Alias + +Delete a model alias.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await languageModelsDeleteAlias( + client, + args.aliasId, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + return formatResult(void 0, apiCall); + }, +}; diff --git a/src/mcp-server/tools/languageModelsGetAlias.ts b/src/mcp-server/tools/languageModelsGetAlias.ts new file mode 100644 index 0000000..20c744b --- /dev/null +++ b/src/mcp-server/tools/languageModelsGetAlias.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { languageModelsGetAlias } from "../../funcs/languageModelsGetAlias.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + aliasId: z.string(), +}; + +export const tool$languageModelsGetAlias: ToolDefinition = { + name: "language-models-get-alias", + description: `Get Model Alias + +Get a model alias by its ID.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await languageModelsGetAlias( + client, + args.aliasId, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/languageModelsGetAliasByName.ts b/src/mcp-server/tools/languageModelsGetAliasByName.ts new file mode 100644 index 0000000..29561b3 --- /dev/null +++ b/src/mcp-server/tools/languageModelsGetAliasByName.ts @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { languageModelsGetAliasByName } from "../../funcs/languageModelsGetAliasByName.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + name: z.string(), +}; + +export const tool$languageModelsGetAliasByName: ToolDefinition = { + name: "language-models-get-alias-by-name", + description: `Get Model Alias By Name + +Get a model alias by its name.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await languageModelsGetAliasByName( + client, + args.name, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/languageModelsListAliases.ts b/src/mcp-server/tools/languageModelsListAliases.ts new file mode 100644 index 0000000..89caebf --- /dev/null +++ b/src/mcp-server/tools/languageModelsListAliases.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { languageModelsListAliases } from "../../funcs/languageModelsListAliases.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + offset: z.number().int().default(0), + limit: z.number().int().default(100), +}; + +export const tool$languageModelsListAliases: ToolDefinition = { + name: "language-models-list-aliases", + description: `List Model Aliases + +List all model aliases for the organization that owns the API key.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await languageModelsListAliases( + client, + args.offset, + args.limit, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/languageModelsUpdateAlias.ts b/src/mcp-server/tools/languageModelsUpdateAlias.ts new file mode 100644 index 0000000..0181316 --- /dev/null +++ b/src/mcp-server/tools/languageModelsUpdateAlias.ts @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { languageModelsUpdateAlias } from "../../funcs/languageModelsUpdateAlias.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + aliasId: z.string(), + updateModelAliasRequest: models.UpdateModelAliasRequest$inboundSchema, +}; + +export const tool$languageModelsUpdateAlias: ToolDefinition = { + name: "language-models-update-alias", + description: `Update Model Alias + +Update a model alias.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await languageModelsUpdateAlias( + client, + args.aliasId, + args.updateModelAliasRequest, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/rerankDocuments.ts b/src/mcp-server/tools/rerankDocuments.ts new file mode 100644 index 0000000..2a035e5 --- /dev/null +++ b/src/mcp-server/tools/rerankDocuments.ts @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { rerankDocuments } from "../../funcs/rerankDocuments.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: models.RerankRequestModel$inboundSchema, +}; + +export const tool$rerankDocuments: ToolDefinition = { + name: "rerank-documents", + description: `Rerank Documents + +Rerank documents based on relevance to a query. + +This endpoint allows you to rerank a list of documents based on their relevance +to a given query using state-of-the-art reranking models. + +The documents will be returned in order of relevance, with the most relevant +documents first. Each result includes the original document index and a +relevance score.`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await rerankDocuments( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/rerankListModels.ts b/src/mcp-server/tools/rerankListModels.ts new file mode 100644 index 0000000..d276138 --- /dev/null +++ b/src/mcp-server/tools/rerankListModels.ts @@ -0,0 +1,33 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { rerankListModels } from "../../funcs/rerankListModels.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$rerankListModels: ToolDefinition = { + name: "rerank-list-models", + description: `List Rerank Models + +List all available reranking models. + +Returns a list of all reranking models available on the Opper platform, +including their hosting providers, locations, and pricing information.`, + tool: async (client, ctx) => { + const [result, apiCall] = await rerankListModels( + client, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/spansSubmitFeedback.ts b/src/mcp-server/tools/spansSubmitFeedback.ts new file mode 100644 index 0000000..f38376f --- /dev/null +++ b/src/mcp-server/tools/spansSubmitFeedback.ts @@ -0,0 +1,48 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { spansSubmitFeedback } from "../../funcs/spansSubmitFeedback.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + spanId: z.string(), + submitFeedbackRequest: models.SubmitFeedbackRequest$inboundSchema, +}; + +export const tool$spansSubmitFeedback: ToolDefinition = { + name: "spans-submit-feedback", + description: `Submit Span Feedback + +Submit human feedback for a span. + +This endpoint allows you to provide feedback (thumbs up/down) on a span's output. +The feedback is stored on the associated generation and can trigger auto-save +to the function's dataset based on the observer's configuration. + +- score=1.0: Positive feedback (thumbs up) +- score=0.0: Negative feedback (thumbs down) +- Intermediate values (e.g., 0.5) are supported for nuanced feedback`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await spansSubmitFeedback( + client, + args.spanId, + args.submitFeedbackRequest, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts b/src/mcp-server/tools/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts new file mode 100644 index 0000000..9ded389 --- /dev/null +++ b/src/mcp-server/tools/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.ts @@ -0,0 +1,50 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { spansSubmitSpanFeedbackSpansSpanIdFeedbackPost } from "../../funcs/spansSubmitSpanFeedbackSpansSpanIdFeedbackPost.js"; +import * as models from "../../models/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + spanId: z.string(), + submitFeedbackRequest: models.SubmitFeedbackRequest$inboundSchema, +}; + +export const tool$spansSubmitSpanFeedbackSpansSpanIdFeedbackPost: + ToolDefinition = { + name: "spans-submit-span-feedback-spans-span-id-feedback-post", + description: `Submit Span Feedback + +Submit human feedback for a span. + +This endpoint allows you to provide feedback (thumbs up/down) on a span's output. +The feedback is stored on the associated generation and can trigger auto-save +to the function's dataset based on the observer's configuration. + +- score=1.0: Positive feedback (thumbs up) +- score=0.0: Negative feedback (thumbs down) +- Intermediate values (e.g., 0.5) are supported for nuanced feedback`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = + await spansSubmitSpanFeedbackSpansSpanIdFeedbackPost( + client, + args.spanId, + args.submitFeedbackRequest, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, + }; diff --git a/src/models/annotation.ts b/src/models/annotation.ts index 0e45581..ee1fbcd 100644 --- a/src/models/annotation.ts +++ b/src/models/annotation.ts @@ -18,7 +18,7 @@ import { import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type Annotation = { - type?: "url_citation" | undefined; + type: "url_citation"; urlCitation: AnnotationURLCitation; additionalProperties?: { [k: string]: any } | undefined; }; @@ -30,7 +30,7 @@ export const Annotation$inboundSchema: z.ZodType< unknown > = collectExtraKeys$( z.object({ - type: z.literal("url_citation").default("url_citation").optional(), + type: z.literal("url_citation"), url_citation: AnnotationURLCitation$inboundSchema, }).catchall(z.any()), "additionalProperties", diff --git a/src/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.ts b/src/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.ts new file mode 100644 index 0000000..876787f --- /dev/null +++ b/src/models/bodyuploadfileknowledgeknowledgebaseiduploadpost.ts @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { blobLikeSchema } from "../types/blobs.js"; +import { Result as SafeParseResult } from "../types/fp.js"; +import { SDKValidationError } from "./errors/sdkvalidationerror.js"; + +export type BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile = { + fileName: string; + content: ReadableStream | Blob | ArrayBuffer | Uint8Array; +}; + +export type BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost = { + /** + * The file to upload + */ + file: BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile | Blob; + /** + * The chunk size to use for the document (number of characters) + */ + chunkSize?: number | undefined; + /** + * The chunk overlap to use for the document (number of characters) + */ + chunkOverlap?: number | undefined; + /** + * Optional JSON object metadata to attach to the file + */ + metadata?: string | null | undefined; +}; + +/** @internal */ +export const BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$inboundSchema: + z.ZodType< + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile, + z.ZodTypeDef, + unknown + > = z.object({ + fileName: z.string(), + content: z.union([ + z.instanceof(ReadableStream), + z.instanceof(Blob), + z.instanceof(ArrayBuffer), + z.instanceof(Uint8Array), + ]), + }); +/** @internal */ +export type BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$Outbound = { + fileName: string; + content: ReadableStream | Blob | ArrayBuffer | Uint8Array; +}; + +/** @internal */ +export const BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$outboundSchema: + z.ZodType< + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$Outbound, + z.ZodTypeDef, + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile + > = z.object({ + fileName: z.string(), + content: z.union([ + z.instanceof(ReadableStream), + z.instanceof(Blob), + z.instanceof(ArrayBuffer), + z.instanceof(Uint8Array), + ]), + }); + +export function bodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFileToJSON( + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile: + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile, +): string { + return JSON.stringify( + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$outboundSchema.parse( + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile, + ), + ); +} +export function bodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFileFromJSON( + jsonString: string, +): SafeParseResult< + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile' from JSON`, + ); +} + +/** @internal */ +export const BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$inboundSchema: + z.ZodType< + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + z.ZodTypeDef, + unknown + > = z.object({ + file: z.lazy(() => + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$inboundSchema + ), + chunk_size: z.number().int().default(2000), + chunk_overlap: z.number().int().default(200), + metadata: z.nullable(z.string()).optional(), + }).transform((v) => { + return remap$(v, { + "chunk_size": "chunkSize", + "chunk_overlap": "chunkOverlap", + }); + }); +/** @internal */ +export type BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$Outbound = { + file: BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$Outbound | Blob; + chunk_size: number; + chunk_overlap: number; + metadata?: string | null | undefined; +}; + +/** @internal */ +export const BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$outboundSchema: + z.ZodType< + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$Outbound, + z.ZodTypeDef, + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost + > = z.object({ + file: z.lazy(() => + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFile$outboundSchema + ).or(blobLikeSchema), + chunkSize: z.number().int().default(2000), + chunkOverlap: z.number().int().default(200), + metadata: z.nullable(z.string()).optional(), + }).transform((v) => { + return remap$(v, { + chunkSize: "chunk_size", + chunkOverlap: "chunk_overlap", + }); + }); + +export function bodyUploadFileKnowledgeKnowledgeBaseIdUploadPostToJSON( + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, +): string { + return JSON.stringify( + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$outboundSchema.parse( + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + ), + ); +} +export function bodyUploadFileKnowledgeKnowledgeBaseIdUploadPostFromJSON( + jsonString: string, +): SafeParseResult< + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost' from JSON`, + ); +} diff --git a/src/models/chatcompletion.ts b/src/models/chatcompletion.ts index 3aab478..088a344 100644 --- a/src/models/chatcompletion.ts +++ b/src/models/chatcompletion.ts @@ -40,7 +40,7 @@ export type ChatCompletion = { choices: Array; created: number; model: string; - object?: "chat.completion" | undefined; + object: "chat.completion"; serviceTier?: ChatCompletionServiceTier | null | undefined; systemFingerprint?: string | null | undefined; usage?: CompletionUsage | null | undefined; @@ -67,7 +67,7 @@ export const ChatCompletion$inboundSchema: z.ZodType< choices: z.array(Choice$inboundSchema), created: z.number().int(), model: z.string(), - object: z.literal("chat.completion").default("chat.completion").optional(), + object: z.literal("chat.completion"), service_tier: z.nullable(ChatCompletionServiceTier$inboundSchema) .optional(), system_fingerprint: z.nullable(z.string()).optional(), diff --git a/src/models/chatcompletionallowedtoolchoiceparam.ts b/src/models/chatcompletionallowedtoolchoiceparam.ts index e75a6f5..03882ec 100644 --- a/src/models/chatcompletionallowedtoolchoiceparam.ts +++ b/src/models/chatcompletionallowedtoolchoiceparam.ts @@ -16,7 +16,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ChatCompletionAllowedToolChoiceParam = { allowedTools: ChatCompletionAllowedToolsParam; - type?: "allowed_tools" | undefined; + type: "allowed_tools"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ChatCompletionAllowedToolChoiceParam$inboundSchema: z.ZodType< unknown > = z.object({ allowed_tools: ChatCompletionAllowedToolsParam$inboundSchema, - type: z.literal("allowed_tools").default("allowed_tools").optional(), + type: z.literal("allowed_tools"), }).transform((v) => { return remap$(v, { "allowed_tools": "allowedTools", diff --git a/src/models/chatcompletionassistantmessageparam.ts b/src/models/chatcompletionassistantmessageparam.ts index 945723b..7f2216b 100644 --- a/src/models/chatcompletionassistantmessageparam.ts +++ b/src/models/chatcompletionassistantmessageparam.ts @@ -46,27 +46,27 @@ import { export type ChatCompletionAssistantMessageParamContent1 = | (ChatCompletionContentPartTextParam & { type: "text" }) - | (ChatCompletionContentPartRefusalParam & { type: "refusal" }); + | ChatCompletionContentPartRefusalParam; export type ChatCompletionAssistantMessageParamContent2 = | string | Array< | (ChatCompletionContentPartTextParam & { type: "text" }) - | (ChatCompletionContentPartRefusalParam & { type: "refusal" }) + | ChatCompletionContentPartRefusalParam >; export type ChatCompletionAssistantMessageParamToolCall = - | (ChatCompletionMessageFunctionToolCallParam & { type: "function" }) - | (ChatCompletionMessageCustomToolCallParam & { type: "custom" }); + | ChatCompletionMessageFunctionToolCallParam + | ChatCompletionMessageCustomToolCallParam; export type ChatCompletionAssistantMessageParam = { - role?: "assistant" | undefined; + role: "assistant"; audio?: Audio | null | undefined; content?: | string | Array< | (ChatCompletionContentPartTextParam & { type: "text" }) - | (ChatCompletionContentPartRefusalParam & { type: "refusal" }) + | ChatCompletionContentPartRefusalParam > | null | undefined; @@ -75,8 +75,8 @@ export type ChatCompletionAssistantMessageParam = { refusal?: string | null | undefined; toolCalls?: | Array< - | (ChatCompletionMessageFunctionToolCallParam & { type: "function" }) - | (ChatCompletionMessageCustomToolCallParam & { type: "custom" }) + | ChatCompletionMessageFunctionToolCallParam + | ChatCompletionMessageCustomToolCallParam > | undefined; }; @@ -91,14 +91,12 @@ export const ChatCompletionAssistantMessageParamContent1$inboundSchema: ChatCompletionContentPartTextParam$inboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartRefusalParam$inboundSchema.and( - z.object({ type: z.literal("refusal") }), - ), + ChatCompletionContentPartRefusalParam$inboundSchema, ]); /** @internal */ export type ChatCompletionAssistantMessageParamContent1$Outbound = | (ChatCompletionContentPartTextParam$Outbound & { type: "text" }) - | (ChatCompletionContentPartRefusalParam$Outbound & { type: "refusal" }); + | ChatCompletionContentPartRefusalParam$Outbound; /** @internal */ export const ChatCompletionAssistantMessageParamContent1$outboundSchema: @@ -110,9 +108,7 @@ export const ChatCompletionAssistantMessageParamContent1$outboundSchema: ChatCompletionContentPartTextParam$outboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartRefusalParam$outboundSchema.and( - z.object({ type: z.literal("refusal") }), - ), + ChatCompletionContentPartRefusalParam$outboundSchema, ]); export function chatCompletionAssistantMessageParamContent1ToJSON( @@ -154,9 +150,7 @@ export const ChatCompletionAssistantMessageParamContent2$inboundSchema: ChatCompletionContentPartTextParam$inboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartRefusalParam$inboundSchema.and( - z.object({ type: z.literal("refusal") }), - ), + ChatCompletionContentPartRefusalParam$inboundSchema, ]), ), ]); @@ -165,7 +159,7 @@ export type ChatCompletionAssistantMessageParamContent2$Outbound = | string | Array< | (ChatCompletionContentPartTextParam$Outbound & { type: "text" }) - | (ChatCompletionContentPartRefusalParam$Outbound & { type: "refusal" }) + | ChatCompletionContentPartRefusalParam$Outbound >; /** @internal */ @@ -181,9 +175,7 @@ export const ChatCompletionAssistantMessageParamContent2$outboundSchema: ChatCompletionContentPartTextParam$outboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartRefusalParam$outboundSchema.and( - z.object({ type: z.literal("refusal") }), - ), + ChatCompletionContentPartRefusalParam$outboundSchema, ]), ), ]); @@ -221,17 +213,13 @@ export const ChatCompletionAssistantMessageParamToolCall$inboundSchema: z.ZodTypeDef, unknown > = z.union([ - ChatCompletionMessageFunctionToolCallParam$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCallParam$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCallParam$inboundSchema, + ChatCompletionMessageCustomToolCallParam$inboundSchema, ]); /** @internal */ export type ChatCompletionAssistantMessageParamToolCall$Outbound = - | (ChatCompletionMessageFunctionToolCallParam$Outbound & { type: "function" }) - | (ChatCompletionMessageCustomToolCallParam$Outbound & { type: "custom" }); + | ChatCompletionMessageFunctionToolCallParam$Outbound + | ChatCompletionMessageCustomToolCallParam$Outbound; /** @internal */ export const ChatCompletionAssistantMessageParamToolCall$outboundSchema: @@ -240,12 +228,8 @@ export const ChatCompletionAssistantMessageParamToolCall$outboundSchema: z.ZodTypeDef, ChatCompletionAssistantMessageParamToolCall > = z.union([ - ChatCompletionMessageFunctionToolCallParam$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCallParam$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCallParam$outboundSchema, + ChatCompletionMessageCustomToolCallParam$outboundSchema, ]); export function chatCompletionAssistantMessageParamToolCallToJSON( @@ -280,7 +264,7 @@ export const ChatCompletionAssistantMessageParam$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - role: z.literal("assistant").default("assistant").optional(), + role: z.literal("assistant"), audio: z.nullable(Audio$inboundSchema).optional(), content: z.nullable( z.union([ @@ -290,9 +274,7 @@ export const ChatCompletionAssistantMessageParam$inboundSchema: z.ZodType< ChatCompletionContentPartTextParam$inboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartRefusalParam$inboundSchema.and( - z.object({ type: z.literal("refusal") }), - ), + ChatCompletionContentPartRefusalParam$inboundSchema, ]), ), ]), @@ -302,12 +284,8 @@ export const ChatCompletionAssistantMessageParam$inboundSchema: z.ZodType< refusal: z.nullable(z.string()).optional(), tool_calls: z.array( z.union([ - ChatCompletionMessageFunctionToolCallParam$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCallParam$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCallParam$inboundSchema, + ChatCompletionMessageCustomToolCallParam$inboundSchema, ]), ).optional(), }).transform((v) => { @@ -324,7 +302,7 @@ export type ChatCompletionAssistantMessageParam$Outbound = { | string | Array< | (ChatCompletionContentPartTextParam$Outbound & { type: "text" }) - | (ChatCompletionContentPartRefusalParam$Outbound & { type: "refusal" }) + | ChatCompletionContentPartRefusalParam$Outbound > | null | undefined; @@ -333,10 +311,8 @@ export type ChatCompletionAssistantMessageParam$Outbound = { refusal?: string | null | undefined; tool_calls?: | Array< - | (ChatCompletionMessageFunctionToolCallParam$Outbound & { - type: "function"; - }) - | (ChatCompletionMessageCustomToolCallParam$Outbound & { type: "custom" }) + | ChatCompletionMessageFunctionToolCallParam$Outbound + | ChatCompletionMessageCustomToolCallParam$Outbound > | undefined; }; @@ -357,9 +333,7 @@ export const ChatCompletionAssistantMessageParam$outboundSchema: z.ZodType< ChatCompletionContentPartTextParam$outboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartRefusalParam$outboundSchema.and( - z.object({ type: z.literal("refusal") }), - ), + ChatCompletionContentPartRefusalParam$outboundSchema, ]), ), ]), @@ -369,12 +343,8 @@ export const ChatCompletionAssistantMessageParam$outboundSchema: z.ZodType< refusal: z.nullable(z.string()).optional(), toolCalls: z.array( z.union([ - ChatCompletionMessageFunctionToolCallParam$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCallParam$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCallParam$outboundSchema, + ChatCompletionMessageCustomToolCallParam$outboundSchema, ]), ).optional(), }).transform((v) => { diff --git a/src/models/chatcompletioncontentpartimageparam.ts b/src/models/chatcompletioncontentpartimageparam.ts index 95f7464..106f92d 100644 --- a/src/models/chatcompletioncontentpartimageparam.ts +++ b/src/models/chatcompletioncontentpartimageparam.ts @@ -16,7 +16,7 @@ import { export type ChatCompletionContentPartImageParam = { imageUrl: ImageURL; - type?: "image_url" | undefined; + type: "image_url"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ChatCompletionContentPartImageParam$inboundSchema: z.ZodType< unknown > = z.object({ image_url: ImageURL$inboundSchema, - type: z.literal("image_url").default("image_url").optional(), + type: z.literal("image_url"), }).transform((v) => { return remap$(v, { "image_url": "imageUrl", diff --git a/src/models/chatcompletioncontentpartinputaudioparam.ts b/src/models/chatcompletioncontentpartinputaudioparam.ts index bef1971..dbdf214 100644 --- a/src/models/chatcompletioncontentpartinputaudioparam.ts +++ b/src/models/chatcompletioncontentpartinputaudioparam.ts @@ -16,7 +16,7 @@ import { export type ChatCompletionContentPartInputAudioParam = { inputAudio: InputAudio; - type?: "input_audio" | undefined; + type: "input_audio"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ChatCompletionContentPartInputAudioParam$inboundSchema: z.ZodType< unknown > = z.object({ input_audio: InputAudio$inboundSchema, - type: z.literal("input_audio").default("input_audio").optional(), + type: z.literal("input_audio"), }).transform((v) => { return remap$(v, { "input_audio": "inputAudio", diff --git a/src/models/chatcompletioncontentpartrefusalparam.ts b/src/models/chatcompletioncontentpartrefusalparam.ts index eeb99d6..0e8ae02 100644 --- a/src/models/chatcompletioncontentpartrefusalparam.ts +++ b/src/models/chatcompletioncontentpartrefusalparam.ts @@ -9,7 +9,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ChatCompletionContentPartRefusalParam = { refusal: string; - type?: "refusal" | undefined; + type: "refusal"; }; /** @internal */ @@ -19,7 +19,7 @@ export const ChatCompletionContentPartRefusalParam$inboundSchema: z.ZodType< unknown > = z.object({ refusal: z.string(), - type: z.literal("refusal").default("refusal").optional(), + type: z.literal("refusal"), }); /** @internal */ export type ChatCompletionContentPartRefusalParam$Outbound = { diff --git a/src/models/chatcompletioncontentparttextparam.ts b/src/models/chatcompletioncontentparttextparam.ts index 16b3850..76e3232 100644 --- a/src/models/chatcompletioncontentparttextparam.ts +++ b/src/models/chatcompletioncontentparttextparam.ts @@ -9,7 +9,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ChatCompletionContentPartTextParam = { text: string; - type?: "text" | undefined; + type: "text"; }; /** @internal */ @@ -19,7 +19,7 @@ export const ChatCompletionContentPartTextParam$inboundSchema: z.ZodType< unknown > = z.object({ text: z.string(), - type: z.literal("text").default("text").optional(), + type: z.literal("text"), }); /** @internal */ export type ChatCompletionContentPartTextParam$Outbound = { diff --git a/src/models/chatcompletioncustomtoolparam.ts b/src/models/chatcompletioncustomtoolparam.ts index 611213d..297e9cd 100644 --- a/src/models/chatcompletioncustomtoolparam.ts +++ b/src/models/chatcompletioncustomtoolparam.ts @@ -15,7 +15,7 @@ import { export type ChatCompletionCustomToolParam = { custom: OpenaiTypesChatChatCompletionCustomToolParamCustom; - type?: "custom" | undefined; + type: "custom"; }; /** @internal */ @@ -25,7 +25,7 @@ export const ChatCompletionCustomToolParam$inboundSchema: z.ZodType< unknown > = z.object({ custom: OpenaiTypesChatChatCompletionCustomToolParamCustom$inboundSchema, - type: z.literal("custom").default("custom").optional(), + type: z.literal("custom"), }); /** @internal */ export type ChatCompletionCustomToolParam$Outbound = { diff --git a/src/models/chatcompletiondevelopermessageparam.ts b/src/models/chatcompletiondevelopermessageparam.ts index 53de3a2..3e8f738 100644 --- a/src/models/chatcompletiondevelopermessageparam.ts +++ b/src/models/chatcompletiondevelopermessageparam.ts @@ -19,7 +19,7 @@ export type ChatCompletionDeveloperMessageParamContent = export type ChatCompletionDeveloperMessageParam = { content: string | Array; - role?: "developer" | undefined; + role: "developer"; name?: string | undefined; }; @@ -82,7 +82,7 @@ export const ChatCompletionDeveloperMessageParam$inboundSchema: z.ZodType< z.string(), z.array(ChatCompletionContentPartTextParam$inboundSchema), ]), - role: z.literal("developer").default("developer").optional(), + role: z.literal("developer"), name: z.string().optional(), }); /** @internal */ diff --git a/src/models/chatcompletionfunctionmessageparam.ts b/src/models/chatcompletionfunctionmessageparam.ts index b013773..62238c8 100644 --- a/src/models/chatcompletionfunctionmessageparam.ts +++ b/src/models/chatcompletionfunctionmessageparam.ts @@ -10,7 +10,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ChatCompletionFunctionMessageParam = { content: string | null; name: string; - role?: "function" | undefined; + role: "function"; }; /** @internal */ @@ -21,7 +21,7 @@ export const ChatCompletionFunctionMessageParam$inboundSchema: z.ZodType< > = z.object({ content: z.nullable(z.string()), name: z.string(), - role: z.literal("function").default("function").optional(), + role: z.literal("function"), }); /** @internal */ export type ChatCompletionFunctionMessageParam$Outbound = { diff --git a/src/models/chatcompletionfunctiontoolparam.ts b/src/models/chatcompletionfunctiontoolparam.ts index d7e7db5..9528caa 100644 --- a/src/models/chatcompletionfunctiontoolparam.ts +++ b/src/models/chatcompletionfunctiontoolparam.ts @@ -15,7 +15,7 @@ import { export type ChatCompletionFunctionToolParam = { function: FunctionDefinition; - type?: "function" | undefined; + type: "function"; }; /** @internal */ @@ -25,7 +25,7 @@ export const ChatCompletionFunctionToolParam$inboundSchema: z.ZodType< unknown > = z.object({ function: FunctionDefinition$inboundSchema, - type: z.literal("function").default("function").optional(), + type: z.literal("function"), }); /** @internal */ export type ChatCompletionFunctionToolParam$Outbound = { diff --git a/src/models/chatcompletionmessage.ts b/src/models/chatcompletionmessage.ts index 29315d0..cd85096 100644 --- a/src/models/chatcompletionmessage.ts +++ b/src/models/chatcompletionmessage.ts @@ -42,20 +42,20 @@ import { } from "./functioncalloutput.js"; export type ChatCompletionMessageToolCall = - | (ChatCompletionMessageFunctionToolCall & { type: "function" }) - | (ChatCompletionMessageCustomToolCall & { type: "custom" }); + | ChatCompletionMessageFunctionToolCall + | ChatCompletionMessageCustomToolCall; export type ChatCompletionMessage = { content?: string | null | undefined; refusal?: string | null | undefined; - role?: "assistant" | undefined; + role: "assistant"; annotations?: Array | null | undefined; audio?: ChatCompletionAudio | null | undefined; functionCall?: FunctionCallOutput | null | undefined; toolCalls?: | Array< - | (ChatCompletionMessageFunctionToolCall & { type: "function" }) - | (ChatCompletionMessageCustomToolCall & { type: "custom" }) + | ChatCompletionMessageFunctionToolCall + | ChatCompletionMessageCustomToolCall > | null | undefined; @@ -68,17 +68,13 @@ export const ChatCompletionMessageToolCall$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ChatCompletionMessageFunctionToolCall$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCall$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCall$inboundSchema, + ChatCompletionMessageCustomToolCall$inboundSchema, ]); /** @internal */ export type ChatCompletionMessageToolCall$Outbound = - | (ChatCompletionMessageFunctionToolCall$Outbound & { type: "function" }) - | (ChatCompletionMessageCustomToolCall$Outbound & { type: "custom" }); + | ChatCompletionMessageFunctionToolCall$Outbound + | ChatCompletionMessageCustomToolCall$Outbound; /** @internal */ export const ChatCompletionMessageToolCall$outboundSchema: z.ZodType< @@ -86,12 +82,8 @@ export const ChatCompletionMessageToolCall$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionMessageToolCall > = z.union([ - ChatCompletionMessageFunctionToolCall$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCall$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCall$outboundSchema, + ChatCompletionMessageCustomToolCall$outboundSchema, ]); export function chatCompletionMessageToolCallToJSON( @@ -122,19 +114,15 @@ export const ChatCompletionMessage$inboundSchema: z.ZodType< z.object({ content: z.nullable(z.string()).optional(), refusal: z.nullable(z.string()).optional(), - role: z.literal("assistant").default("assistant").optional(), + role: z.literal("assistant"), annotations: z.nullable(z.array(Annotation$inboundSchema)).optional(), audio: z.nullable(ChatCompletionAudio$inboundSchema).optional(), function_call: z.nullable(FunctionCallOutput$inboundSchema).optional(), tool_calls: z.nullable( z.array( z.union([ - ChatCompletionMessageFunctionToolCall$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCall$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCall$inboundSchema, + ChatCompletionMessageCustomToolCall$inboundSchema, ]), ), ).optional(), @@ -157,8 +145,8 @@ export type ChatCompletionMessage$Outbound = { function_call?: FunctionCallOutput$Outbound | null | undefined; tool_calls?: | Array< - | (ChatCompletionMessageFunctionToolCall$Outbound & { type: "function" }) - | (ChatCompletionMessageCustomToolCall$Outbound & { type: "custom" }) + | ChatCompletionMessageFunctionToolCall$Outbound + | ChatCompletionMessageCustomToolCall$Outbound > | null | undefined; @@ -180,12 +168,8 @@ export const ChatCompletionMessage$outboundSchema: z.ZodType< toolCalls: z.nullable( z.array( z.union([ - ChatCompletionMessageFunctionToolCall$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionMessageCustomToolCall$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionMessageFunctionToolCall$outboundSchema, + ChatCompletionMessageCustomToolCall$outboundSchema, ]), ), ).optional(), diff --git a/src/models/chatcompletionmessagecustomtoolcall.ts b/src/models/chatcompletionmessagecustomtoolcall.ts index df2bbbe..c9b7a1e 100644 --- a/src/models/chatcompletionmessagecustomtoolcall.ts +++ b/src/models/chatcompletionmessagecustomtoolcall.ts @@ -20,7 +20,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ChatCompletionMessageCustomToolCall = { id: string; custom: CustomOutput; - type?: "custom" | undefined; + type: "custom"; additionalProperties?: { [k: string]: any } | undefined; }; @@ -33,7 +33,7 @@ export const ChatCompletionMessageCustomToolCall$inboundSchema: z.ZodType< z.object({ id: z.string(), custom: CustomOutput$inboundSchema, - type: z.literal("custom").default("custom").optional(), + type: z.literal("custom"), }).catchall(z.any()), "additionalProperties", true, diff --git a/src/models/chatcompletionmessagecustomtoolcallparam.ts b/src/models/chatcompletionmessagecustomtoolcallparam.ts index 592d8f9..9fa8e1a 100644 --- a/src/models/chatcompletionmessagecustomtoolcallparam.ts +++ b/src/models/chatcompletionmessagecustomtoolcallparam.ts @@ -16,7 +16,7 @@ import { export type ChatCompletionMessageCustomToolCallParam = { id: string; custom: OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom; - type?: "custom" | undefined; + type: "custom"; }; /** @internal */ @@ -28,7 +28,7 @@ export const ChatCompletionMessageCustomToolCallParam$inboundSchema: z.ZodType< id: z.string(), custom: OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom$inboundSchema, - type: z.literal("custom").default("custom").optional(), + type: z.literal("custom"), }); /** @internal */ export type ChatCompletionMessageCustomToolCallParam$Outbound = { diff --git a/src/models/chatcompletionmessagefunctiontoolcall.ts b/src/models/chatcompletionmessagefunctiontoolcall.ts index 3aa572e..ed6beaa 100644 --- a/src/models/chatcompletionmessagefunctiontoolcall.ts +++ b/src/models/chatcompletionmessagefunctiontoolcall.ts @@ -20,7 +20,7 @@ import { export type ChatCompletionMessageFunctionToolCall = { id: string; function: FunctionOutput; - type?: "function" | undefined; + type: "function"; additionalProperties?: { [k: string]: any } | undefined; }; @@ -33,7 +33,7 @@ export const ChatCompletionMessageFunctionToolCall$inboundSchema: z.ZodType< z.object({ id: z.string(), function: FunctionOutput$inboundSchema, - type: z.literal("function").default("function").optional(), + type: z.literal("function"), }).catchall(z.any()), "additionalProperties", true, diff --git a/src/models/chatcompletionmessagefunctiontoolcallparam.ts b/src/models/chatcompletionmessagefunctiontoolcallparam.ts index 08da109..bc146a1 100644 --- a/src/models/chatcompletionmessagefunctiontoolcallparam.ts +++ b/src/models/chatcompletionmessagefunctiontoolcallparam.ts @@ -16,7 +16,7 @@ import { export type ChatCompletionMessageFunctionToolCallParam = { id: string; function: OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction; - type?: "function" | undefined; + type: "function"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ChatCompletionMessageFunctionToolCallParam$inboundSchema: id: z.string(), function: OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction$inboundSchema, - type: z.literal("function").default("function").optional(), + type: z.literal("function"), }); /** @internal */ export type ChatCompletionMessageFunctionToolCallParam$Outbound = { diff --git a/src/models/chatcompletionnamedtoolchoicecustomparam.ts b/src/models/chatcompletionnamedtoolchoicecustomparam.ts index 93badc6..b1a1b11 100644 --- a/src/models/chatcompletionnamedtoolchoicecustomparam.ts +++ b/src/models/chatcompletionnamedtoolchoicecustomparam.ts @@ -15,7 +15,7 @@ import { export type ChatCompletionNamedToolChoiceCustomParam = { custom: OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom; - type?: "custom" | undefined; + type: "custom"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ChatCompletionNamedToolChoiceCustomParam$inboundSchema: z.ZodType< > = z.object({ custom: OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom$inboundSchema, - type: z.literal("custom").default("custom").optional(), + type: z.literal("custom"), }); /** @internal */ export type ChatCompletionNamedToolChoiceCustomParam$Outbound = { diff --git a/src/models/chatcompletionnamedtoolchoiceparam.ts b/src/models/chatcompletionnamedtoolchoiceparam.ts index f1ad757..18f7b03 100644 --- a/src/models/chatcompletionnamedtoolchoiceparam.ts +++ b/src/models/chatcompletionnamedtoolchoiceparam.ts @@ -15,7 +15,7 @@ import { export type ChatCompletionNamedToolChoiceParam = { function: OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction; - type?: "function" | undefined; + type: "function"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ChatCompletionNamedToolChoiceParam$inboundSchema: z.ZodType< > = z.object({ function: OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction$inboundSchema, - type: z.literal("function").default("function").optional(), + type: z.literal("function"), }); /** @internal */ export type ChatCompletionNamedToolChoiceParam$Outbound = { diff --git a/src/models/chatcompletionnonstreaming.ts b/src/models/chatcompletionnonstreaming.ts index 0232b6e..ea68bd8 100644 --- a/src/models/chatcompletionnonstreaming.ts +++ b/src/models/chatcompletionnonstreaming.ts @@ -136,12 +136,12 @@ import { } from "./websearchoptions.js"; export type ChatCompletionNonStreamingMessage = - | (ChatCompletionToolMessageParam & { role: "tool" }) - | (ChatCompletionFunctionMessageParam & { role: "function" }) - | (ChatCompletionDeveloperMessageParam & { role: "developer" }) - | (ChatCompletionSystemMessageParam & { role: "system" }) - | (ChatCompletionUserMessageParam & { role: "user" }) - | (ChatCompletionAssistantMessageParam & { role: "assistant" }); + | ChatCompletionDeveloperMessageParam + | ChatCompletionSystemMessageParam + | ChatCompletionUserMessageParam + | ChatCompletionAssistantMessageParam + | ChatCompletionToolMessageParam + | ChatCompletionFunctionMessageParam; export const ChatCompletionNonStreamingFunctionCallEnum = { None: "none", @@ -174,9 +174,9 @@ export type ChatCompletionNonStreamingReasoningEffort = ClosedEnum< >; export type ChatCompletionNonStreamingResponseFormat = - | (ResponseFormatJSONSchema & { type: "json_schema" }) - | (ResponseFormatText & { type: "text" }) - | (ResponseFormatJSONObject & { type: "json_object" }); + | ResponseFormatText + | ResponseFormatJSONSchema + | ResponseFormatJSONObject; export const ChatCompletionNonStreamingServiceTier = { Auto: "auto", @@ -207,8 +207,8 @@ export type ChatCompletionNonStreamingToolChoiceUnion = | ChatCompletionNonStreamingToolChoiceEnum; export type ChatCompletionNonStreamingTool = - | (ChatCompletionFunctionToolParam & { type: "function" }) - | (ChatCompletionCustomToolParam & { type: "custom" }); + | ChatCompletionFunctionToolParam + | ChatCompletionCustomToolParam; export const ChatCompletionNonStreamingVerbosity = { Low: "low", @@ -221,12 +221,12 @@ export type ChatCompletionNonStreamingVerbosity = ClosedEnum< export type ChatCompletionNonStreaming = { messages: Array< - | (ChatCompletionToolMessageParam & { role: "tool" }) - | (ChatCompletionFunctionMessageParam & { role: "function" }) - | (ChatCompletionDeveloperMessageParam & { role: "developer" }) - | (ChatCompletionSystemMessageParam & { role: "system" }) - | (ChatCompletionUserMessageParam & { role: "user" }) - | (ChatCompletionAssistantMessageParam & { role: "assistant" }) + | ChatCompletionDeveloperMessageParam + | ChatCompletionSystemMessageParam + | ChatCompletionUserMessageParam + | ChatCompletionAssistantMessageParam + | ChatCompletionToolMessageParam + | ChatCompletionFunctionMessageParam >; model?: TModel | undefined; audio?: ChatCompletionAudioParam | null | undefined; @@ -252,9 +252,9 @@ export type ChatCompletionNonStreaming = { | null | undefined; responseFormat?: - | (ResponseFormatJSONSchema & { type: "json_schema" }) - | (ResponseFormatText & { type: "text" }) - | (ResponseFormatJSONObject & { type: "json_object" }) + | ResponseFormatText + | ResponseFormatJSONSchema + | ResponseFormatJSONObject | undefined; safetyIdentifier?: string | undefined; seed?: number | null | undefined; @@ -270,10 +270,7 @@ export type ChatCompletionNonStreaming = { | ChatCompletionNonStreamingToolChoiceEnum | undefined; tools?: - | Array< - | (ChatCompletionFunctionToolParam & { type: "function" }) - | (ChatCompletionCustomToolParam & { type: "custom" }) - > + | Array | undefined; topLogprobs?: number | null | undefined; topP?: number | null | undefined; @@ -291,33 +288,21 @@ export const ChatCompletionNonStreamingMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ChatCompletionToolMessageParam$inboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$inboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$inboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$inboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$inboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$inboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$inboundSchema, + ChatCompletionSystemMessageParam$inboundSchema, + ChatCompletionUserMessageParam$inboundSchema, + ChatCompletionAssistantMessageParam$inboundSchema, + ChatCompletionToolMessageParam$inboundSchema, + ChatCompletionFunctionMessageParam$inboundSchema, ]); /** @internal */ export type ChatCompletionNonStreamingMessage$Outbound = - | (ChatCompletionToolMessageParam$Outbound & { role: "tool" }) - | (ChatCompletionFunctionMessageParam$Outbound & { role: "function" }) - | (ChatCompletionDeveloperMessageParam$Outbound & { role: "developer" }) - | (ChatCompletionSystemMessageParam$Outbound & { role: "system" }) - | (ChatCompletionUserMessageParam$Outbound & { role: "user" }) - | (ChatCompletionAssistantMessageParam$Outbound & { role: "assistant" }); + | ChatCompletionDeveloperMessageParam$Outbound + | ChatCompletionSystemMessageParam$Outbound + | ChatCompletionUserMessageParam$Outbound + | ChatCompletionAssistantMessageParam$Outbound + | ChatCompletionToolMessageParam$Outbound + | ChatCompletionFunctionMessageParam$Outbound; /** @internal */ export const ChatCompletionNonStreamingMessage$outboundSchema: z.ZodType< @@ -325,24 +310,12 @@ export const ChatCompletionNonStreamingMessage$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionNonStreamingMessage > = z.union([ - ChatCompletionToolMessageParam$outboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$outboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$outboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$outboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$outboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$outboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$outboundSchema, + ChatCompletionSystemMessageParam$outboundSchema, + ChatCompletionUserMessageParam$outboundSchema, + ChatCompletionAssistantMessageParam$outboundSchema, + ChatCompletionToolMessageParam$outboundSchema, + ChatCompletionFunctionMessageParam$outboundSchema, ]); export function chatCompletionNonStreamingMessageToJSON( @@ -449,19 +422,15 @@ export const ChatCompletionNonStreamingResponseFormat$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ResponseFormatJSONSchema$inboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$inboundSchema.and(z.object({ type: z.literal("text") })), - ResponseFormatJSONObject$inboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$inboundSchema, + ResponseFormatJSONSchema$inboundSchema, + ResponseFormatJSONObject$inboundSchema, ]); /** @internal */ export type ChatCompletionNonStreamingResponseFormat$Outbound = - | (ResponseFormatJSONSchema$Outbound & { type: "json_schema" }) - | (ResponseFormatText$Outbound & { type: "text" }) - | (ResponseFormatJSONObject$Outbound & { type: "json_object" }); + | ResponseFormatText$Outbound + | ResponseFormatJSONSchema$Outbound + | ResponseFormatJSONObject$Outbound; /** @internal */ export const ChatCompletionNonStreamingResponseFormat$outboundSchema: z.ZodType< @@ -469,13 +438,9 @@ export const ChatCompletionNonStreamingResponseFormat$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionNonStreamingResponseFormat > = z.union([ - ResponseFormatJSONSchema$outboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$outboundSchema.and(z.object({ type: z.literal("text") })), - ResponseFormatJSONObject$outboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$outboundSchema, + ResponseFormatJSONSchema$outboundSchema, + ResponseFormatJSONObject$outboundSchema, ]); export function chatCompletionNonStreamingResponseFormatToJSON( @@ -621,17 +586,13 @@ export const ChatCompletionNonStreamingTool$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ChatCompletionFunctionToolParam$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$inboundSchema, + ChatCompletionCustomToolParam$inboundSchema, ]); /** @internal */ export type ChatCompletionNonStreamingTool$Outbound = - | (ChatCompletionFunctionToolParam$Outbound & { type: "function" }) - | (ChatCompletionCustomToolParam$Outbound & { type: "custom" }); + | ChatCompletionFunctionToolParam$Outbound + | ChatCompletionCustomToolParam$Outbound; /** @internal */ export const ChatCompletionNonStreamingTool$outboundSchema: z.ZodType< @@ -639,12 +600,8 @@ export const ChatCompletionNonStreamingTool$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionNonStreamingTool > = z.union([ - ChatCompletionFunctionToolParam$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$outboundSchema, + ChatCompletionCustomToolParam$outboundSchema, ]); export function chatCompletionNonStreamingToolToJSON( @@ -683,24 +640,12 @@ export const ChatCompletionNonStreaming$inboundSchema: z.ZodType< > = z.object({ messages: z.array( z.union([ - ChatCompletionToolMessageParam$inboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$inboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$inboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$inboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$inboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$inboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$inboundSchema, + ChatCompletionSystemMessageParam$inboundSchema, + ChatCompletionUserMessageParam$inboundSchema, + ChatCompletionAssistantMessageParam$inboundSchema, + ChatCompletionToolMessageParam$inboundSchema, + ChatCompletionFunctionMessageParam$inboundSchema, ]), ), model: TModel$inboundSchema.optional(), @@ -731,13 +676,9 @@ export const ChatCompletionNonStreaming$inboundSchema: z.ZodType< ChatCompletionNonStreamingReasoningEffort$inboundSchema, ).optional(), response_format: z.union([ - ResponseFormatJSONSchema$inboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$inboundSchema.and(z.object({ type: z.literal("text") })), - ResponseFormatJSONObject$inboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$inboundSchema, + ResponseFormatJSONSchema$inboundSchema, + ResponseFormatJSONObject$inboundSchema, ]).optional(), safety_identifier: z.string().optional(), seed: z.nullable(z.number().int()).optional(), @@ -756,12 +697,8 @@ export const ChatCompletionNonStreaming$inboundSchema: z.ZodType< ]).optional(), tools: z.array( z.union([ - ChatCompletionFunctionToolParam$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$inboundSchema, + ChatCompletionCustomToolParam$inboundSchema, ]), ).optional(), top_logprobs: z.nullable(z.number().int()).optional(), @@ -770,7 +707,7 @@ export const ChatCompletionNonStreaming$inboundSchema: z.ZodType< verbosity: z.nullable(ChatCompletionNonStreamingVerbosity$inboundSchema) .optional(), web_search_options: WebSearchOptions$inboundSchema.optional(), - stream: z.nullable(z.literal(false).default(false)).optional(), + stream: z.nullable(z.literal(false)).optional(), tags: z.nullable(z.record(z.any())).optional(), parent_span_id: z.nullable(z.string()).optional(), }).transform((v) => { @@ -798,12 +735,12 @@ export const ChatCompletionNonStreaming$inboundSchema: z.ZodType< /** @internal */ export type ChatCompletionNonStreaming$Outbound = { messages: Array< - | (ChatCompletionToolMessageParam$Outbound & { role: "tool" }) - | (ChatCompletionFunctionMessageParam$Outbound & { role: "function" }) - | (ChatCompletionDeveloperMessageParam$Outbound & { role: "developer" }) - | (ChatCompletionSystemMessageParam$Outbound & { role: "system" }) - | (ChatCompletionUserMessageParam$Outbound & { role: "user" }) - | (ChatCompletionAssistantMessageParam$Outbound & { role: "assistant" }) + | ChatCompletionDeveloperMessageParam$Outbound + | ChatCompletionSystemMessageParam$Outbound + | ChatCompletionUserMessageParam$Outbound + | ChatCompletionAssistantMessageParam$Outbound + | ChatCompletionToolMessageParam$Outbound + | ChatCompletionFunctionMessageParam$Outbound >; model?: TModel$Outbound | undefined; audio?: ChatCompletionAudioParam$Outbound | null | undefined; @@ -828,9 +765,9 @@ export type ChatCompletionNonStreaming$Outbound = { prompt_cache_key?: string | undefined; reasoning_effort?: string | null | undefined; response_format?: - | (ResponseFormatJSONSchema$Outbound & { type: "json_schema" }) - | (ResponseFormatText$Outbound & { type: "text" }) - | (ResponseFormatJSONObject$Outbound & { type: "json_object" }) + | ResponseFormatText$Outbound + | ResponseFormatJSONSchema$Outbound + | ResponseFormatJSONObject$Outbound | undefined; safety_identifier?: string | undefined; seed?: number | null | undefined; @@ -847,8 +784,8 @@ export type ChatCompletionNonStreaming$Outbound = { | undefined; tools?: | Array< - | (ChatCompletionFunctionToolParam$Outbound & { type: "function" }) - | (ChatCompletionCustomToolParam$Outbound & { type: "custom" }) + | ChatCompletionFunctionToolParam$Outbound + | ChatCompletionCustomToolParam$Outbound > | undefined; top_logprobs?: number | null | undefined; @@ -856,7 +793,7 @@ export type ChatCompletionNonStreaming$Outbound = { user?: string | undefined; verbosity?: string | null | undefined; web_search_options?: WebSearchOptions$Outbound | undefined; - stream: false | null; + stream?: false | null | undefined; tags?: { [k: string]: any } | null | undefined; parent_span_id?: string | null | undefined; }; @@ -869,24 +806,12 @@ export const ChatCompletionNonStreaming$outboundSchema: z.ZodType< > = z.object({ messages: z.array( z.union([ - ChatCompletionToolMessageParam$outboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$outboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$outboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$outboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$outboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$outboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$outboundSchema, + ChatCompletionSystemMessageParam$outboundSchema, + ChatCompletionUserMessageParam$outboundSchema, + ChatCompletionAssistantMessageParam$outboundSchema, + ChatCompletionToolMessageParam$outboundSchema, + ChatCompletionFunctionMessageParam$outboundSchema, ]), ), model: TModel$outboundSchema.optional(), @@ -917,15 +842,9 @@ export const ChatCompletionNonStreaming$outboundSchema: z.ZodType< ChatCompletionNonStreamingReasoningEffort$outboundSchema, ).optional(), responseFormat: z.union([ - ResponseFormatJSONSchema$outboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$outboundSchema.and( - z.object({ type: z.literal("text") }), - ), - ResponseFormatJSONObject$outboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$outboundSchema, + ResponseFormatJSONSchema$outboundSchema, + ResponseFormatJSONObject$outboundSchema, ]).optional(), safetyIdentifier: z.string().optional(), seed: z.nullable(z.number().int()).optional(), @@ -944,12 +863,8 @@ export const ChatCompletionNonStreaming$outboundSchema: z.ZodType< ]).optional(), tools: z.array( z.union([ - ChatCompletionFunctionToolParam$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$outboundSchema, + ChatCompletionCustomToolParam$outboundSchema, ]), ).optional(), topLogprobs: z.nullable(z.number().int()).optional(), @@ -958,7 +873,7 @@ export const ChatCompletionNonStreaming$outboundSchema: z.ZodType< verbosity: z.nullable(ChatCompletionNonStreamingVerbosity$outboundSchema) .optional(), webSearchOptions: WebSearchOptions$outboundSchema.optional(), - stream: z.nullable(z.literal(false)), + stream: z.nullable(z.literal(false)).optional(), tags: z.nullable(z.record(z.any())).optional(), parentSpanId: z.nullable(z.string()).optional(), }).transform((v) => { diff --git a/src/models/chatcompletionpredictioncontentparam.ts b/src/models/chatcompletionpredictioncontentparam.ts index b468d85..742bedf 100644 --- a/src/models/chatcompletionpredictioncontentparam.ts +++ b/src/models/chatcompletionpredictioncontentparam.ts @@ -19,7 +19,7 @@ export type ChatCompletionPredictionContentParamContent = export type ChatCompletionPredictionContentParam = { content: string | Array; - type?: "content" | undefined; + type: "content"; }; /** @internal */ @@ -84,7 +84,7 @@ export const ChatCompletionPredictionContentParam$inboundSchema: z.ZodType< z.string(), z.array(ChatCompletionContentPartTextParam$inboundSchema), ]), - type: z.literal("content").default("content").optional(), + type: z.literal("content"), }); /** @internal */ export type ChatCompletionPredictionContentParam$Outbound = { diff --git a/src/models/chatcompletionstreaming.ts b/src/models/chatcompletionstreaming.ts index 4567d03..cdbbf51 100644 --- a/src/models/chatcompletionstreaming.ts +++ b/src/models/chatcompletionstreaming.ts @@ -136,12 +136,12 @@ import { } from "./websearchoptions.js"; export type ChatCompletionStreamingMessage = - | (ChatCompletionToolMessageParam & { role: "tool" }) - | (ChatCompletionFunctionMessageParam & { role: "function" }) - | (ChatCompletionDeveloperMessageParam & { role: "developer" }) - | (ChatCompletionSystemMessageParam & { role: "system" }) - | (ChatCompletionUserMessageParam & { role: "user" }) - | (ChatCompletionAssistantMessageParam & { role: "assistant" }); + | ChatCompletionDeveloperMessageParam + | ChatCompletionSystemMessageParam + | ChatCompletionUserMessageParam + | ChatCompletionAssistantMessageParam + | ChatCompletionToolMessageParam + | ChatCompletionFunctionMessageParam; export const ChatCompletionStreamingFunctionCallEnum = { None: "none", @@ -174,9 +174,9 @@ export type ChatCompletionStreamingReasoningEffort = ClosedEnum< >; export type ChatCompletionStreamingResponseFormat = - | (ResponseFormatJSONSchema & { type: "json_schema" }) - | (ResponseFormatText & { type: "text" }) - | (ResponseFormatJSONObject & { type: "json_object" }); + | ResponseFormatText + | ResponseFormatJSONSchema + | ResponseFormatJSONObject; export const ChatCompletionStreamingServiceTier = { Auto: "auto", @@ -207,8 +207,8 @@ export type ChatCompletionStreamingToolChoiceUnion = | ChatCompletionStreamingToolChoiceEnum; export type ChatCompletionStreamingTool = - | (ChatCompletionFunctionToolParam & { type: "function" }) - | (ChatCompletionCustomToolParam & { type: "custom" }); + | ChatCompletionFunctionToolParam + | ChatCompletionCustomToolParam; export const ChatCompletionStreamingVerbosity = { Low: "low", @@ -221,12 +221,12 @@ export type ChatCompletionStreamingVerbosity = ClosedEnum< export type ChatCompletionStreaming = { messages: Array< - | (ChatCompletionToolMessageParam & { role: "tool" }) - | (ChatCompletionFunctionMessageParam & { role: "function" }) - | (ChatCompletionDeveloperMessageParam & { role: "developer" }) - | (ChatCompletionSystemMessageParam & { role: "system" }) - | (ChatCompletionUserMessageParam & { role: "user" }) - | (ChatCompletionAssistantMessageParam & { role: "assistant" }) + | ChatCompletionDeveloperMessageParam + | ChatCompletionSystemMessageParam + | ChatCompletionUserMessageParam + | ChatCompletionAssistantMessageParam + | ChatCompletionToolMessageParam + | ChatCompletionFunctionMessageParam >; model?: TModel | undefined; audio?: ChatCompletionAudioParam | null | undefined; @@ -249,9 +249,9 @@ export type ChatCompletionStreaming = { promptCacheKey?: string | undefined; reasoningEffort?: ChatCompletionStreamingReasoningEffort | null | undefined; responseFormat?: - | (ResponseFormatJSONSchema & { type: "json_schema" }) - | (ResponseFormatText & { type: "text" }) - | (ResponseFormatJSONObject & { type: "json_object" }) + | ResponseFormatText + | ResponseFormatJSONSchema + | ResponseFormatJSONObject | undefined; safetyIdentifier?: string | undefined; seed?: number | null | undefined; @@ -267,17 +267,14 @@ export type ChatCompletionStreaming = { | ChatCompletionStreamingToolChoiceEnum | undefined; tools?: - | Array< - | (ChatCompletionFunctionToolParam & { type: "function" }) - | (ChatCompletionCustomToolParam & { type: "custom" }) - > + | Array | undefined; topLogprobs?: number | null | undefined; topP?: number | null | undefined; user?: string | undefined; verbosity?: ChatCompletionStreamingVerbosity | null | undefined; webSearchOptions?: WebSearchOptions | undefined; - stream?: true | undefined; + stream: true; tags?: { [k: string]: any } | null | undefined; parentSpanId?: string | null | undefined; }; @@ -288,33 +285,21 @@ export const ChatCompletionStreamingMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ChatCompletionToolMessageParam$inboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$inboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$inboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$inboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$inboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$inboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$inboundSchema, + ChatCompletionSystemMessageParam$inboundSchema, + ChatCompletionUserMessageParam$inboundSchema, + ChatCompletionAssistantMessageParam$inboundSchema, + ChatCompletionToolMessageParam$inboundSchema, + ChatCompletionFunctionMessageParam$inboundSchema, ]); /** @internal */ export type ChatCompletionStreamingMessage$Outbound = - | (ChatCompletionToolMessageParam$Outbound & { role: "tool" }) - | (ChatCompletionFunctionMessageParam$Outbound & { role: "function" }) - | (ChatCompletionDeveloperMessageParam$Outbound & { role: "developer" }) - | (ChatCompletionSystemMessageParam$Outbound & { role: "system" }) - | (ChatCompletionUserMessageParam$Outbound & { role: "user" }) - | (ChatCompletionAssistantMessageParam$Outbound & { role: "assistant" }); + | ChatCompletionDeveloperMessageParam$Outbound + | ChatCompletionSystemMessageParam$Outbound + | ChatCompletionUserMessageParam$Outbound + | ChatCompletionAssistantMessageParam$Outbound + | ChatCompletionToolMessageParam$Outbound + | ChatCompletionFunctionMessageParam$Outbound; /** @internal */ export const ChatCompletionStreamingMessage$outboundSchema: z.ZodType< @@ -322,24 +307,12 @@ export const ChatCompletionStreamingMessage$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionStreamingMessage > = z.union([ - ChatCompletionToolMessageParam$outboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$outboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$outboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$outboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$outboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$outboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$outboundSchema, + ChatCompletionSystemMessageParam$outboundSchema, + ChatCompletionUserMessageParam$outboundSchema, + ChatCompletionAssistantMessageParam$outboundSchema, + ChatCompletionToolMessageParam$outboundSchema, + ChatCompletionFunctionMessageParam$outboundSchema, ]); export function chatCompletionStreamingMessageToJSON( @@ -445,19 +418,15 @@ export const ChatCompletionStreamingResponseFormat$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ResponseFormatJSONSchema$inboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$inboundSchema.and(z.object({ type: z.literal("text") })), - ResponseFormatJSONObject$inboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$inboundSchema, + ResponseFormatJSONSchema$inboundSchema, + ResponseFormatJSONObject$inboundSchema, ]); /** @internal */ export type ChatCompletionStreamingResponseFormat$Outbound = - | (ResponseFormatJSONSchema$Outbound & { type: "json_schema" }) - | (ResponseFormatText$Outbound & { type: "text" }) - | (ResponseFormatJSONObject$Outbound & { type: "json_object" }); + | ResponseFormatText$Outbound + | ResponseFormatJSONSchema$Outbound + | ResponseFormatJSONObject$Outbound; /** @internal */ export const ChatCompletionStreamingResponseFormat$outboundSchema: z.ZodType< @@ -465,13 +434,9 @@ export const ChatCompletionStreamingResponseFormat$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionStreamingResponseFormat > = z.union([ - ResponseFormatJSONSchema$outboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$outboundSchema.and(z.object({ type: z.literal("text") })), - ResponseFormatJSONObject$outboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$outboundSchema, + ResponseFormatJSONSchema$outboundSchema, + ResponseFormatJSONObject$outboundSchema, ]); export function chatCompletionStreamingResponseFormatToJSON( @@ -605,17 +570,13 @@ export const ChatCompletionStreamingTool$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([ - ChatCompletionFunctionToolParam$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$inboundSchema, + ChatCompletionCustomToolParam$inboundSchema, ]); /** @internal */ export type ChatCompletionStreamingTool$Outbound = - | (ChatCompletionFunctionToolParam$Outbound & { type: "function" }) - | (ChatCompletionCustomToolParam$Outbound & { type: "custom" }); + | ChatCompletionFunctionToolParam$Outbound + | ChatCompletionCustomToolParam$Outbound; /** @internal */ export const ChatCompletionStreamingTool$outboundSchema: z.ZodType< @@ -623,12 +584,8 @@ export const ChatCompletionStreamingTool$outboundSchema: z.ZodType< z.ZodTypeDef, ChatCompletionStreamingTool > = z.union([ - ChatCompletionFunctionToolParam$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$outboundSchema, + ChatCompletionCustomToolParam$outboundSchema, ]); export function chatCompletionStreamingToolToJSON( @@ -667,24 +624,12 @@ export const ChatCompletionStreaming$inboundSchema: z.ZodType< > = z.object({ messages: z.array( z.union([ - ChatCompletionToolMessageParam$inboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$inboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$inboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$inboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$inboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$inboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$inboundSchema, + ChatCompletionSystemMessageParam$inboundSchema, + ChatCompletionUserMessageParam$inboundSchema, + ChatCompletionAssistantMessageParam$inboundSchema, + ChatCompletionToolMessageParam$inboundSchema, + ChatCompletionFunctionMessageParam$inboundSchema, ]), ), model: TModel$inboundSchema.optional(), @@ -714,13 +659,9 @@ export const ChatCompletionStreaming$inboundSchema: z.ZodType< ChatCompletionStreamingReasoningEffort$inboundSchema, ).optional(), response_format: z.union([ - ResponseFormatJSONSchema$inboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$inboundSchema.and(z.object({ type: z.literal("text") })), - ResponseFormatJSONObject$inboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$inboundSchema, + ResponseFormatJSONSchema$inboundSchema, + ResponseFormatJSONObject$inboundSchema, ]).optional(), safety_identifier: z.string().optional(), seed: z.nullable(z.number().int()).optional(), @@ -739,12 +680,8 @@ export const ChatCompletionStreaming$inboundSchema: z.ZodType< ]).optional(), tools: z.array( z.union([ - ChatCompletionFunctionToolParam$inboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$inboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$inboundSchema, + ChatCompletionCustomToolParam$inboundSchema, ]), ).optional(), top_logprobs: z.nullable(z.number().int()).optional(), @@ -753,7 +690,7 @@ export const ChatCompletionStreaming$inboundSchema: z.ZodType< verbosity: z.nullable(ChatCompletionStreamingVerbosity$inboundSchema) .optional(), web_search_options: WebSearchOptions$inboundSchema.optional(), - stream: z.literal(true).default(true).optional(), + stream: z.literal(true), tags: z.nullable(z.record(z.any())).optional(), parent_span_id: z.nullable(z.string()).optional(), }).transform((v) => { @@ -781,12 +718,12 @@ export const ChatCompletionStreaming$inboundSchema: z.ZodType< /** @internal */ export type ChatCompletionStreaming$Outbound = { messages: Array< - | (ChatCompletionToolMessageParam$Outbound & { role: "tool" }) - | (ChatCompletionFunctionMessageParam$Outbound & { role: "function" }) - | (ChatCompletionDeveloperMessageParam$Outbound & { role: "developer" }) - | (ChatCompletionSystemMessageParam$Outbound & { role: "system" }) - | (ChatCompletionUserMessageParam$Outbound & { role: "user" }) - | (ChatCompletionAssistantMessageParam$Outbound & { role: "assistant" }) + | ChatCompletionDeveloperMessageParam$Outbound + | ChatCompletionSystemMessageParam$Outbound + | ChatCompletionUserMessageParam$Outbound + | ChatCompletionAssistantMessageParam$Outbound + | ChatCompletionToolMessageParam$Outbound + | ChatCompletionFunctionMessageParam$Outbound >; model?: TModel$Outbound | undefined; audio?: ChatCompletionAudioParam$Outbound | null | undefined; @@ -811,9 +748,9 @@ export type ChatCompletionStreaming$Outbound = { prompt_cache_key?: string | undefined; reasoning_effort?: string | null | undefined; response_format?: - | (ResponseFormatJSONSchema$Outbound & { type: "json_schema" }) - | (ResponseFormatText$Outbound & { type: "text" }) - | (ResponseFormatJSONObject$Outbound & { type: "json_object" }) + | ResponseFormatText$Outbound + | ResponseFormatJSONSchema$Outbound + | ResponseFormatJSONObject$Outbound | undefined; safety_identifier?: string | undefined; seed?: number | null | undefined; @@ -830,8 +767,8 @@ export type ChatCompletionStreaming$Outbound = { | undefined; tools?: | Array< - | (ChatCompletionFunctionToolParam$Outbound & { type: "function" }) - | (ChatCompletionCustomToolParam$Outbound & { type: "custom" }) + | ChatCompletionFunctionToolParam$Outbound + | ChatCompletionCustomToolParam$Outbound > | undefined; top_logprobs?: number | null | undefined; @@ -852,24 +789,12 @@ export const ChatCompletionStreaming$outboundSchema: z.ZodType< > = z.object({ messages: z.array( z.union([ - ChatCompletionToolMessageParam$outboundSchema.and( - z.object({ role: z.literal("tool") }), - ), - ChatCompletionFunctionMessageParam$outboundSchema.and( - z.object({ role: z.literal("function") }), - ), - ChatCompletionDeveloperMessageParam$outboundSchema.and( - z.object({ role: z.literal("developer") }), - ), - ChatCompletionSystemMessageParam$outboundSchema.and( - z.object({ role: z.literal("system") }), - ), - ChatCompletionUserMessageParam$outboundSchema.and( - z.object({ role: z.literal("user") }), - ), - ChatCompletionAssistantMessageParam$outboundSchema.and( - z.object({ role: z.literal("assistant") }), - ), + ChatCompletionDeveloperMessageParam$outboundSchema, + ChatCompletionSystemMessageParam$outboundSchema, + ChatCompletionUserMessageParam$outboundSchema, + ChatCompletionAssistantMessageParam$outboundSchema, + ChatCompletionToolMessageParam$outboundSchema, + ChatCompletionFunctionMessageParam$outboundSchema, ]), ), model: TModel$outboundSchema.optional(), @@ -900,15 +825,9 @@ export const ChatCompletionStreaming$outboundSchema: z.ZodType< ChatCompletionStreamingReasoningEffort$outboundSchema, ).optional(), responseFormat: z.union([ - ResponseFormatJSONSchema$outboundSchema.and( - z.object({ type: z.literal("json_schema") }), - ), - ResponseFormatText$outboundSchema.and( - z.object({ type: z.literal("text") }), - ), - ResponseFormatJSONObject$outboundSchema.and( - z.object({ type: z.literal("json_object") }), - ), + ResponseFormatText$outboundSchema, + ResponseFormatJSONSchema$outboundSchema, + ResponseFormatJSONObject$outboundSchema, ]).optional(), safetyIdentifier: z.string().optional(), seed: z.nullable(z.number().int()).optional(), @@ -927,12 +846,8 @@ export const ChatCompletionStreaming$outboundSchema: z.ZodType< ]).optional(), tools: z.array( z.union([ - ChatCompletionFunctionToolParam$outboundSchema.and( - z.object({ type: z.literal("function") }), - ), - ChatCompletionCustomToolParam$outboundSchema.and( - z.object({ type: z.literal("custom") }), - ), + ChatCompletionFunctionToolParam$outboundSchema, + ChatCompletionCustomToolParam$outboundSchema, ]), ).optional(), topLogprobs: z.nullable(z.number().int()).optional(), diff --git a/src/models/chatcompletionsystemmessageparam.ts b/src/models/chatcompletionsystemmessageparam.ts index c8ca4ad..783b501 100644 --- a/src/models/chatcompletionsystemmessageparam.ts +++ b/src/models/chatcompletionsystemmessageparam.ts @@ -19,7 +19,7 @@ export type ChatCompletionSystemMessageParamContent = export type ChatCompletionSystemMessageParam = { content: string | Array; - role?: "system" | undefined; + role: "system"; name?: string | undefined; }; @@ -83,7 +83,7 @@ export const ChatCompletionSystemMessageParam$inboundSchema: z.ZodType< z.string(), z.array(ChatCompletionContentPartTextParam$inboundSchema), ]), - role: z.literal("system").default("system").optional(), + role: z.literal("system"), name: z.string().optional(), }); /** @internal */ diff --git a/src/models/chatcompletiontoolmessageparam.ts b/src/models/chatcompletiontoolmessageparam.ts index 3055b09..1c71737 100644 --- a/src/models/chatcompletiontoolmessageparam.ts +++ b/src/models/chatcompletiontoolmessageparam.ts @@ -20,7 +20,7 @@ export type ChatCompletionToolMessageParamContent = export type ChatCompletionToolMessageParam = { content: string | Array; - role?: "tool" | undefined; + role: "tool"; toolCallId: string; }; @@ -78,7 +78,7 @@ export const ChatCompletionToolMessageParam$inboundSchema: z.ZodType< z.string(), z.array(ChatCompletionContentPartTextParam$inboundSchema), ]), - role: z.literal("tool").default("tool").optional(), + role: z.literal("tool"), tool_call_id: z.string(), }).transform((v) => { return remap$(v, { diff --git a/src/models/chatcompletionusermessageparam.ts b/src/models/chatcompletionusermessageparam.ts index f66cb8f..909ae30 100644 --- a/src/models/chatcompletionusermessageparam.ts +++ b/src/models/chatcompletionusermessageparam.ts @@ -33,17 +33,17 @@ import { export type ChatCompletionUserMessageParamContent1 = | (ChatCompletionContentPartTextParam & { type: "text" }) - | (ChatCompletionContentPartImageParam & { type: "image_url" }) - | (ChatCompletionContentPartInputAudioParam & { type: "input_audio" }) - | (FileT & { type: "file" }); + | ChatCompletionContentPartImageParam + | ChatCompletionContentPartInputAudioParam + | FileT; export type ChatCompletionUserMessageParamContent2 = | string | Array< | (ChatCompletionContentPartTextParam & { type: "text" }) - | (ChatCompletionContentPartImageParam & { type: "image_url" }) - | (ChatCompletionContentPartInputAudioParam & { type: "input_audio" }) - | (FileT & { type: "file" }) + | ChatCompletionContentPartImageParam + | ChatCompletionContentPartInputAudioParam + | FileT >; export type ChatCompletionUserMessageParam = { @@ -51,11 +51,11 @@ export type ChatCompletionUserMessageParam = { | string | Array< | (ChatCompletionContentPartTextParam & { type: "text" }) - | (ChatCompletionContentPartImageParam & { type: "image_url" }) - | (ChatCompletionContentPartInputAudioParam & { type: "input_audio" }) - | (FileT & { type: "file" }) + | ChatCompletionContentPartImageParam + | ChatCompletionContentPartInputAudioParam + | FileT >; - role?: "user" | undefined; + role: "user"; name?: string | undefined; }; @@ -68,22 +68,16 @@ export const ChatCompletionUserMessageParamContent1$inboundSchema: z.ZodType< ChatCompletionContentPartTextParam$inboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartImageParam$inboundSchema.and( - z.object({ type: z.literal("image_url") }), - ), - ChatCompletionContentPartInputAudioParam$inboundSchema.and( - z.object({ type: z.literal("input_audio") }), - ), - FileT$inboundSchema.and(z.object({ type: z.literal("file") })), + ChatCompletionContentPartImageParam$inboundSchema, + ChatCompletionContentPartInputAudioParam$inboundSchema, + FileT$inboundSchema, ]); /** @internal */ export type ChatCompletionUserMessageParamContent1$Outbound = | (ChatCompletionContentPartTextParam$Outbound & { type: "text" }) - | (ChatCompletionContentPartImageParam$Outbound & { type: "image_url" }) - | (ChatCompletionContentPartInputAudioParam$Outbound & { - type: "input_audio"; - }) - | (FileT$Outbound & { type: "file" }); + | ChatCompletionContentPartImageParam$Outbound + | ChatCompletionContentPartInputAudioParam$Outbound + | FileT$Outbound; /** @internal */ export const ChatCompletionUserMessageParamContent1$outboundSchema: z.ZodType< @@ -94,13 +88,9 @@ export const ChatCompletionUserMessageParamContent1$outboundSchema: z.ZodType< ChatCompletionContentPartTextParam$outboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartImageParam$outboundSchema.and( - z.object({ type: z.literal("image_url") }), - ), - ChatCompletionContentPartInputAudioParam$outboundSchema.and( - z.object({ type: z.literal("input_audio") }), - ), - FileT$outboundSchema.and(z.object({ type: z.literal("file") })), + ChatCompletionContentPartImageParam$outboundSchema, + ChatCompletionContentPartInputAudioParam$outboundSchema, + FileT$outboundSchema, ]); export function chatCompletionUserMessageParamContent1ToJSON( @@ -136,13 +126,9 @@ export const ChatCompletionUserMessageParamContent2$inboundSchema: z.ZodType< ChatCompletionContentPartTextParam$inboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartImageParam$inboundSchema.and( - z.object({ type: z.literal("image_url") }), - ), - ChatCompletionContentPartInputAudioParam$inboundSchema.and( - z.object({ type: z.literal("input_audio") }), - ), - FileT$inboundSchema.and(z.object({ type: z.literal("file") })), + ChatCompletionContentPartImageParam$inboundSchema, + ChatCompletionContentPartInputAudioParam$inboundSchema, + FileT$inboundSchema, ]), ), ]); @@ -151,11 +137,9 @@ export type ChatCompletionUserMessageParamContent2$Outbound = | string | Array< | (ChatCompletionContentPartTextParam$Outbound & { type: "text" }) - | (ChatCompletionContentPartImageParam$Outbound & { type: "image_url" }) - | (ChatCompletionContentPartInputAudioParam$Outbound & { - type: "input_audio"; - }) - | (FileT$Outbound & { type: "file" }) + | ChatCompletionContentPartImageParam$Outbound + | ChatCompletionContentPartInputAudioParam$Outbound + | FileT$Outbound >; /** @internal */ @@ -170,13 +154,9 @@ export const ChatCompletionUserMessageParamContent2$outboundSchema: z.ZodType< ChatCompletionContentPartTextParam$outboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartImageParam$outboundSchema.and( - z.object({ type: z.literal("image_url") }), - ), - ChatCompletionContentPartInputAudioParam$outboundSchema.and( - z.object({ type: z.literal("input_audio") }), - ), - FileT$outboundSchema.and(z.object({ type: z.literal("file") })), + ChatCompletionContentPartImageParam$outboundSchema, + ChatCompletionContentPartInputAudioParam$outboundSchema, + FileT$outboundSchema, ]), ), ]); @@ -215,17 +195,13 @@ export const ChatCompletionUserMessageParam$inboundSchema: z.ZodType< ChatCompletionContentPartTextParam$inboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartImageParam$inboundSchema.and( - z.object({ type: z.literal("image_url") }), - ), - ChatCompletionContentPartInputAudioParam$inboundSchema.and( - z.object({ type: z.literal("input_audio") }), - ), - FileT$inboundSchema.and(z.object({ type: z.literal("file") })), + ChatCompletionContentPartImageParam$inboundSchema, + ChatCompletionContentPartInputAudioParam$inboundSchema, + FileT$inboundSchema, ]), ), ]), - role: z.literal("user").default("user").optional(), + role: z.literal("user"), name: z.string().optional(), }); /** @internal */ @@ -234,11 +210,9 @@ export type ChatCompletionUserMessageParam$Outbound = { | string | Array< | (ChatCompletionContentPartTextParam$Outbound & { type: "text" }) - | (ChatCompletionContentPartImageParam$Outbound & { type: "image_url" }) - | (ChatCompletionContentPartInputAudioParam$Outbound & { - type: "input_audio"; - }) - | (FileT$Outbound & { type: "file" }) + | ChatCompletionContentPartImageParam$Outbound + | ChatCompletionContentPartInputAudioParam$Outbound + | FileT$Outbound >; role: "user"; name?: string | undefined; @@ -257,13 +231,9 @@ export const ChatCompletionUserMessageParam$outboundSchema: z.ZodType< ChatCompletionContentPartTextParam$outboundSchema.and( z.object({ type: z.literal("text") }), ), - ChatCompletionContentPartImageParam$outboundSchema.and( - z.object({ type: z.literal("image_url") }), - ), - ChatCompletionContentPartInputAudioParam$outboundSchema.and( - z.object({ type: z.literal("input_audio") }), - ), - FileT$outboundSchema.and(z.object({ type: z.literal("file") })), + ChatCompletionContentPartImageParam$outboundSchema, + ChatCompletionContentPartInputAudioParam$outboundSchema, + FileT$outboundSchema, ]), ), ]), diff --git a/src/models/customformatgrammar.ts b/src/models/customformatgrammar.ts index c5d9515..48bf703 100644 --- a/src/models/customformatgrammar.ts +++ b/src/models/customformatgrammar.ts @@ -15,7 +15,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type CustomFormatGrammar = { grammar: CustomFormatGrammarGrammar; - type?: "grammar" | undefined; + type: "grammar"; }; /** @internal */ @@ -25,7 +25,7 @@ export const CustomFormatGrammar$inboundSchema: z.ZodType< unknown > = z.object({ grammar: CustomFormatGrammarGrammar$inboundSchema, - type: z.literal("grammar").default("grammar").optional(), + type: z.literal("grammar"), }); /** @internal */ export type CustomFormatGrammar$Outbound = { diff --git a/src/models/customformattext.ts b/src/models/customformattext.ts index 9901c30..93b34d3 100644 --- a/src/models/customformattext.ts +++ b/src/models/customformattext.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type CustomFormatText = { - type?: "text" | undefined; + type: "text"; }; /** @internal */ @@ -17,7 +17,7 @@ export const CustomFormatText$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: z.literal("text").default("text").optional(), + type: z.literal("text"), }); /** @internal */ export type CustomFormatText$Outbound = { diff --git a/src/models/feedbackinfo.ts b/src/models/feedbackinfo.ts new file mode 100644 index 0000000..b922c26 --- /dev/null +++ b/src/models/feedbackinfo.ts @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../lib/schemas.js"; +import { Result as SafeParseResult } from "../types/fp.js"; +import { SDKValidationError } from "./errors/sdkvalidationerror.js"; + +/** + * Human feedback information for a span. + */ +export type FeedbackInfo = { + /** + * Feedback score (0.0-1.0) + */ + score: number; + /** + * Optional feedback comment + */ + comment?: string | null | undefined; +}; + +/** @internal */ +export const FeedbackInfo$inboundSchema: z.ZodType< + FeedbackInfo, + z.ZodTypeDef, + unknown +> = z.object({ + score: z.number(), + comment: z.nullable(z.string()).optional(), +}); +/** @internal */ +export type FeedbackInfo$Outbound = { + score: number; + comment?: string | null | undefined; +}; + +/** @internal */ +export const FeedbackInfo$outboundSchema: z.ZodType< + FeedbackInfo$Outbound, + z.ZodTypeDef, + FeedbackInfo +> = z.object({ + score: z.number(), + comment: z.nullable(z.string()).optional(), +}); + +export function feedbackInfoToJSON(feedbackInfo: FeedbackInfo): string { + return JSON.stringify(FeedbackInfo$outboundSchema.parse(feedbackInfo)); +} +export function feedbackInfoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => FeedbackInfo$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'FeedbackInfo' from JSON`, + ); +} diff --git a/src/models/file.ts b/src/models/file.ts index 468f055..4013883 100644 --- a/src/models/file.ts +++ b/src/models/file.ts @@ -15,14 +15,14 @@ import { export type FileT = { file: FileFile; - type?: "file" | undefined; + type: "file"; }; /** @internal */ export const FileT$inboundSchema: z.ZodType = z .object({ file: FileFile$inboundSchema, - type: z.literal("file").default("file").optional(), + type: z.literal("file"), }); /** @internal */ export type FileT$Outbound = { diff --git a/src/models/functioncallconfigurationinput.ts b/src/models/functioncallconfigurationinput.ts index 93718a7..06e1d7a 100644 --- a/src/models/functioncallconfigurationinput.ts +++ b/src/models/functioncallconfigurationinput.ts @@ -10,7 +10,9 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type FunctionCallConfigurationInput = { /** - * The number of few-shot examples to use for the call. The examples are selected using nearest neighbor search of the function's dataset for items that are similar to the input. + * [DEPRECATED via /call] This field is ignored when passed via /call endpoint. The system enforces a default of 3. Configure via PATCH /v2/functions/{uuid} or the Platform UI instead. The number of few-shot examples to use for the call, selected using nearest neighbor search of the function's dataset. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ invocationFewShotCount?: number | undefined; /** @@ -41,7 +43,7 @@ export const FunctionCallConfigurationInput$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "invocation.few_shot.count": z.number().int().default(0), + "invocation.few_shot.count": z.number().int().default(3), "beta.evaluation": z.nullable(z.any()).optional(), "invocation.structured_generation.max_attempts": z.number().int().default(5), "invocation.cache.ttl": z.number().int().default(0), @@ -75,7 +77,7 @@ export const FunctionCallConfigurationInput$outboundSchema: z.ZodType< z.ZodTypeDef, FunctionCallConfigurationInput > = z.object({ - invocationFewShotCount: z.number().int().default(0), + invocationFewShotCount: z.number().int().default(3), betaEvaluation: z.nullable(z.any()).optional(), invocationStructuredGenerationMaxAttempts: z.number().int().default(5), invocationCacheTtl: z.number().int().default(0), diff --git a/src/models/functioncallconfigurationoutput.ts b/src/models/functioncallconfigurationoutput.ts index 97ff144..e7772fa 100644 --- a/src/models/functioncallconfigurationoutput.ts +++ b/src/models/functioncallconfigurationoutput.ts @@ -10,7 +10,9 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type FunctionCallConfigurationOutput = { /** - * The number of few-shot examples to use for the call. The examples are selected using nearest neighbor search of the function's dataset for items that are similar to the input. + * [DEPRECATED via /call] This field is ignored when passed via /call endpoint. The system enforces a default of 3. Configure via PATCH /v2/functions/{uuid} or the Platform UI instead. The number of few-shot examples to use for the call, selected using nearest neighbor search of the function's dataset. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ invocationFewShotCount?: number | undefined; /** @@ -37,7 +39,7 @@ export const FunctionCallConfigurationOutput$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - "invocation.few_shot.count": z.number().int().default(0), + "invocation.few_shot.count": z.number().int().default(3), "invocation.structured_generation.max_attempts": z.number().int().default(5), "invocation.cache.ttl": z.number().int().default(0), "beta.invocation.input_validation.enabled": z.boolean().default(false), @@ -68,7 +70,7 @@ export const FunctionCallConfigurationOutput$outboundSchema: z.ZodType< z.ZodTypeDef, FunctionCallConfigurationOutput > = z.object({ - invocationFewShotCount: z.number().int().default(0), + invocationFewShotCount: z.number().int().default(3), invocationStructuredGenerationMaxAttempts: z.number().int().default(5), invocationCacheTtl: z.number().int().default(0), betaInvocationInputValidationEnabled: z.boolean().default(false), diff --git a/src/models/getspanresponse.ts b/src/models/getspanresponse.ts index 0e0139e..ca92339 100644 --- a/src/models/getspanresponse.ts +++ b/src/models/getspanresponse.ts @@ -7,6 +7,12 @@ import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; +import { + FeedbackInfo, + FeedbackInfo$inboundSchema, + FeedbackInfo$Outbound, + FeedbackInfo$outboundSchema, +} from "./feedbackinfo.js"; export type GetSpanResponse = { /** @@ -54,6 +60,10 @@ export type GetSpanResponse = { * The score of the span */ score?: number | null | undefined; + /** + * Human feedback if submitted + */ + feedback?: FeedbackInfo | null | undefined; }; /** @internal */ @@ -78,6 +88,7 @@ export const GetSpanResponse$inboundSchema: z.ZodType< error: z.nullable(z.string()).optional(), meta: z.nullable(z.record(z.any())).optional(), score: z.nullable(z.number().int()).optional(), + feedback: z.nullable(FeedbackInfo$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "start_time": "startTime", @@ -100,6 +111,7 @@ export type GetSpanResponse$Outbound = { error?: string | null | undefined; meta?: { [k: string]: any } | null | undefined; score?: number | null | undefined; + feedback?: FeedbackInfo$Outbound | null | undefined; }; /** @internal */ @@ -120,6 +132,7 @@ export const GetSpanResponse$outboundSchema: z.ZodType< error: z.nullable(z.string()).optional(), meta: z.nullable(z.record(z.any())).optional(), score: z.nullable(z.number().int()).optional(), + feedback: z.nullable(FeedbackInfo$outboundSchema).optional(), }).transform((v) => { return remap$(v, { startTime: "start_time", diff --git a/src/models/index.ts b/src/models/index.ts index 476628b..895ac3e 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -10,6 +10,7 @@ export * from "./appapipublicv2functioncallcallfunctionresponse.js"; export * from "./appapipublicv2functionscallfunctionrequest.js"; export * from "./appapipublicv2functionscallfunctionresponse.js"; export * from "./audio.js"; +export * from "./bodyuploadfileknowledgeknowledgebaseiduploadpost.js"; export * from "./chatcompletion.js"; export * from "./chatcompletionallowedtoolchoiceparam.js"; export * from "./chatcompletionallowedtoolsparam.js"; @@ -66,6 +67,7 @@ export * from "./deleteknowledgebaserequest.js"; export * from "./deleteknowledgebaseresponse.js"; export * from "./example.js"; export * from "./examplein.js"; +export * from "./feedbackinfo.js"; export * from "./file.js"; export * from "./filedownloadurlresponse.js"; export * from "./filefile.js"; @@ -142,6 +144,8 @@ export * from "./security.js"; export * from "./spandata.js"; export * from "./spanmetricdata.js"; export * from "./spanschema.js"; +export * from "./submitfeedbackrequest.js"; +export * from "./submitfeedbackresponse.js"; export * from "./textprocessingconfiguration.js"; export * from "./tmodel.js"; export * from "./toplogprob.js"; @@ -157,6 +161,7 @@ export * from "./updatespanmetricrequest.js"; export * from "./updatespanmetricresponse.js"; export * from "./updatespanrequest.js"; export * from "./updatespanresponse.js"; +export * from "./uploadfileresponse.js"; export * from "./websearchoptions.js"; export * from "./websearchoptionsuserlocation.js"; export * from "./websearchoptionsuserlocationapproximate.js"; diff --git a/src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts b/src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts index ed53cc2..b5b8319 100644 --- a/src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts +++ b/src/models/openaitypeschatchatcompletioncustomtoolparamcustom.ts @@ -19,31 +19,21 @@ import { } from "./customformattext.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; -export type Format = - | (CustomFormatGrammar & { type: "grammar" }) - | (CustomFormatText & { type: "text" }); +export type Format = CustomFormatText | CustomFormatGrammar; export type OpenaiTypesChatChatCompletionCustomToolParamCustom = { name: string; description?: string | undefined; - format?: - | (CustomFormatGrammar & { type: "grammar" }) - | (CustomFormatText & { type: "text" }) - | undefined; + format?: CustomFormatText | CustomFormatGrammar | undefined; }; /** @internal */ export const Format$inboundSchema: z.ZodType = z - .union([ - CustomFormatGrammar$inboundSchema.and( - z.object({ type: z.literal("grammar") }), - ), - CustomFormatText$inboundSchema.and(z.object({ type: z.literal("text") })), - ]); + .union([CustomFormatText$inboundSchema, CustomFormatGrammar$inboundSchema]); /** @internal */ export type Format$Outbound = - | (CustomFormatGrammar$Outbound & { type: "grammar" }) - | (CustomFormatText$Outbound & { type: "text" }); + | CustomFormatText$Outbound + | CustomFormatGrammar$Outbound; /** @internal */ export const Format$outboundSchema: z.ZodType< @@ -51,10 +41,8 @@ export const Format$outboundSchema: z.ZodType< z.ZodTypeDef, Format > = z.union([ - CustomFormatGrammar$outboundSchema.and( - z.object({ type: z.literal("grammar") }), - ), - CustomFormatText$outboundSchema.and(z.object({ type: z.literal("text") })), + CustomFormatText$outboundSchema, + CustomFormatGrammar$outboundSchema, ]); export function formatToJSON(format: Format): string { @@ -80,20 +68,15 @@ export const OpenaiTypesChatChatCompletionCustomToolParamCustom$inboundSchema: name: z.string(), description: z.string().optional(), format: z.union([ - CustomFormatGrammar$inboundSchema.and( - z.object({ type: z.literal("grammar") }), - ), - CustomFormatText$inboundSchema.and(z.object({ type: z.literal("text") })), + CustomFormatText$inboundSchema, + CustomFormatGrammar$inboundSchema, ]).optional(), }); /** @internal */ export type OpenaiTypesChatChatCompletionCustomToolParamCustom$Outbound = { name: string; description?: string | undefined; - format?: - | (CustomFormatGrammar$Outbound & { type: "grammar" }) - | (CustomFormatText$Outbound & { type: "text" }) - | undefined; + format?: CustomFormatText$Outbound | CustomFormatGrammar$Outbound | undefined; }; /** @internal */ @@ -106,12 +89,8 @@ export const OpenaiTypesChatChatCompletionCustomToolParamCustom$outboundSchema: name: z.string(), description: z.string().optional(), format: z.union([ - CustomFormatGrammar$outboundSchema.and( - z.object({ type: z.literal("grammar") }), - ), - CustomFormatText$outboundSchema.and( - z.object({ type: z.literal("text") }), - ), + CustomFormatText$outboundSchema, + CustomFormatGrammar$outboundSchema, ]).optional(), }); diff --git a/src/models/operations/functionstreamcallstreampost.ts b/src/models/operations/functionstreamcallstreampost.ts index ba7d519..340283f 100644 --- a/src/models/operations/functionstreamcallstreampost.ts +++ b/src/models/operations/functionstreamcallstreampost.ts @@ -50,9 +50,17 @@ export type StreamingChunk = { */ spanId?: string | null | undefined; /** - * Indicates the streaming mode: 'text' for unstructured streaming, 'json' for structured streaming with output_schema. Only present when delta content is included. + * Indicates the streaming mode: 'text' for unstructured streaming, 'json' for structured streaming with output_schema, 'error' for error events. Only present when delta content is included. */ chunkType?: string | null | undefined; + /** + * Error type when chunk_type is 'error' + */ + errorType?: string | null | undefined; + /** + * Error message when chunk_type is 'error' + */ + errorMessage?: string | null | undefined; }; /** @@ -139,11 +147,15 @@ export const StreamingChunk$inboundSchema: z.ZodType< json_path: z.nullable(z.string()).optional(), span_id: z.nullable(z.string()).optional(), chunk_type: z.nullable(z.string()).optional(), + error_type: z.nullable(z.string()).optional(), + error_message: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { "json_path": "jsonPath", "span_id": "spanId", "chunk_type": "chunkType", + "error_type": "errorType", + "error_message": "errorMessage", }); }); /** @internal */ @@ -152,6 +164,8 @@ export type StreamingChunk$Outbound = { json_path?: string | null | undefined; span_id?: string | null | undefined; chunk_type?: string | null | undefined; + error_type?: string | null | undefined; + error_message?: string | null | undefined; }; /** @internal */ @@ -166,11 +180,15 @@ export const StreamingChunk$outboundSchema: z.ZodType< jsonPath: z.nullable(z.string()).optional(), spanId: z.nullable(z.string()).optional(), chunkType: z.nullable(z.string()).optional(), + errorType: z.nullable(z.string()).optional(), + errorMessage: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { jsonPath: "json_path", spanId: "span_id", chunkType: "chunk_type", + errorType: "error_type", + errorMessage: "error_message", }); }); diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 01eef5e..6071522 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -49,10 +49,12 @@ export * from "./registerfileuploadknowledgeknowledgebaseidregisterfilepost.js"; export * from "./savetodatasetspansspanidsaveexamplespost.js"; export * from "./streamfunctionfunctionsfunctionidcallstreampost.js"; export * from "./streamfunctionrevisionfunctionsfunctionidcallstreamrevisionidpost.js"; +export * from "./submitspanfeedbackspansspanidfeedbackpost.js"; export * from "./updatecustommodelmodelscustommodelidpatch.js"; export * from "./updatedatasetentrydatasetsdatasetidentriesentryidpatch.js"; export * from "./updatefunctionfunctionsfunctionidpatch.js"; export * from "./updatemetricspansspanidmetricsmetricidpatch.js"; export * from "./updatemodelaliasmodelsaliasesaliasidpatch.js"; export * from "./updatespanspansspanidpatch.js"; +export * from "./uploadfileknowledgeknowledgebaseiduploadpost.js"; export * from "./usageanalyticsusageget.js"; diff --git a/src/models/operations/submitspanfeedbackspansspanidfeedbackpost.ts b/src/models/operations/submitspanfeedbackspansspanidfeedbackpost.ts new file mode 100644 index 0000000..76cf264 --- /dev/null +++ b/src/models/operations/submitspanfeedbackspansspanidfeedbackpost.ts @@ -0,0 +1,81 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as models from "../index.js"; + +export type SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest = { + /** + * The ID of the span to provide feedback on + */ + spanId: string; + submitFeedbackRequest: models.SubmitFeedbackRequest; +}; + +/** @internal */ +export const SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$inboundSchema: + z.ZodType< + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest, + z.ZodTypeDef, + unknown + > = z.object({ + span_id: z.string(), + SubmitFeedbackRequest: models.SubmitFeedbackRequest$inboundSchema, + }).transform((v) => { + return remap$(v, { + "span_id": "spanId", + "SubmitFeedbackRequest": "submitFeedbackRequest", + }); + }); +/** @internal */ +export type SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$Outbound = { + span_id: string; + SubmitFeedbackRequest: models.SubmitFeedbackRequest$Outbound; +}; + +/** @internal */ +export const SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$outboundSchema: + z.ZodType< + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$Outbound, + z.ZodTypeDef, + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest + > = z.object({ + spanId: z.string(), + submitFeedbackRequest: models.SubmitFeedbackRequest$outboundSchema, + }).transform((v) => { + return remap$(v, { + spanId: "span_id", + submitFeedbackRequest: "SubmitFeedbackRequest", + }); + }); + +export function submitSpanFeedbackSpansSpanIdFeedbackPostRequestToJSON( + submitSpanFeedbackSpansSpanIdFeedbackPostRequest: + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest, +): string { + return JSON.stringify( + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$outboundSchema.parse( + submitSpanFeedbackSpansSpanIdFeedbackPostRequest, + ), + ); +} +export function submitSpanFeedbackSpansSpanIdFeedbackPostRequestFromJSON( + jsonString: string, +): SafeParseResult< + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'SubmitSpanFeedbackSpansSpanIdFeedbackPostRequest' from JSON`, + ); +} diff --git a/src/models/operations/uploadfileknowledgeknowledgebaseiduploadpost.ts b/src/models/operations/uploadfileknowledgeknowledgebaseiduploadpost.ts new file mode 100644 index 0000000..5ea1b71 --- /dev/null +++ b/src/models/operations/uploadfileknowledgeknowledgebaseiduploadpost.ts @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import * as models from "../index.js"; + +export type UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest = { + /** + * The id of the knowledge base to upload the file to + */ + knowledgeBaseId: string; + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost; +}; + +/** @internal */ +export const UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$inboundSchema: + z.ZodType< + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest, + z.ZodTypeDef, + unknown + > = z.object({ + knowledge_base_id: z.string(), + Body_upload_file_knowledge__knowledge_base_id__upload_post: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$inboundSchema, + }).transform((v) => { + return remap$(v, { + "knowledge_base_id": "knowledgeBaseId", + "Body_upload_file_knowledge__knowledge_base_id__upload_post": + "bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost", + }); + }); +/** @internal */ +export type UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$Outbound = { + knowledge_base_id: string; + Body_upload_file_knowledge__knowledge_base_id__upload_post: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$Outbound; +}; + +/** @internal */ +export const UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$outboundSchema: + z.ZodType< + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$Outbound, + z.ZodTypeDef, + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest + > = z.object({ + knowledgeBaseId: z.string(), + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost$outboundSchema, + }).transform((v) => { + return remap$(v, { + knowledgeBaseId: "knowledge_base_id", + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + "Body_upload_file_knowledge__knowledge_base_id__upload_post", + }); + }); + +export function uploadFileKnowledgeKnowledgeBaseIdUploadPostRequestToJSON( + uploadFileKnowledgeKnowledgeBaseIdUploadPostRequest: + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest, +): string { + return JSON.stringify( + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$outboundSchema.parse( + uploadFileKnowledgeKnowledgeBaseIdUploadPostRequest, + ), + ); +} +export function uploadFileKnowledgeKnowledgeBaseIdUploadPostRequestFromJSON( + jsonString: string, +): SafeParseResult< + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'UploadFileKnowledgeKnowledgeBaseIdUploadPostRequest' from JSON`, + ); +} diff --git a/src/models/responseformatjsonobject.ts b/src/models/responseformatjsonobject.ts index 5d1a7f1..fb92f4b 100644 --- a/src/models/responseformatjsonobject.ts +++ b/src/models/responseformatjsonobject.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ResponseFormatJSONObject = { - type?: "json_object" | undefined; + type: "json_object"; }; /** @internal */ @@ -17,7 +17,7 @@ export const ResponseFormatJSONObject$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: z.literal("json_object").default("json_object").optional(), + type: z.literal("json_object"), }); /** @internal */ export type ResponseFormatJSONObject$Outbound = { diff --git a/src/models/responseformatjsonschema.ts b/src/models/responseformatjsonschema.ts index 23d8cb0..43469a6 100644 --- a/src/models/responseformatjsonschema.ts +++ b/src/models/responseformatjsonschema.ts @@ -16,7 +16,7 @@ import { export type ResponseFormatJSONSchema = { jsonSchema: JSONSchema; - type?: "json_schema" | undefined; + type: "json_schema"; }; /** @internal */ @@ -26,7 +26,7 @@ export const ResponseFormatJSONSchema$inboundSchema: z.ZodType< unknown > = z.object({ json_schema: JSONSchema$inboundSchema, - type: z.literal("json_schema").default("json_schema").optional(), + type: z.literal("json_schema"), }).transform((v) => { return remap$(v, { "json_schema": "jsonSchema", diff --git a/src/models/responseformattext.ts b/src/models/responseformattext.ts index d71c374..fde6781 100644 --- a/src/models/responseformattext.ts +++ b/src/models/responseformattext.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type ResponseFormatText = { - type?: "text" | undefined; + type: "text"; }; /** @internal */ @@ -17,7 +17,7 @@ export const ResponseFormatText$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: z.literal("text").default("text").optional(), + type: z.literal("text"), }); /** @internal */ export type ResponseFormatText$Outbound = { diff --git a/src/models/submitfeedbackrequest.ts b/src/models/submitfeedbackrequest.ts new file mode 100644 index 0000000..8ba1c26 --- /dev/null +++ b/src/models/submitfeedbackrequest.ts @@ -0,0 +1,77 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { Result as SafeParseResult } from "../types/fp.js"; +import { SDKValidationError } from "./errors/sdkvalidationerror.js"; + +export type SubmitFeedbackRequest = { + /** + * Feedback score (0.0=negative, 1.0=positive) + */ + score: number; + /** + * Optional comment explaining the feedback + */ + comment?: string | null | undefined; + /** + * Force save to dataset (True=force save, False=never save, None=use auto-save config) + */ + saveToDataset?: boolean | null | undefined; +}; + +/** @internal */ +export const SubmitFeedbackRequest$inboundSchema: z.ZodType< + SubmitFeedbackRequest, + z.ZodTypeDef, + unknown +> = z.object({ + score: z.number(), + comment: z.nullable(z.string()).optional(), + save_to_dataset: z.nullable(z.boolean()).optional(), +}).transform((v) => { + return remap$(v, { + "save_to_dataset": "saveToDataset", + }); +}); +/** @internal */ +export type SubmitFeedbackRequest$Outbound = { + score: number; + comment?: string | null | undefined; + save_to_dataset?: boolean | null | undefined; +}; + +/** @internal */ +export const SubmitFeedbackRequest$outboundSchema: z.ZodType< + SubmitFeedbackRequest$Outbound, + z.ZodTypeDef, + SubmitFeedbackRequest +> = z.object({ + score: z.number(), + comment: z.nullable(z.string()).optional(), + saveToDataset: z.nullable(z.boolean()).optional(), +}).transform((v) => { + return remap$(v, { + saveToDataset: "save_to_dataset", + }); +}); + +export function submitFeedbackRequestToJSON( + submitFeedbackRequest: SubmitFeedbackRequest, +): string { + return JSON.stringify( + SubmitFeedbackRequest$outboundSchema.parse(submitFeedbackRequest), + ); +} +export function submitFeedbackRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SubmitFeedbackRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackRequest' from JSON`, + ); +} diff --git a/src/models/submitfeedbackresponse.ts b/src/models/submitfeedbackresponse.ts new file mode 100644 index 0000000..c50dd16 --- /dev/null +++ b/src/models/submitfeedbackresponse.ts @@ -0,0 +1,79 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { Result as SafeParseResult } from "../types/fp.js"; +import { SDKValidationError } from "./errors/sdkvalidationerror.js"; + +export type SubmitFeedbackResponse = { + /** + * The ID of the span + */ + spanId: string; + /** + * The feedback score that was submitted + */ + score: number; + /** + * Whether the example was saved to the dataset + */ + exampleSaved: boolean; +}; + +/** @internal */ +export const SubmitFeedbackResponse$inboundSchema: z.ZodType< + SubmitFeedbackResponse, + z.ZodTypeDef, + unknown +> = z.object({ + span_id: z.string(), + score: z.number(), + example_saved: z.boolean(), +}).transform((v) => { + return remap$(v, { + "span_id": "spanId", + "example_saved": "exampleSaved", + }); +}); +/** @internal */ +export type SubmitFeedbackResponse$Outbound = { + span_id: string; + score: number; + example_saved: boolean; +}; + +/** @internal */ +export const SubmitFeedbackResponse$outboundSchema: z.ZodType< + SubmitFeedbackResponse$Outbound, + z.ZodTypeDef, + SubmitFeedbackResponse +> = z.object({ + spanId: z.string(), + score: z.number(), + exampleSaved: z.boolean(), +}).transform((v) => { + return remap$(v, { + spanId: "span_id", + exampleSaved: "example_saved", + }); +}); + +export function submitFeedbackResponseToJSON( + submitFeedbackResponse: SubmitFeedbackResponse, +): string { + return JSON.stringify( + SubmitFeedbackResponse$outboundSchema.parse(submitFeedbackResponse), + ); +} +export function submitFeedbackResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => SubmitFeedbackResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackResponse' from JSON`, + ); +} diff --git a/src/models/uploadfileresponse.ts b/src/models/uploadfileresponse.ts new file mode 100644 index 0000000..2270c55 --- /dev/null +++ b/src/models/uploadfileresponse.ts @@ -0,0 +1,78 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { Result as SafeParseResult } from "../types/fp.js"; +import { SDKValidationError } from "./errors/sdkvalidationerror.js"; + +export type UploadFileResponse = { + id: string; + key: string; + originalFilename: string; + documentId: number; + metadata?: { [k: string]: any } | undefined; +}; + +/** @internal */ +export const UploadFileResponse$inboundSchema: z.ZodType< + UploadFileResponse, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + key: z.string(), + original_filename: z.string(), + document_id: z.number().int(), + metadata: z.record(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + "original_filename": "originalFilename", + "document_id": "documentId", + }); +}); +/** @internal */ +export type UploadFileResponse$Outbound = { + id: string; + key: string; + original_filename: string; + document_id: number; + metadata?: { [k: string]: any } | undefined; +}; + +/** @internal */ +export const UploadFileResponse$outboundSchema: z.ZodType< + UploadFileResponse$Outbound, + z.ZodTypeDef, + UploadFileResponse +> = z.object({ + id: z.string(), + key: z.string(), + originalFilename: z.string(), + documentId: z.number().int(), + metadata: z.record(z.any()).optional(), +}).transform((v) => { + return remap$(v, { + originalFilename: "original_filename", + documentId: "document_id", + }); +}); + +export function uploadFileResponseToJSON( + uploadFileResponse: UploadFileResponse, +): string { + return JSON.stringify( + UploadFileResponse$outboundSchema.parse(uploadFileResponse), + ); +} +export function uploadFileResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UploadFileResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UploadFileResponse' from JSON`, + ); +} diff --git a/src/models/websearchoptionsuserlocation.ts b/src/models/websearchoptionsuserlocation.ts index fc59523..fb335e9 100644 --- a/src/models/websearchoptionsuserlocation.ts +++ b/src/models/websearchoptionsuserlocation.ts @@ -15,7 +15,7 @@ import { export type WebSearchOptionsUserLocation = { approximate: WebSearchOptionsUserLocationApproximate; - type?: "approximate" | undefined; + type: "approximate"; }; /** @internal */ @@ -25,7 +25,7 @@ export const WebSearchOptionsUserLocation$inboundSchema: z.ZodType< unknown > = z.object({ approximate: WebSearchOptionsUserLocationApproximate$inboundSchema, - type: z.literal("approximate").default("approximate").optional(), + type: z.literal("approximate"), }); /** @internal */ export type WebSearchOptionsUserLocation$Outbound = { diff --git a/src/sdk/knowledge.ts b/src/sdk/knowledge.ts index a59c345..0ff4225 100644 --- a/src/sdk/knowledge.ts +++ b/src/sdk/knowledge.ts @@ -15,6 +15,7 @@ import { knowledgeList } from "../funcs/knowledgeList.js"; import { knowledgeListFiles } from "../funcs/knowledgeListFiles.js"; import { knowledgeQuery } from "../funcs/knowledgeQuery.js"; import { knowledgeRegisterFileUpload } from "../funcs/knowledgeRegisterFileUpload.js"; +import { knowledgeUploadFile } from "../funcs/knowledgeUploadFile.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -155,6 +156,32 @@ export class Knowledge extends ClientSDK { )); } + /** + * Upload File + * + * @remarks + * Upload a file directly to a knowledge base. + * + * This is a simplified alternative to the three-step upload process + * (get_upload_url -> upload to S3 -> register_file). Use this endpoint + * for smaller files or when you prefer a simpler API. + * + * The file will be uploaded to S3 and queued for processing automatically. + */ + async uploadFile( + knowledgeBaseId: string, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost: + models.BodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options?: RequestOptions, + ): Promise { + return unwrapAsync(knowledgeUploadFile( + this, + knowledgeBaseId, + bodyUploadFileKnowledgeKnowledgeBaseIdUploadPost, + options, + )); + } + /** * Delete File From Knowledge Base * diff --git a/src/sdk/languagemodels.ts b/src/sdk/languagemodels.ts index 0d60104..e8f024e 100644 --- a/src/sdk/languagemodels.ts +++ b/src/sdk/languagemodels.ts @@ -2,12 +2,18 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { languageModelsCreateAlias } from "../funcs/languageModelsCreateAlias.js"; +import { languageModelsDeleteAlias } from "../funcs/languageModelsDeleteAlias.js"; import { languageModelsDeleteCustom } from "../funcs/languageModelsDeleteCustom.js"; +import { languageModelsGetAlias } from "../funcs/languageModelsGetAlias.js"; +import { languageModelsGetAliasByName } from "../funcs/languageModelsGetAliasByName.js"; import { languageModelsGetCustom } from "../funcs/languageModelsGetCustom.js"; import { languageModelsGetCustomByName } from "../funcs/languageModelsGetCustomByName.js"; import { languageModelsList } from "../funcs/languageModelsList.js"; +import { languageModelsListAliases } from "../funcs/languageModelsListAliases.js"; import { languageModelsListCustom } from "../funcs/languageModelsListCustom.js"; import { languageModelsRegisterCustom } from "../funcs/languageModelsRegisterCustom.js"; +import { languageModelsUpdateAlias } from "../funcs/languageModelsUpdateAlias.js"; import { languageModelsUpdateCustom } from "../funcs/languageModelsUpdateCustom.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; @@ -140,4 +146,114 @@ export class LanguageModels extends ClientSDK { options, )); } + + /** + * Create Model Alias + * + * @remarks + * Create a model alias with fallback models for the organization that owns the API key. + * + * A model alias allows you to define a name that resolves to an ordered list of fallback models. + * For example, you could create an alias called "sonnet-4" that falls back to + * ["anthropic/claude-3-5-sonnet-latest", "anthropic/claude-3-5-sonnet-20241022"]. + */ + async createAlias( + request: models.CreateModelAliasRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(languageModelsCreateAlias( + this, + request, + options, + )); + } + + /** + * List Model Aliases + * + * @remarks + * List all model aliases for the organization that owns the API key. + */ + async listAliases( + offset?: number | undefined, + limit?: number | undefined, + options?: RequestOptions, + ): Promise { + return unwrapAsync(languageModelsListAliases( + this, + offset, + limit, + options, + )); + } + + /** + * Get Model Alias + * + * @remarks + * Get a model alias by its ID. + */ + async getAlias( + aliasId: string, + options?: RequestOptions, + ): Promise { + return unwrapAsync(languageModelsGetAlias( + this, + aliasId, + options, + )); + } + + /** + * Update Model Alias + * + * @remarks + * Update a model alias. + */ + async updateAlias( + aliasId: string, + updateModelAliasRequest: models.UpdateModelAliasRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(languageModelsUpdateAlias( + this, + aliasId, + updateModelAliasRequest, + options, + )); + } + + /** + * Delete Model Alias + * + * @remarks + * Delete a model alias. + */ + async deleteAlias( + aliasId: string, + options?: RequestOptions, + ): Promise { + return unwrapAsync(languageModelsDeleteAlias( + this, + aliasId, + options, + )); + } + + /** + * Get Model Alias By Name + * + * @remarks + * Get a model alias by its name. + */ + async getAliasByName( + name: string, + options?: RequestOptions, + ): Promise { + return unwrapAsync(languageModelsGetAliasByName( + this, + name, + options, + )); + } } diff --git a/src/sdk/rerank.ts b/src/sdk/rerank.ts index 1a482f0..ed1ed7a 100644 --- a/src/sdk/rerank.ts +++ b/src/sdk/rerank.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { rerankListRerankModelsRerankModelsGet } from "../funcs/rerankListRerankModelsRerankModelsGet.js"; -import { rerankRerankDocumentsRerankPost } from "../funcs/rerankRerankDocumentsRerankPost.js"; +import { rerankDocuments } from "../funcs/rerankDocuments.js"; +import { rerankListModels } from "../funcs/rerankListModels.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -22,11 +22,11 @@ export class Rerank extends ClientSDK { * documents first. Each result includes the original document index and a * relevance score. */ - async rerankDocumentsRerankPost( + async documents( request: models.RerankRequestModel, options?: RequestOptions, ): Promise { - return unwrapAsync(rerankRerankDocumentsRerankPost( + return unwrapAsync(rerankDocuments( this, request, options, @@ -42,10 +42,10 @@ export class Rerank extends ClientSDK { * Returns a list of all reranking models available on the Opper platform, * including their hosting providers, locations, and pricing information. */ - async listRerankModelsRerankModelsGet( + async listModels( options?: RequestOptions, ): Promise { - return unwrapAsync(rerankListRerankModelsRerankModelsGet( + return unwrapAsync(rerankListModels( this, options, )); diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index 2ddf616..e00d496 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -14,7 +14,6 @@ import { Embeddings } from "./embeddings.js"; import { Functions } from "./functions.js"; import { Knowledge } from "./knowledge.js"; import { LanguageModels } from "./languagemodels.js"; -import { Models } from "./models.js"; import { Openai } from "./openai.js"; import { Rerank } from "./rerank.js"; import { SpanMetrics } from "./spanmetrics.js"; @@ -62,11 +61,6 @@ export class Opper extends ClientSDK { return (this._languageModels ??= new LanguageModels(this._options)); } - private _models?: Models; - get models(): Models { - return (this._models ??= new Models(this._options)); - } - private _openai?: Openai; get openai(): Openai { return (this._openai ??= new Openai(this._options)); diff --git a/src/sdk/spans.ts b/src/sdk/spans.ts index a77a885..5c9f9fb 100644 --- a/src/sdk/spans.ts +++ b/src/sdk/spans.ts @@ -6,6 +6,7 @@ import { spansCreate } from "../funcs/spansCreate.js"; import { spansDelete } from "../funcs/spansDelete.js"; import { spansGet } from "../funcs/spansGet.js"; import { spansSaveExamples } from "../funcs/spansSaveExamples.js"; +import { spansSubmitFeedback } from "../funcs/spansSubmitFeedback.js"; import { spansUpdate } from "../funcs/spansUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; @@ -98,4 +99,31 @@ export class Spans extends ClientSDK { options, )); } + + /** + * Submit Span Feedback + * + * @remarks + * Submit human feedback for a span. + * + * This endpoint allows you to provide feedback (thumbs up/down) on a span's output. + * The feedback is stored on the associated generation and can trigger auto-save + * to the function's dataset based on the observer's configuration. + * + * - score=1.0: Positive feedback (thumbs up) + * - score=0.0: Negative feedback (thumbs down) + * - Intermediate values (e.g., 0.5) are supported for nuanced feedback + */ + async submitFeedback( + spanId: string, + submitFeedbackRequest: models.SubmitFeedbackRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(spansSubmitFeedback( + this, + spanId, + submitFeedbackRequest, + options, + )); + } } diff --git a/tsconfig.json b/tsconfig.json index 94d81a3..0ccdbe2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", + "incremental": false, "target": "ES2020", "lib": ["ES2022", "DOM", "DOM.Iterable"], "jsx": "react-jsx",