@mistralai/mistralai 1.13.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/examples/src/async_audio_transcription_diarize.ts +17 -0
- package/examples/src/realtime_microphone.ts +163 -0
- package/examples/src/realtime_transcription.ts +225 -0
- package/extra/realtime/connection.d.ts +44 -0
- package/extra/realtime/connection.d.ts.map +1 -0
- package/extra/realtime/connection.js +299 -0
- package/extra/realtime/connection.js.map +1 -0
- package/extra/realtime/errors.d.ts +18 -0
- package/extra/realtime/errors.d.ts.map +1 -0
- package/extra/realtime/errors.js +21 -0
- package/extra/realtime/errors.js.map +1 -0
- package/extra/realtime/index.d.ts +15 -0
- package/extra/realtime/index.d.ts.map +1 -0
- package/extra/realtime/index.js +10 -0
- package/extra/realtime/index.js.map +1 -0
- package/extra/realtime/transcription.d.ts +17 -0
- package/extra/realtime/transcription.d.ts.map +1 -0
- package/extra/realtime/transcription.js +200 -0
- package/extra/realtime/transcription.js.map +1 -0
- package/extra/structChat.js.map +1 -1
- package/funcs/audioTranscriptionsComplete.js +6 -0
- package/funcs/audioTranscriptionsComplete.js.map +1 -1
- package/funcs/audioTranscriptionsStream.js +6 -0
- package/funcs/audioTranscriptionsStream.js.map +1 -1
- package/funcs/batchJobsList.js +1 -0
- package/funcs/batchJobsList.js.map +1 -1
- package/funcs/betaAgentsCreateVersionAlias.d.ts +19 -0
- package/funcs/betaAgentsCreateVersionAlias.d.ts.map +1 -0
- package/funcs/betaAgentsCreateVersionAlias.js +130 -0
- package/funcs/betaAgentsCreateVersionAlias.js.map +1 -0
- package/funcs/betaAgentsDeleteVersionAlias.d.ts +18 -0
- package/funcs/betaAgentsDeleteVersionAlias.d.ts.map +1 -0
- package/funcs/betaAgentsDeleteVersionAlias.js +128 -0
- package/funcs/betaAgentsDeleteVersionAlias.js.map +1 -0
- package/funcs/betaAgentsGet.d.ts +1 -1
- package/funcs/betaAgentsGet.js +1 -1
- package/funcs/betaAgentsGetVersion.js +1 -1
- package/funcs/betaAgentsGetVersion.js.map +1 -1
- package/funcs/betaAgentsList.js +1 -0
- package/funcs/betaAgentsList.js.map +1 -1
- package/funcs/betaAgentsListVersionAliases.d.ts +19 -0
- package/funcs/betaAgentsListVersionAliases.d.ts.map +1 -0
- package/funcs/betaAgentsListVersionAliases.js +126 -0
- package/funcs/betaAgentsListVersionAliases.js.map +1 -0
- package/funcs/filesList.js +1 -0
- package/funcs/filesList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agent.d.ts +2 -8
- package/models/components/agent.d.ts.map +1 -1
- package/models/components/agent.js +4 -8
- package/models/components/agent.js.map +1 -1
- package/models/components/agentaliasresponse.d.ts +13 -0
- package/models/components/agentaliasresponse.d.ts.map +1 -0
- package/models/components/agentaliasresponse.js +59 -0
- package/models/components/agentaliasresponse.js.map +1 -0
- package/models/components/agentconversation.d.ts +5 -8
- package/models/components/agentconversation.d.ts.map +1 -1
- package/models/components/agentconversation.js +8 -7
- package/models/components/agentconversation.js.map +1 -1
- package/models/components/agentcreationrequest.d.ts +2 -0
- package/models/components/agentcreationrequest.d.ts.map +1 -1
- package/models/components/agentcreationrequest.js +2 -0
- package/models/components/agentcreationrequest.js.map +1 -1
- package/models/components/agenthandoffdoneevent.d.ts +1 -8
- package/models/components/agenthandoffdoneevent.d.ts.map +1 -1
- package/models/components/agenthandoffdoneevent.js +2 -7
- package/models/components/agenthandoffdoneevent.js.map +1 -1
- package/models/components/agenthandoffentry.d.ts +4 -21
- package/models/components/agenthandoffentry.d.ts.map +1 -1
- package/models/components/agenthandoffentry.js +5 -19
- package/models/components/agenthandoffentry.js.map +1 -1
- package/models/components/agenthandoffstartedevent.d.ts +1 -8
- package/models/components/agenthandoffstartedevent.d.ts.map +1 -1
- package/models/components/agenthandoffstartedevent.js +2 -7
- package/models/components/agenthandoffstartedevent.js.map +1 -1
- package/models/components/agentupdaterequest.d.ts +2 -0
- package/models/components/agentupdaterequest.d.ts.map +1 -1
- package/models/components/agentupdaterequest.js +2 -0
- package/models/components/agentupdaterequest.js.map +1 -1
- package/models/components/archiveftmodelout.d.ts +1 -8
- package/models/components/archiveftmodelout.d.ts.map +1 -1
- package/models/components/archiveftmodelout.js +2 -7
- package/models/components/archiveftmodelout.js.map +1 -1
- package/models/components/assistantmessage.d.ts +2 -11
- package/models/components/assistantmessage.d.ts.map +1 -1
- package/models/components/assistantmessage.js +3 -10
- package/models/components/assistantmessage.js.map +1 -1
- package/models/components/audiochunk.d.ts +2 -11
- package/models/components/audiochunk.d.ts.map +1 -1
- package/models/components/audiochunk.js +3 -10
- package/models/components/audiochunk.js.map +1 -1
- package/models/components/audiotranscriptionrequest.d.ts +4 -0
- package/models/components/audiotranscriptionrequest.d.ts.map +1 -1
- package/models/components/audiotranscriptionrequest.js +3 -0
- package/models/components/audiotranscriptionrequest.js.map +1 -1
- package/models/components/audiotranscriptionrequeststream.d.ts +4 -0
- package/models/components/audiotranscriptionrequeststream.d.ts.map +1 -1
- package/models/components/audiotranscriptionrequeststream.js +3 -0
- package/models/components/audiotranscriptionrequeststream.js.map +1 -1
- package/models/components/basemodelcard.d.ts +0 -7
- package/models/components/basemodelcard.d.ts.map +1 -1
- package/models/components/basemodelcard.js +1 -6
- package/models/components/basemodelcard.js.map +1 -1
- package/models/components/batchjobout.d.ts +1 -8
- package/models/components/batchjobout.d.ts.map +1 -1
- package/models/components/batchjobout.js +2 -7
- package/models/components/batchjobout.js.map +1 -1
- package/models/components/batchjobsout.d.ts +1 -8
- package/models/components/batchjobsout.d.ts.map +1 -1
- package/models/components/batchjobsout.js +2 -7
- package/models/components/batchjobsout.js.map +1 -1
- package/models/components/classifierdetailedjobout.d.ts +2 -17
- package/models/components/classifierdetailedjobout.d.ts.map +1 -1
- package/models/components/classifierdetailedjobout.js +3 -13
- package/models/components/classifierdetailedjobout.js.map +1 -1
- package/models/components/classifierftmodelout.d.ts +2 -15
- package/models/components/classifierftmodelout.d.ts.map +1 -1
- package/models/components/classifierftmodelout.js +3 -13
- package/models/components/classifierftmodelout.js.map +1 -1
- package/models/components/classifierjobout.d.ts +2 -29
- package/models/components/classifierjobout.d.ts.map +1 -1
- package/models/components/classifierjobout.js +3 -19
- package/models/components/classifierjobout.js.map +1 -1
- package/models/components/codeinterpretertool.d.ts +3 -0
- package/models/components/codeinterpretertool.d.ts.map +1 -1
- package/models/components/codeinterpretertool.js +12 -0
- package/models/components/codeinterpretertool.js.map +1 -1
- package/models/components/completiondetailedjobout.d.ts +2 -17
- package/models/components/completiondetailedjobout.d.ts.map +1 -1
- package/models/components/completiondetailedjobout.js +3 -13
- package/models/components/completiondetailedjobout.js.map +1 -1
- package/models/components/completionftmodelout.d.ts +2 -15
- package/models/components/completionftmodelout.d.ts.map +1 -1
- package/models/components/completionftmodelout.js +3 -14
- package/models/components/completionftmodelout.js.map +1 -1
- package/models/components/completionjobout.d.ts +2 -29
- package/models/components/completionjobout.d.ts.map +1 -1
- package/models/components/completionjobout.js +3 -20
- package/models/components/completionjobout.js.map +1 -1
- package/models/components/conversationappendrequest.d.ts +5 -2
- package/models/components/conversationappendrequest.d.ts.map +1 -1
- package/models/components/conversationappendrequest.js +5 -1
- package/models/components/conversationappendrequest.js.map +1 -1
- package/models/components/conversationappendstreamrequest.d.ts +5 -2
- package/models/components/conversationappendstreamrequest.d.ts.map +1 -1
- package/models/components/conversationappendstreamrequest.js +5 -1
- package/models/components/conversationappendstreamrequest.js.map +1 -1
- package/models/components/conversationhistory.d.ts +1 -8
- package/models/components/conversationhistory.d.ts.map +1 -1
- package/models/components/conversationhistory.js +2 -7
- package/models/components/conversationhistory.js.map +1 -1
- package/models/components/conversationmessages.d.ts +1 -8
- package/models/components/conversationmessages.d.ts.map +1 -1
- package/models/components/conversationmessages.js +2 -7
- package/models/components/conversationmessages.js.map +1 -1
- package/models/components/conversationrequest.d.ts +8 -2
- package/models/components/conversationrequest.d.ts.map +1 -1
- package/models/components/conversationrequest.js +8 -2
- package/models/components/conversationrequest.js.map +1 -1
- package/models/components/conversationresponse.d.ts +1 -8
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +2 -7
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/conversationrestartrequest.d.ts +13 -4
- package/models/components/conversationrestartrequest.d.ts.map +1 -1
- package/models/components/conversationrestartrequest.js +9 -3
- package/models/components/conversationrestartrequest.js.map +1 -1
- package/models/components/conversationrestartstreamrequest.d.ts +13 -4
- package/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
- package/models/components/conversationrestartstreamrequest.js +9 -3
- package/models/components/conversationrestartstreamrequest.js.map +1 -1
- package/models/components/conversationstreamrequest.d.ts +8 -2
- package/models/components/conversationstreamrequest.d.ts.map +1 -1
- package/models/components/conversationstreamrequest.js +8 -2
- package/models/components/conversationstreamrequest.js.map +1 -1
- package/models/components/documentlibrarytool.d.ts +3 -0
- package/models/components/documentlibrarytool.d.ts.map +1 -1
- package/models/components/documentlibrarytool.js +5 -0
- package/models/components/documentlibrarytool.js.map +1 -1
- package/models/components/documentout.d.ts +1 -1
- package/models/components/documentout.d.ts.map +1 -1
- package/models/components/documentout.js +2 -2
- package/models/components/documentout.js.map +1 -1
- package/models/components/documenturlchunk.d.ts +2 -11
- package/models/components/documenturlchunk.d.ts.map +1 -1
- package/models/components/documenturlchunk.js +3 -10
- package/models/components/documenturlchunk.js.map +1 -1
- package/models/components/ftmodelcard.d.ts +0 -7
- package/models/components/ftmodelcard.d.ts.map +1 -1
- package/models/components/ftmodelcard.js +1 -6
- package/models/components/ftmodelcard.js.map +1 -1
- package/models/components/functioncallentry.d.ts +13 -17
- package/models/components/functioncallentry.d.ts.map +1 -1
- package/models/components/functioncallentry.js +15 -16
- package/models/components/functioncallentry.js.map +1 -1
- package/models/components/functioncallevent.d.ts +8 -5
- package/models/components/functioncallevent.d.ts.map +1 -1
- package/models/components/functioncallevent.js +9 -5
- package/models/components/functioncallevent.js.map +1 -1
- package/models/components/functionresultentry.d.ts +4 -21
- package/models/components/functionresultentry.d.ts.map +1 -1
- package/models/components/functionresultentry.js +5 -19
- package/models/components/functionresultentry.js.map +1 -1
- package/models/components/functiontool.d.ts +5 -5
- package/models/components/functiontool.d.ts.map +1 -1
- package/models/components/functiontool.js +6 -6
- package/models/components/functiontool.js.map +1 -1
- package/models/components/githubrepositoryin.d.ts +2 -9
- package/models/components/githubrepositoryin.d.ts.map +1 -1
- package/models/components/githubrepositoryin.js +2 -7
- package/models/components/githubrepositoryin.js.map +1 -1
- package/models/components/githubrepositoryout.d.ts +1 -8
- package/models/components/githubrepositoryout.d.ts.map +1 -1
- package/models/components/githubrepositoryout.js +2 -7
- package/models/components/githubrepositoryout.js.map +1 -1
- package/models/components/imagedetail.d.ts +13 -0
- package/models/components/imagedetail.d.ts.map +1 -0
- package/models/components/imagedetail.js +51 -0
- package/models/components/imagedetail.js.map +1 -0
- package/models/components/imagegenerationtool.d.ts +3 -0
- package/models/components/imagegenerationtool.d.ts.map +1 -1
- package/models/components/imagegenerationtool.js +12 -0
- package/models/components/imagegenerationtool.js.map +1 -1
- package/models/components/imageurl.d.ts +2 -1
- package/models/components/imageurl.d.ts.map +1 -1
- package/models/components/imageurl.js +3 -2
- package/models/components/imageurl.js.map +1 -1
- package/models/components/imageurlchunk.d.ts +2 -11
- package/models/components/imageurlchunk.d.ts.map +1 -1
- package/models/components/imageurlchunk.js +3 -10
- package/models/components/imageurlchunk.js.map +1 -1
- package/models/components/index.d.ts +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/jobin.d.ts +0 -3
- package/models/components/jobin.d.ts.map +1 -1
- package/models/components/jobin.js.map +1 -1
- package/models/components/jobsout.d.ts +1 -8
- package/models/components/jobsout.d.ts.map +1 -1
- package/models/components/jobsout.js +2 -7
- package/models/components/jobsout.js.map +1 -1
- package/models/components/legacyjobmetadataout.d.ts +1 -8
- package/models/components/legacyjobmetadataout.d.ts.map +1 -1
- package/models/components/legacyjobmetadataout.js +2 -7
- package/models/components/legacyjobmetadataout.js.map +1 -1
- package/models/components/messageinputentry.d.ts +9 -25
- package/models/components/messageinputentry.d.ts.map +1 -1
- package/models/components/messageinputentry.js +10 -25
- package/models/components/messageinputentry.js.map +1 -1
- package/models/components/messageoutputentry.d.ts +6 -31
- package/models/components/messageoutputentry.d.ts.map +1 -1
- package/models/components/messageoutputentry.js +7 -28
- package/models/components/messageoutputentry.js.map +1 -1
- package/models/components/messageoutputevent.d.ts +2 -15
- package/models/components/messageoutputevent.d.ts.map +1 -1
- package/models/components/messageoutputevent.js +3 -13
- package/models/components/messageoutputevent.js.map +1 -1
- package/models/components/mistralpromptmode.d.ts +14 -0
- package/models/components/mistralpromptmode.d.ts.map +1 -1
- package/models/components/mistralpromptmode.js +7 -0
- package/models/components/mistralpromptmode.js.map +1 -1
- package/models/components/modelcapabilities.d.ts +1 -0
- package/models/components/modelcapabilities.d.ts.map +1 -1
- package/models/components/modelcapabilities.js +2 -0
- package/models/components/modelcapabilities.js.map +1 -1
- package/models/components/modelconversation.d.ts +1 -8
- package/models/components/modelconversation.d.ts.map +1 -1
- package/models/components/modelconversation.js +2 -7
- package/models/components/modelconversation.js.map +1 -1
- package/models/components/realtimetranscriptionerror.d.ts +20 -0
- package/models/components/realtimetranscriptionerror.d.ts.map +1 -0
- package/models/components/realtimetranscriptionerror.js +61 -0
- package/models/components/realtimetranscriptionerror.js.map +1 -0
- package/models/components/realtimetranscriptionerrordetail.d.ts +45 -0
- package/models/components/realtimetranscriptionerrordetail.d.ts.map +1 -0
- package/models/components/realtimetranscriptionerrordetail.js +72 -0
- package/models/components/realtimetranscriptionerrordetail.js.map +1 -0
- package/models/components/realtimetranscriptioninputaudioappend.d.ts +22 -0
- package/models/components/realtimetranscriptioninputaudioappend.d.ts.map +1 -0
- package/models/components/realtimetranscriptioninputaudioappend.js +60 -0
- package/models/components/realtimetranscriptioninputaudioappend.js.map +1 -0
- package/models/components/realtimetranscriptioninputaudioend.d.ts +17 -0
- package/models/components/realtimetranscriptioninputaudioend.d.ts.map +1 -0
- package/models/components/realtimetranscriptioninputaudioend.js +58 -0
- package/models/components/realtimetranscriptioninputaudioend.js.map +1 -0
- package/models/components/realtimetranscriptioninputaudioflush.d.ts +17 -0
- package/models/components/realtimetranscriptioninputaudioflush.d.ts.map +1 -0
- package/models/components/realtimetranscriptioninputaudioflush.js +58 -0
- package/models/components/realtimetranscriptioninputaudioflush.js.map +1 -0
- package/models/components/realtimetranscriptionsession.d.ts +24 -0
- package/models/components/realtimetranscriptionsession.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsession.js +78 -0
- package/models/components/realtimetranscriptionsession.js.map +1 -0
- package/models/components/realtimetranscriptionsessioncreated.d.ts +20 -0
- package/models/components/realtimetranscriptionsessioncreated.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessioncreated.js +61 -0
- package/models/components/realtimetranscriptionsessioncreated.js.map +1 -0
- package/models/components/realtimetranscriptionsessionupdated.d.ts +20 -0
- package/models/components/realtimetranscriptionsessionupdated.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessionupdated.js +61 -0
- package/models/components/realtimetranscriptionsessionupdated.js.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.d.ts +20 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.js +61 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.js.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.d.ts +26 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.js +72 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.js.map +1 -0
- package/models/components/referencechunk.d.ts +2 -11
- package/models/components/referencechunk.d.ts.map +1 -1
- package/models/components/referencechunk.js +3 -10
- package/models/components/referencechunk.js.map +1 -1
- package/models/components/responsedoneevent.d.ts +1 -8
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +2 -7
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/responseerrorevent.d.ts +1 -8
- package/models/components/responseerrorevent.d.ts.map +1 -1
- package/models/components/responseerrorevent.js +2 -7
- package/models/components/responseerrorevent.js.map +1 -1
- package/models/components/responsestartedevent.d.ts +1 -8
- package/models/components/responsestartedevent.d.ts.map +1 -1
- package/models/components/responsestartedevent.js +2 -7
- package/models/components/responsestartedevent.js.map +1 -1
- package/models/components/systemmessage.d.ts +2 -9
- package/models/components/systemmessage.d.ts.map +1 -1
- package/models/components/systemmessage.js +2 -7
- package/models/components/systemmessage.js.map +1 -1
- package/models/components/textchunk.d.ts +2 -11
- package/models/components/textchunk.d.ts.map +1 -1
- package/models/components/textchunk.js +3 -10
- package/models/components/textchunk.js.map +1 -1
- package/models/components/thinkchunk.d.ts +8 -20
- package/models/components/thinkchunk.d.ts.map +1 -1
- package/models/components/thinkchunk.js +10 -17
- package/models/components/thinkchunk.js.map +1 -1
- package/models/components/timestampgranularity.d.ts +1 -0
- package/models/components/timestampgranularity.d.ts.map +1 -1
- package/models/components/timestampgranularity.js +1 -0
- package/models/components/timestampgranularity.js.map +1 -1
- package/models/components/toolcallconfirmation.d.ts +22 -0
- package/models/components/toolcallconfirmation.d.ts.map +1 -0
- package/models/components/toolcallconfirmation.js +61 -0
- package/models/components/toolcallconfirmation.js.map +1 -0
- package/models/components/toolconfiguration.d.ts +21 -0
- package/models/components/toolconfiguration.d.ts.map +1 -0
- package/models/components/toolconfiguration.js +71 -0
- package/models/components/toolconfiguration.js.map +1 -0
- package/models/components/toolexecutiondeltaevent.d.ts +1 -8
- package/models/components/toolexecutiondeltaevent.d.ts.map +1 -1
- package/models/components/toolexecutiondeltaevent.js +2 -7
- package/models/components/toolexecutiondeltaevent.js.map +1 -1
- package/models/components/toolexecutiondoneevent.d.ts +1 -8
- package/models/components/toolexecutiondoneevent.d.ts.map +1 -1
- package/models/components/toolexecutiondoneevent.js +2 -7
- package/models/components/toolexecutiondoneevent.js.map +1 -1
- package/models/components/toolexecutionentry.d.ts +4 -21
- package/models/components/toolexecutionentry.d.ts.map +1 -1
- package/models/components/toolexecutionentry.js +5 -19
- package/models/components/toolexecutionentry.js.map +1 -1
- package/models/components/toolexecutionstartedevent.d.ts +1 -8
- package/models/components/toolexecutionstartedevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedevent.js +2 -7
- package/models/components/toolexecutionstartedevent.js.map +1 -1
- package/models/components/toolfilechunk.d.ts +2 -11
- package/models/components/toolfilechunk.d.ts.map +1 -1
- package/models/components/toolfilechunk.js +3 -10
- package/models/components/toolfilechunk.js.map +1 -1
- package/models/components/toolmessage.d.ts +2 -9
- package/models/components/toolmessage.d.ts.map +1 -1
- package/models/components/toolmessage.js +2 -7
- package/models/components/toolmessage.js.map +1 -1
- package/models/components/toolreferencechunk.d.ts +2 -11
- package/models/components/toolreferencechunk.d.ts.map +1 -1
- package/models/components/toolreferencechunk.js +3 -10
- package/models/components/toolreferencechunk.js.map +1 -1
- package/models/components/transcriptionsegmentchunk.d.ts +6 -11
- package/models/components/transcriptionsegmentchunk.d.ts.map +1 -1
- package/models/components/transcriptionsegmentchunk.js +13 -11
- package/models/components/transcriptionsegmentchunk.js.map +1 -1
- package/models/components/transcriptionstreamdone.d.ts +2 -11
- package/models/components/transcriptionstreamdone.d.ts.map +1 -1
- package/models/components/transcriptionstreamdone.js +3 -10
- package/models/components/transcriptionstreamdone.js.map +1 -1
- package/models/components/transcriptionstreamlanguage.d.ts +2 -11
- package/models/components/transcriptionstreamlanguage.d.ts.map +1 -1
- package/models/components/transcriptionstreamlanguage.js +3 -10
- package/models/components/transcriptionstreamlanguage.js.map +1 -1
- package/models/components/transcriptionstreamsegmentdelta.d.ts +2 -8
- package/models/components/transcriptionstreamsegmentdelta.d.ts.map +1 -1
- package/models/components/transcriptionstreamsegmentdelta.js +9 -8
- package/models/components/transcriptionstreamsegmentdelta.js.map +1 -1
- package/models/components/transcriptionstreamtextdelta.d.ts +2 -11
- package/models/components/transcriptionstreamtextdelta.d.ts.map +1 -1
- package/models/components/transcriptionstreamtextdelta.js +3 -10
- package/models/components/transcriptionstreamtextdelta.js.map +1 -1
- package/models/components/unarchiveftmodelout.d.ts +1 -8
- package/models/components/unarchiveftmodelout.d.ts.map +1 -1
- package/models/components/unarchiveftmodelout.js +2 -7
- package/models/components/unarchiveftmodelout.js.map +1 -1
- package/models/components/usermessage.d.ts +2 -9
- package/models/components/usermessage.d.ts.map +1 -1
- package/models/components/usermessage.js +2 -7
- package/models/components/usermessage.js.map +1 -1
- package/models/components/wandbintegration.d.ts +2 -9
- package/models/components/wandbintegration.d.ts.map +1 -1
- package/models/components/wandbintegration.js +2 -7
- package/models/components/wandbintegration.js.map +1 -1
- package/models/components/wandbintegrationout.d.ts +1 -8
- package/models/components/wandbintegrationout.d.ts.map +1 -1
- package/models/components/wandbintegrationout.js +2 -7
- package/models/components/wandbintegrationout.js.map +1 -1
- package/models/components/websearchpremiumtool.d.ts +3 -0
- package/models/components/websearchpremiumtool.d.ts.map +1 -1
- package/models/components/websearchpremiumtool.js +12 -0
- package/models/components/websearchpremiumtool.js.map +1 -1
- package/models/components/websearchtool.d.ts +3 -0
- package/models/components/websearchtool.d.ts.map +1 -1
- package/models/components/websearchtool.js +12 -0
- package/models/components/websearchtool.js.map +1 -1
- package/models/operations/agentsapiv1agentscreateorupdatealias.d.ts +16 -0
- package/models/operations/agentsapiv1agentscreateorupdatealias.d.ts.map +1 -0
- package/models/operations/agentsapiv1agentscreateorupdatealias.js +56 -0
- package/models/operations/agentsapiv1agentscreateorupdatealias.js.map +1 -0
- package/models/operations/agentsapiv1agentsdeletealias.d.ts +14 -0
- package/models/operations/agentsapiv1agentsdeletealias.d.ts.map +1 -0
- package/models/operations/agentsapiv1agentsdeletealias.js +55 -0
- package/models/operations/agentsapiv1agentsdeletealias.js.map +1 -0
- package/models/operations/agentsapiv1agentsget.d.ts +8 -2
- package/models/operations/agentsapiv1agentsget.d.ts.map +1 -1
- package/models/operations/agentsapiv1agentsget.js +8 -2
- package/models/operations/agentsapiv1agentsget.js.map +1 -1
- package/models/operations/agentsapiv1agentsgetversion.d.ts +2 -2
- package/models/operations/agentsapiv1agentsgetversion.js +1 -1
- package/models/operations/agentsapiv1agentsgetversion.js.map +1 -1
- package/models/operations/agentsapiv1agentslist.d.ts +8 -0
- package/models/operations/agentsapiv1agentslist.d.ts.map +1 -1
- package/models/operations/agentsapiv1agentslist.js +1 -0
- package/models/operations/agentsapiv1agentslist.js.map +1 -1
- package/models/operations/agentsapiv1agentslistversionaliases.d.ts +12 -0
- package/models/operations/agentsapiv1agentslistversionaliases.d.ts.map +1 -0
- package/models/operations/agentsapiv1agentslistversionaliases.js +54 -0
- package/models/operations/agentsapiv1agentslistversionaliases.js.map +1 -0
- package/models/operations/filesapirouteslistfiles.d.ts +2 -0
- package/models/operations/filesapirouteslistfiles.d.ts.map +1 -1
- package/models/operations/filesapirouteslistfiles.js +1 -0
- package/models/operations/filesapirouteslistfiles.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts +10 -0
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js +10 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js.map +1 -1
- package/package.json +4 -1
- package/sdk/mistralagents.d.ts +22 -1
- package/sdk/mistralagents.d.ts.map +1 -1
- package/sdk/mistralagents.js +31 -1
- package/sdk/mistralagents.js.map +1 -1
- package/src/extra/realtime/connection.ts +459 -0
- package/src/extra/realtime/errors.ts +32 -0
- package/src/extra/realtime/index.ts +32 -0
- package/src/extra/realtime/transcription.ts +291 -0
- package/src/extra/structChat.ts +2 -2
- package/src/funcs/audioTranscriptionsComplete.ts +6 -0
- package/src/funcs/audioTranscriptionsStream.ts +6 -0
- package/src/funcs/batchJobsList.ts +1 -0
- package/src/funcs/betaAgentsCreateVersionAlias.ts +184 -0
- package/src/funcs/betaAgentsDeleteVersionAlias.ts +184 -0
- package/src/funcs/betaAgentsGet.ts +1 -1
- package/src/funcs/betaAgentsGetVersion.ts +1 -1
- package/src/funcs/betaAgentsList.ts +1 -0
- package/src/funcs/betaAgentsListVersionAliases.ts +179 -0
- package/src/funcs/filesList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +5 -12
- package/src/models/components/agentaliasresponse.ts +43 -0
- package/src/models/components/agentconversation.ts +20 -14
- package/src/models/components/agentcreationrequest.ts +4 -0
- package/src/models/components/agenthandoffdoneevent.ts +2 -15
- package/src/models/components/agenthandoffentry.ts +8 -39
- package/src/models/components/agenthandoffstartedevent.ts +2 -17
- package/src/models/components/agentupdaterequest.ts +4 -0
- package/src/models/components/archiveftmodelout.ts +2 -15
- package/src/models/components/assistantmessage.ts +4 -19
- package/src/models/components/audiochunk.ts +4 -19
- package/src/models/components/audiotranscriptionrequest.ts +7 -0
- package/src/models/components/audiotranscriptionrequeststream.ts +7 -0
- package/src/models/components/basemodelcard.ts +0 -11
- package/src/models/components/batchjobout.ts +2 -13
- package/src/models/components/batchjobsout.ts +2 -13
- package/src/models/components/classifierdetailedjobout.ts +4 -31
- package/src/models/components/classifierftmodelout.ts +4 -29
- package/src/models/components/classifierjobout.ts +4 -41
- package/src/models/components/codeinterpretertool.ts +19 -0
- package/src/models/components/completiondetailedjobout.ts +4 -31
- package/src/models/components/completionftmodelout.ts +4 -26
- package/src/models/components/completionjobout.ts +4 -38
- package/src/models/components/conversationappendrequest.ts +13 -3
- package/src/models/components/conversationappendstreamrequest.ts +13 -3
- package/src/models/components/conversationhistory.ts +2 -17
- package/src/models/components/conversationmessages.ts +2 -17
- package/src/models/components/conversationrequest.ts +19 -3
- package/src/models/components/conversationresponse.ts +2 -17
- package/src/models/components/conversationrestartrequest.ts +32 -6
- package/src/models/components/conversationrestartstreamrequest.ts +35 -6
- package/src/models/components/conversationstreamrequest.ts +25 -3
- package/src/models/components/documentlibrarytool.ts +12 -0
- package/src/models/components/documentout.ts +3 -3
- package/src/models/components/documenturlchunk.ts +4 -19
- package/src/models/components/ftmodelcard.ts +0 -11
- package/src/models/components/functioncallentry.ts +25 -33
- package/src/models/components/functioncallevent.ts +17 -8
- package/src/models/components/functionresultentry.ts +8 -41
- package/src/models/components/functiontool.ts +10 -11
- package/src/models/components/githubrepositoryin.ts +3 -14
- package/src/models/components/githubrepositoryout.ts +2 -15
- package/src/models/components/imagedetail.ts +20 -0
- package/src/models/components/imagegenerationtool.ts +19 -0
- package/src/models/components/imageurl.ts +8 -3
- package/src/models/components/imageurlchunk.ts +4 -19
- package/src/models/components/index.ts +14 -0
- package/src/models/components/jobin.ts +0 -3
- package/src/models/components/jobsout.ts +2 -13
- package/src/models/components/legacyjobmetadataout.ts +2 -15
- package/src/models/components/messageinputentry.ts +18 -45
- package/src/models/components/messageoutputentry.ts +12 -57
- package/src/models/components/messageoutputevent.ts +4 -25
- package/src/models/components/mistralpromptmode.ts +14 -0
- package/src/models/components/modelcapabilities.ts +3 -0
- package/src/models/components/modelconversation.ts +2 -15
- package/src/models/components/realtimetranscriptionerror.ts +61 -0
- package/src/models/components/realtimetranscriptionerrordetail.ts +94 -0
- package/src/models/components/realtimetranscriptioninputaudioappend.ts +61 -0
- package/src/models/components/realtimetranscriptioninputaudioend.ts +54 -0
- package/src/models/components/realtimetranscriptioninputaudioflush.ts +54 -0
- package/src/models/components/realtimetranscriptionsession.ts +84 -0
- package/src/models/components/realtimetranscriptionsessioncreated.ts +64 -0
- package/src/models/components/realtimetranscriptionsessionupdated.ts +64 -0
- package/src/models/components/realtimetranscriptionsessionupdatemessage.ts +71 -0
- package/src/models/components/realtimetranscriptionsessionupdatepayload.ts +88 -0
- package/src/models/components/referencechunk.ts +4 -19
- package/src/models/components/responsedoneevent.ts +2 -13
- package/src/models/components/responseerrorevent.ts +2 -13
- package/src/models/components/responsestartedevent.ts +2 -15
- package/src/models/components/systemmessage.ts +3 -14
- package/src/models/components/textchunk.ts +4 -19
- package/src/models/components/thinkchunk.ts +23 -39
- package/src/models/components/timestampgranularity.ts +1 -0
- package/src/models/components/toolcallconfirmation.ts +50 -0
- package/src/models/components/toolconfiguration.ts +68 -0
- package/src/models/components/toolexecutiondeltaevent.ts +2 -17
- package/src/models/components/toolexecutiondoneevent.ts +2 -15
- package/src/models/components/toolexecutionentry.ts +8 -39
- package/src/models/components/toolexecutionstartedevent.ts +2 -17
- package/src/models/components/toolfilechunk.ts +4 -19
- package/src/models/components/toolmessage.ts +3 -14
- package/src/models/components/toolreferencechunk.ts +4 -19
- package/src/models/components/transcriptionsegmentchunk.ts +20 -19
- package/src/models/components/transcriptionstreamdone.ts +4 -25
- package/src/models/components/transcriptionstreamlanguage.ts +5 -24
- package/src/models/components/transcriptionstreamsegmentdelta.ts +10 -18
- package/src/models/components/transcriptionstreamtextdelta.ts +7 -24
- package/src/models/components/unarchiveftmodelout.ts +2 -15
- package/src/models/components/usermessage.ts +3 -14
- package/src/models/components/wandbintegration.ts +3 -14
- package/src/models/components/wandbintegrationout.ts +2 -15
- package/src/models/components/websearchpremiumtool.ts +19 -0
- package/src/models/components/websearchtool.ts +19 -0
- package/src/models/operations/agentsapiv1agentscreateorupdatealias.ts +46 -0
- package/src/models/operations/agentsapiv1agentsdeletealias.ts +41 -0
- package/src/models/operations/agentsapiv1agentsget.ts +19 -3
- package/src/models/operations/agentsapiv1agentsgetversion.ts +3 -3
- package/src/models/operations/agentsapiv1agentslist.ts +9 -0
- package/src/models/operations/agentsapiv1agentslistversionaliases.ts +40 -0
- package/src/models/operations/filesapirouteslistfiles.ts +3 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/jobsapiroutesbatchgetbatchjobs.ts +15 -0
- package/src/sdk/mistralagents.ts +55 -1
- package/tests/extra/realtime.test.ts +389 -0
|
@@ -24,11 +24,16 @@ export type ConversationRestartStreamRequestHandoffExecution = ClosedEnum<
|
|
|
24
24
|
typeof ConversationRestartStreamRequestHandoffExecution
|
|
25
25
|
>;
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Specific version of the agent to use when restarting. If not provided, uses the current version.
|
|
29
|
+
*/
|
|
30
|
+
export type ConversationRestartStreamRequestAgentVersion = string | number;
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* Request to restart a new conversation from a given entry in the conversation.
|
|
29
34
|
*/
|
|
30
35
|
export type ConversationRestartStreamRequest = {
|
|
31
|
-
inputs
|
|
36
|
+
inputs?: ConversationInputs | undefined;
|
|
32
37
|
stream?: boolean | undefined;
|
|
33
38
|
/**
|
|
34
39
|
* Whether to store the results into our servers or not.
|
|
@@ -49,7 +54,7 @@ export type ConversationRestartStreamRequest = {
|
|
|
49
54
|
/**
|
|
50
55
|
* Specific version of the agent to use when restarting. If not provided, uses the current version.
|
|
51
56
|
*/
|
|
52
|
-
agentVersion?: number | null | undefined;
|
|
57
|
+
agentVersion?: string | number | null | undefined;
|
|
53
58
|
};
|
|
54
59
|
|
|
55
60
|
/** @internal */
|
|
@@ -57,16 +62,40 @@ export const ConversationRestartStreamRequestHandoffExecution$outboundSchema:
|
|
|
57
62
|
z.ZodNativeEnum<typeof ConversationRestartStreamRequestHandoffExecution> = z
|
|
58
63
|
.nativeEnum(ConversationRestartStreamRequestHandoffExecution);
|
|
59
64
|
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type ConversationRestartStreamRequestAgentVersion$Outbound =
|
|
67
|
+
| string
|
|
68
|
+
| number;
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ConversationRestartStreamRequestAgentVersion$outboundSchema:
|
|
72
|
+
z.ZodType<
|
|
73
|
+
ConversationRestartStreamRequestAgentVersion$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
ConversationRestartStreamRequestAgentVersion
|
|
76
|
+
> = z.union([z.string(), z.number().int()]);
|
|
77
|
+
|
|
78
|
+
export function conversationRestartStreamRequestAgentVersionToJSON(
|
|
79
|
+
conversationRestartStreamRequestAgentVersion:
|
|
80
|
+
ConversationRestartStreamRequestAgentVersion,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
ConversationRestartStreamRequestAgentVersion$outboundSchema.parse(
|
|
84
|
+
conversationRestartStreamRequestAgentVersion,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
60
89
|
/** @internal */
|
|
61
90
|
export type ConversationRestartStreamRequest$Outbound = {
|
|
62
|
-
inputs
|
|
91
|
+
inputs?: ConversationInputs$Outbound | undefined;
|
|
63
92
|
stream: boolean;
|
|
64
93
|
store: boolean;
|
|
65
94
|
handoff_execution: string;
|
|
66
95
|
completion_args?: CompletionArgs$Outbound | undefined;
|
|
67
96
|
metadata?: { [k: string]: any } | null | undefined;
|
|
68
97
|
from_entry_id: string;
|
|
69
|
-
agent_version?: number | null | undefined;
|
|
98
|
+
agent_version?: string | number | null | undefined;
|
|
70
99
|
};
|
|
71
100
|
|
|
72
101
|
/** @internal */
|
|
@@ -75,7 +104,7 @@ export const ConversationRestartStreamRequest$outboundSchema: z.ZodType<
|
|
|
75
104
|
z.ZodTypeDef,
|
|
76
105
|
ConversationRestartStreamRequest
|
|
77
106
|
> = z.object({
|
|
78
|
-
inputs: ConversationInputs$outboundSchema,
|
|
107
|
+
inputs: ConversationInputs$outboundSchema.optional(),
|
|
79
108
|
stream: z.boolean().default(true),
|
|
80
109
|
store: z.boolean().default(true),
|
|
81
110
|
handoffExecution:
|
|
@@ -85,7 +114,7 @@ export const ConversationRestartStreamRequest$outboundSchema: z.ZodType<
|
|
|
85
114
|
completionArgs: CompletionArgs$outboundSchema.optional(),
|
|
86
115
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
87
116
|
fromEntryId: z.string(),
|
|
88
|
-
agentVersion: z.nullable(z.number().int()).optional(),
|
|
117
|
+
agentVersion: z.nullable(z.union([z.string(), z.number().int()])).optional(),
|
|
89
118
|
}).transform((v) => {
|
|
90
119
|
return remap$(v, {
|
|
91
120
|
handoffExecution: "handoff_execution",
|
|
@@ -62,6 +62,8 @@ export type ConversationStreamRequestTools =
|
|
|
62
62
|
| (WebSearchTool & { type: "web_search" })
|
|
63
63
|
| (WebSearchPremiumTool & { type: "web_search_premium" });
|
|
64
64
|
|
|
65
|
+
export type ConversationStreamRequestAgentVersion = string | number;
|
|
66
|
+
|
|
65
67
|
export type ConversationStreamRequest = {
|
|
66
68
|
inputs: ConversationInputs;
|
|
67
69
|
stream?: boolean | undefined;
|
|
@@ -89,7 +91,7 @@ export type ConversationStreamRequest = {
|
|
|
89
91
|
description?: string | null | undefined;
|
|
90
92
|
metadata?: { [k: string]: any } | null | undefined;
|
|
91
93
|
agentId?: string | null | undefined;
|
|
92
|
-
agentVersion?: number | null | undefined;
|
|
94
|
+
agentVersion?: string | number | null | undefined;
|
|
93
95
|
model?: string | null | undefined;
|
|
94
96
|
};
|
|
95
97
|
|
|
@@ -139,6 +141,26 @@ export function conversationStreamRequestToolsToJSON(
|
|
|
139
141
|
);
|
|
140
142
|
}
|
|
141
143
|
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type ConversationStreamRequestAgentVersion$Outbound = string | number;
|
|
146
|
+
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const ConversationStreamRequestAgentVersion$outboundSchema: z.ZodType<
|
|
149
|
+
ConversationStreamRequestAgentVersion$Outbound,
|
|
150
|
+
z.ZodTypeDef,
|
|
151
|
+
ConversationStreamRequestAgentVersion
|
|
152
|
+
> = z.union([z.string(), z.number().int()]);
|
|
153
|
+
|
|
154
|
+
export function conversationStreamRequestAgentVersionToJSON(
|
|
155
|
+
conversationStreamRequestAgentVersion: ConversationStreamRequestAgentVersion,
|
|
156
|
+
): string {
|
|
157
|
+
return JSON.stringify(
|
|
158
|
+
ConversationStreamRequestAgentVersion$outboundSchema.parse(
|
|
159
|
+
conversationStreamRequestAgentVersion,
|
|
160
|
+
),
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
142
164
|
/** @internal */
|
|
143
165
|
export type ConversationStreamRequest$Outbound = {
|
|
144
166
|
inputs: ConversationInputs$Outbound;
|
|
@@ -161,7 +183,7 @@ export type ConversationStreamRequest$Outbound = {
|
|
|
161
183
|
description?: string | null | undefined;
|
|
162
184
|
metadata?: { [k: string]: any } | null | undefined;
|
|
163
185
|
agent_id?: string | null | undefined;
|
|
164
|
-
agent_version?: number | null | undefined;
|
|
186
|
+
agent_version?: string | number | null | undefined;
|
|
165
187
|
model?: string | null | undefined;
|
|
166
188
|
};
|
|
167
189
|
|
|
@@ -205,7 +227,7 @@ export const ConversationStreamRequest$outboundSchema: z.ZodType<
|
|
|
205
227
|
description: z.nullable(z.string()).optional(),
|
|
206
228
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
207
229
|
agentId: z.nullable(z.string()).optional(),
|
|
208
|
-
agentVersion: z.nullable(z.number().int()).optional(),
|
|
230
|
+
agentVersion: z.nullable(z.union([z.string(), z.number().int()])).optional(),
|
|
209
231
|
model: z.nullable(z.string()).optional(),
|
|
210
232
|
}).transform((v) => {
|
|
211
233
|
return remap$(v, {
|
|
@@ -8,6 +8,12 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
ToolConfiguration,
|
|
13
|
+
ToolConfiguration$inboundSchema,
|
|
14
|
+
ToolConfiguration$Outbound,
|
|
15
|
+
ToolConfiguration$outboundSchema,
|
|
16
|
+
} from "./toolconfiguration.js";
|
|
11
17
|
|
|
12
18
|
export const DocumentLibraryToolType = {
|
|
13
19
|
DocumentLibrary: "document_library",
|
|
@@ -17,6 +23,7 @@ export type DocumentLibraryToolType = ClosedEnum<
|
|
|
17
23
|
>;
|
|
18
24
|
|
|
19
25
|
export type DocumentLibraryTool = {
|
|
26
|
+
toolConfiguration?: ToolConfiguration | null | undefined;
|
|
20
27
|
type?: DocumentLibraryToolType | undefined;
|
|
21
28
|
/**
|
|
22
29
|
* Ids of the library in which to search.
|
|
@@ -39,15 +46,18 @@ export const DocumentLibraryTool$inboundSchema: z.ZodType<
|
|
|
39
46
|
z.ZodTypeDef,
|
|
40
47
|
unknown
|
|
41
48
|
> = z.object({
|
|
49
|
+
tool_configuration: z.nullable(ToolConfiguration$inboundSchema).optional(),
|
|
42
50
|
type: DocumentLibraryToolType$inboundSchema.default("document_library"),
|
|
43
51
|
library_ids: z.array(z.string()),
|
|
44
52
|
}).transform((v) => {
|
|
45
53
|
return remap$(v, {
|
|
54
|
+
"tool_configuration": "toolConfiguration",
|
|
46
55
|
"library_ids": "libraryIds",
|
|
47
56
|
});
|
|
48
57
|
});
|
|
49
58
|
/** @internal */
|
|
50
59
|
export type DocumentLibraryTool$Outbound = {
|
|
60
|
+
tool_configuration?: ToolConfiguration$Outbound | null | undefined;
|
|
51
61
|
type: string;
|
|
52
62
|
library_ids: Array<string>;
|
|
53
63
|
};
|
|
@@ -58,10 +68,12 @@ export const DocumentLibraryTool$outboundSchema: z.ZodType<
|
|
|
58
68
|
z.ZodTypeDef,
|
|
59
69
|
DocumentLibraryTool
|
|
60
70
|
> = z.object({
|
|
71
|
+
toolConfiguration: z.nullable(ToolConfiguration$outboundSchema).optional(),
|
|
61
72
|
type: DocumentLibraryToolType$outboundSchema.default("document_library"),
|
|
62
73
|
libraryIds: z.array(z.string()),
|
|
63
74
|
}).transform((v) => {
|
|
64
75
|
return remap$(v, {
|
|
76
|
+
toolConfiguration: "tool_configuration",
|
|
65
77
|
libraryIds: "library_ids",
|
|
66
78
|
});
|
|
67
79
|
});
|
|
@@ -20,13 +20,13 @@ export type DocumentOut = {
|
|
|
20
20
|
createdAt: Date;
|
|
21
21
|
lastProcessedAt?: Date | null | undefined;
|
|
22
22
|
numberOfPages?: number | null | undefined;
|
|
23
|
-
processingStatus: string;
|
|
24
23
|
uploadedById: string | null;
|
|
25
24
|
uploadedByType: string;
|
|
26
25
|
tokensProcessingMainContent?: number | null | undefined;
|
|
27
26
|
tokensProcessingSummary?: number | null | undefined;
|
|
28
27
|
url?: string | null | undefined;
|
|
29
28
|
attributes?: { [k: string]: any } | null | undefined;
|
|
29
|
+
processingStatus: string;
|
|
30
30
|
tokensProcessingTotal: number;
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -49,13 +49,13 @@ export const DocumentOut$inboundSchema: z.ZodType<
|
|
|
49
49
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
50
50
|
).optional(),
|
|
51
51
|
number_of_pages: z.nullable(z.number().int()).optional(),
|
|
52
|
-
processing_status: z.string(),
|
|
53
52
|
uploaded_by_id: z.nullable(z.string()),
|
|
54
53
|
uploaded_by_type: z.string(),
|
|
55
54
|
tokens_processing_main_content: z.nullable(z.number().int()).optional(),
|
|
56
55
|
tokens_processing_summary: z.nullable(z.number().int()).optional(),
|
|
57
56
|
url: z.nullable(z.string()).optional(),
|
|
58
57
|
attributes: z.nullable(z.record(z.any())).optional(),
|
|
58
|
+
processing_status: z.string(),
|
|
59
59
|
tokens_processing_total: z.number().int(),
|
|
60
60
|
}).transform((v) => {
|
|
61
61
|
return remap$(v, {
|
|
@@ -64,11 +64,11 @@ export const DocumentOut$inboundSchema: z.ZodType<
|
|
|
64
64
|
"created_at": "createdAt",
|
|
65
65
|
"last_processed_at": "lastProcessedAt",
|
|
66
66
|
"number_of_pages": "numberOfPages",
|
|
67
|
-
"processing_status": "processingStatus",
|
|
68
67
|
"uploaded_by_id": "uploadedById",
|
|
69
68
|
"uploaded_by_type": "uploadedByType",
|
|
70
69
|
"tokens_processing_main_content": "tokensProcessingMainContent",
|
|
71
70
|
"tokens_processing_summary": "tokensProcessingSummary",
|
|
71
|
+
"processing_status": "processingStatus",
|
|
72
72
|
"tokens_processing_total": "tokensProcessingTotal",
|
|
73
73
|
});
|
|
74
74
|
});
|
|
@@ -5,42 +5,27 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
export const DocumentURLChunkType = {
|
|
13
|
-
DocumentUrl: "document_url",
|
|
14
|
-
} as const;
|
|
15
|
-
export type DocumentURLChunkType = ClosedEnum<typeof DocumentURLChunkType>;
|
|
16
|
-
|
|
17
11
|
export type DocumentURLChunk = {
|
|
12
|
+
type?: "document_url" | undefined;
|
|
18
13
|
documentUrl: string;
|
|
19
14
|
/**
|
|
20
15
|
* The filename of the document
|
|
21
16
|
*/
|
|
22
17
|
documentName?: string | null | undefined;
|
|
23
|
-
type?: DocumentURLChunkType | undefined;
|
|
24
18
|
};
|
|
25
19
|
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const DocumentURLChunkType$inboundSchema: z.ZodNativeEnum<
|
|
28
|
-
typeof DocumentURLChunkType
|
|
29
|
-
> = z.nativeEnum(DocumentURLChunkType);
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const DocumentURLChunkType$outboundSchema: z.ZodNativeEnum<
|
|
32
|
-
typeof DocumentURLChunkType
|
|
33
|
-
> = DocumentURLChunkType$inboundSchema;
|
|
34
|
-
|
|
35
20
|
/** @internal */
|
|
36
21
|
export const DocumentURLChunk$inboundSchema: z.ZodType<
|
|
37
22
|
DocumentURLChunk,
|
|
38
23
|
z.ZodTypeDef,
|
|
39
24
|
unknown
|
|
40
25
|
> = z.object({
|
|
26
|
+
type: z.literal("document_url").default("document_url"),
|
|
41
27
|
document_url: z.string(),
|
|
42
28
|
document_name: z.nullable(z.string()).optional(),
|
|
43
|
-
type: DocumentURLChunkType$inboundSchema.default("document_url"),
|
|
44
29
|
}).transform((v) => {
|
|
45
30
|
return remap$(v, {
|
|
46
31
|
"document_url": "documentUrl",
|
|
@@ -49,9 +34,9 @@ export const DocumentURLChunk$inboundSchema: z.ZodType<
|
|
|
49
34
|
});
|
|
50
35
|
/** @internal */
|
|
51
36
|
export type DocumentURLChunk$Outbound = {
|
|
37
|
+
type: "document_url";
|
|
52
38
|
document_url: string;
|
|
53
39
|
document_name?: string | null | undefined;
|
|
54
|
-
type: string;
|
|
55
40
|
};
|
|
56
41
|
|
|
57
42
|
/** @internal */
|
|
@@ -60,9 +45,9 @@ export const DocumentURLChunk$outboundSchema: z.ZodType<
|
|
|
60
45
|
z.ZodTypeDef,
|
|
61
46
|
DocumentURLChunk
|
|
62
47
|
> = z.object({
|
|
48
|
+
type: z.literal("document_url").default("document_url" as const),
|
|
63
49
|
documentUrl: z.string(),
|
|
64
50
|
documentName: z.nullable(z.string()).optional(),
|
|
65
|
-
type: DocumentURLChunkType$outboundSchema.default("document_url"),
|
|
66
51
|
}).transform((v) => {
|
|
67
52
|
return remap$(v, {
|
|
68
53
|
documentUrl: "document_url",
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -13,11 +12,6 @@ import {
|
|
|
13
12
|
ModelCapabilities$inboundSchema,
|
|
14
13
|
} from "./modelcapabilities.js";
|
|
15
14
|
|
|
16
|
-
export const FTModelCardType = {
|
|
17
|
-
FineTuned: "fine-tuned",
|
|
18
|
-
} as const;
|
|
19
|
-
export type FTModelCardType = ClosedEnum<typeof FTModelCardType>;
|
|
20
|
-
|
|
21
15
|
/**
|
|
22
16
|
* Extra fields for fine-tuned models.
|
|
23
17
|
*/
|
|
@@ -40,11 +34,6 @@ export type FTModelCard = {
|
|
|
40
34
|
archived: boolean | undefined;
|
|
41
35
|
};
|
|
42
36
|
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const FTModelCardType$inboundSchema: z.ZodNativeEnum<
|
|
45
|
-
typeof FTModelCardType
|
|
46
|
-
> = z.nativeEnum(FTModelCardType);
|
|
47
|
-
|
|
48
37
|
/** @internal */
|
|
49
38
|
export const FTModelCard$inboundSchema: z.ZodType<
|
|
50
39
|
FTModelCard,
|
|
@@ -15,46 +15,33 @@ import {
|
|
|
15
15
|
FunctionCallEntryArguments$outboundSchema,
|
|
16
16
|
} from "./functioncallentryarguments.js";
|
|
17
17
|
|
|
18
|
-
export const
|
|
19
|
-
|
|
18
|
+
export const ConfirmationStatus = {
|
|
19
|
+
Pending: "pending",
|
|
20
|
+
Allowed: "allowed",
|
|
21
|
+
Denied: "denied",
|
|
20
22
|
} as const;
|
|
21
|
-
export type
|
|
22
|
-
typeof FunctionCallEntryObject
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
|
-
export const FunctionCallEntryType = {
|
|
26
|
-
FunctionCall: "function.call",
|
|
27
|
-
} as const;
|
|
28
|
-
export type FunctionCallEntryType = ClosedEnum<typeof FunctionCallEntryType>;
|
|
23
|
+
export type ConfirmationStatus = ClosedEnum<typeof ConfirmationStatus>;
|
|
29
24
|
|
|
30
25
|
export type FunctionCallEntry = {
|
|
31
|
-
object?:
|
|
32
|
-
type?:
|
|
26
|
+
object?: "entry" | undefined;
|
|
27
|
+
type?: "function.call" | undefined;
|
|
33
28
|
createdAt?: Date | undefined;
|
|
34
29
|
completedAt?: Date | null | undefined;
|
|
35
30
|
id?: string | undefined;
|
|
36
31
|
toolCallId: string;
|
|
37
32
|
name: string;
|
|
38
33
|
arguments: FunctionCallEntryArguments;
|
|
34
|
+
confirmationStatus?: ConfirmationStatus | null | undefined;
|
|
39
35
|
};
|
|
40
36
|
|
|
41
37
|
/** @internal */
|
|
42
|
-
export const
|
|
43
|
-
typeof
|
|
44
|
-
> = z.nativeEnum(
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const FunctionCallEntryObject$outboundSchema: z.ZodNativeEnum<
|
|
47
|
-
typeof FunctionCallEntryObject
|
|
48
|
-
> = FunctionCallEntryObject$inboundSchema;
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const FunctionCallEntryType$inboundSchema: z.ZodNativeEnum<
|
|
52
|
-
typeof FunctionCallEntryType
|
|
53
|
-
> = z.nativeEnum(FunctionCallEntryType);
|
|
38
|
+
export const ConfirmationStatus$inboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof ConfirmationStatus
|
|
40
|
+
> = z.nativeEnum(ConfirmationStatus);
|
|
54
41
|
/** @internal */
|
|
55
|
-
export const
|
|
56
|
-
typeof
|
|
57
|
-
> =
|
|
42
|
+
export const ConfirmationStatus$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof ConfirmationStatus
|
|
44
|
+
> = ConfirmationStatus$inboundSchema;
|
|
58
45
|
|
|
59
46
|
/** @internal */
|
|
60
47
|
export const FunctionCallEntry$inboundSchema: z.ZodType<
|
|
@@ -62,8 +49,8 @@ export const FunctionCallEntry$inboundSchema: z.ZodType<
|
|
|
62
49
|
z.ZodTypeDef,
|
|
63
50
|
unknown
|
|
64
51
|
> = z.object({
|
|
65
|
-
object:
|
|
66
|
-
type:
|
|
52
|
+
object: z.literal("entry").default("entry"),
|
|
53
|
+
type: z.literal("function.call").default("function.call"),
|
|
67
54
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
68
55
|
.optional(),
|
|
69
56
|
completed_at: z.nullable(
|
|
@@ -73,23 +60,26 @@ export const FunctionCallEntry$inboundSchema: z.ZodType<
|
|
|
73
60
|
tool_call_id: z.string(),
|
|
74
61
|
name: z.string(),
|
|
75
62
|
arguments: FunctionCallEntryArguments$inboundSchema,
|
|
63
|
+
confirmation_status: z.nullable(ConfirmationStatus$inboundSchema).optional(),
|
|
76
64
|
}).transform((v) => {
|
|
77
65
|
return remap$(v, {
|
|
78
66
|
"created_at": "createdAt",
|
|
79
67
|
"completed_at": "completedAt",
|
|
80
68
|
"tool_call_id": "toolCallId",
|
|
69
|
+
"confirmation_status": "confirmationStatus",
|
|
81
70
|
});
|
|
82
71
|
});
|
|
83
72
|
/** @internal */
|
|
84
73
|
export type FunctionCallEntry$Outbound = {
|
|
85
|
-
object:
|
|
86
|
-
type:
|
|
74
|
+
object: "entry";
|
|
75
|
+
type: "function.call";
|
|
87
76
|
created_at?: string | undefined;
|
|
88
77
|
completed_at?: string | null | undefined;
|
|
89
78
|
id?: string | undefined;
|
|
90
79
|
tool_call_id: string;
|
|
91
80
|
name: string;
|
|
92
81
|
arguments: FunctionCallEntryArguments$Outbound;
|
|
82
|
+
confirmation_status?: string | null | undefined;
|
|
93
83
|
};
|
|
94
84
|
|
|
95
85
|
/** @internal */
|
|
@@ -98,19 +88,21 @@ export const FunctionCallEntry$outboundSchema: z.ZodType<
|
|
|
98
88
|
z.ZodTypeDef,
|
|
99
89
|
FunctionCallEntry
|
|
100
90
|
> = z.object({
|
|
101
|
-
object:
|
|
102
|
-
type:
|
|
91
|
+
object: z.literal("entry").default("entry" as const),
|
|
92
|
+
type: z.literal("function.call").default("function.call" as const),
|
|
103
93
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
104
94
|
completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
105
95
|
id: z.string().optional(),
|
|
106
96
|
toolCallId: z.string(),
|
|
107
97
|
name: z.string(),
|
|
108
98
|
arguments: FunctionCallEntryArguments$outboundSchema,
|
|
99
|
+
confirmationStatus: z.nullable(ConfirmationStatus$outboundSchema).optional(),
|
|
109
100
|
}).transform((v) => {
|
|
110
101
|
return remap$(v, {
|
|
111
102
|
createdAt: "created_at",
|
|
112
103
|
completedAt: "completed_at",
|
|
113
104
|
toolCallId: "tool_call_id",
|
|
105
|
+
confirmationStatus: "confirmation_status",
|
|
114
106
|
});
|
|
115
107
|
});
|
|
116
108
|
|
|
@@ -9,25 +9,30 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
13
|
-
|
|
12
|
+
export const FunctionCallEventConfirmationStatus = {
|
|
13
|
+
Pending: "pending",
|
|
14
|
+
Allowed: "allowed",
|
|
15
|
+
Denied: "denied",
|
|
14
16
|
} as const;
|
|
15
|
-
export type
|
|
17
|
+
export type FunctionCallEventConfirmationStatus = ClosedEnum<
|
|
18
|
+
typeof FunctionCallEventConfirmationStatus
|
|
19
|
+
>;
|
|
16
20
|
|
|
17
21
|
export type FunctionCallEvent = {
|
|
18
|
-
type
|
|
22
|
+
type?: "function.call.delta" | undefined;
|
|
19
23
|
createdAt?: Date | undefined;
|
|
20
24
|
outputIndex: number | undefined;
|
|
21
25
|
id: string;
|
|
22
26
|
name: string;
|
|
23
27
|
toolCallId: string;
|
|
24
28
|
arguments: string;
|
|
29
|
+
confirmationStatus?: FunctionCallEventConfirmationStatus | null | undefined;
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
/** @internal */
|
|
28
|
-
export const
|
|
29
|
-
typeof
|
|
30
|
-
> = z.nativeEnum(
|
|
33
|
+
export const FunctionCallEventConfirmationStatus$inboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof FunctionCallEventConfirmationStatus
|
|
35
|
+
> = z.nativeEnum(FunctionCallEventConfirmationStatus);
|
|
31
36
|
|
|
32
37
|
/** @internal */
|
|
33
38
|
export const FunctionCallEvent$inboundSchema: z.ZodType<
|
|
@@ -35,7 +40,7 @@ export const FunctionCallEvent$inboundSchema: z.ZodType<
|
|
|
35
40
|
z.ZodTypeDef,
|
|
36
41
|
unknown
|
|
37
42
|
> = z.object({
|
|
38
|
-
type:
|
|
43
|
+
type: z.literal("function.call.delta").default("function.call.delta"),
|
|
39
44
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
40
45
|
.optional(),
|
|
41
46
|
output_index: z.number().int().default(0),
|
|
@@ -43,11 +48,15 @@ export const FunctionCallEvent$inboundSchema: z.ZodType<
|
|
|
43
48
|
name: z.string(),
|
|
44
49
|
tool_call_id: z.string(),
|
|
45
50
|
arguments: z.string(),
|
|
51
|
+
confirmation_status: z.nullable(
|
|
52
|
+
FunctionCallEventConfirmationStatus$inboundSchema,
|
|
53
|
+
).optional(),
|
|
46
54
|
}).transform((v) => {
|
|
47
55
|
return remap$(v, {
|
|
48
56
|
"created_at": "createdAt",
|
|
49
57
|
"output_index": "outputIndex",
|
|
50
58
|
"tool_call_id": "toolCallId",
|
|
59
|
+
"confirmation_status": "confirmationStatus",
|
|
51
60
|
});
|
|
52
61
|
});
|
|
53
62
|
|
|
@@ -5,27 +5,12 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
export const FunctionResultEntryObject = {
|
|
13
|
-
Entry: "entry",
|
|
14
|
-
} as const;
|
|
15
|
-
export type FunctionResultEntryObject = ClosedEnum<
|
|
16
|
-
typeof FunctionResultEntryObject
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
export const FunctionResultEntryType = {
|
|
20
|
-
FunctionResult: "function.result",
|
|
21
|
-
} as const;
|
|
22
|
-
export type FunctionResultEntryType = ClosedEnum<
|
|
23
|
-
typeof FunctionResultEntryType
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
11
|
export type FunctionResultEntry = {
|
|
27
|
-
object?:
|
|
28
|
-
type?:
|
|
12
|
+
object?: "entry" | undefined;
|
|
13
|
+
type?: "function.result" | undefined;
|
|
29
14
|
createdAt?: Date | undefined;
|
|
30
15
|
completedAt?: Date | null | undefined;
|
|
31
16
|
id?: string | undefined;
|
|
@@ -33,32 +18,14 @@ export type FunctionResultEntry = {
|
|
|
33
18
|
result: string;
|
|
34
19
|
};
|
|
35
20
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const FunctionResultEntryObject$inboundSchema: z.ZodNativeEnum<
|
|
38
|
-
typeof FunctionResultEntryObject
|
|
39
|
-
> = z.nativeEnum(FunctionResultEntryObject);
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const FunctionResultEntryObject$outboundSchema: z.ZodNativeEnum<
|
|
42
|
-
typeof FunctionResultEntryObject
|
|
43
|
-
> = FunctionResultEntryObject$inboundSchema;
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const FunctionResultEntryType$inboundSchema: z.ZodNativeEnum<
|
|
47
|
-
typeof FunctionResultEntryType
|
|
48
|
-
> = z.nativeEnum(FunctionResultEntryType);
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const FunctionResultEntryType$outboundSchema: z.ZodNativeEnum<
|
|
51
|
-
typeof FunctionResultEntryType
|
|
52
|
-
> = FunctionResultEntryType$inboundSchema;
|
|
53
|
-
|
|
54
21
|
/** @internal */
|
|
55
22
|
export const FunctionResultEntry$inboundSchema: z.ZodType<
|
|
56
23
|
FunctionResultEntry,
|
|
57
24
|
z.ZodTypeDef,
|
|
58
25
|
unknown
|
|
59
26
|
> = z.object({
|
|
60
|
-
object:
|
|
61
|
-
type:
|
|
27
|
+
object: z.literal("entry").default("entry"),
|
|
28
|
+
type: z.literal("function.result").default("function.result"),
|
|
62
29
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
63
30
|
.optional(),
|
|
64
31
|
completed_at: z.nullable(
|
|
@@ -76,8 +43,8 @@ export const FunctionResultEntry$inboundSchema: z.ZodType<
|
|
|
76
43
|
});
|
|
77
44
|
/** @internal */
|
|
78
45
|
export type FunctionResultEntry$Outbound = {
|
|
79
|
-
object:
|
|
80
|
-
type:
|
|
46
|
+
object: "entry";
|
|
47
|
+
type: "function.result";
|
|
81
48
|
created_at?: string | undefined;
|
|
82
49
|
completed_at?: string | null | undefined;
|
|
83
50
|
id?: string | undefined;
|
|
@@ -91,8 +58,8 @@ export const FunctionResultEntry$outboundSchema: z.ZodType<
|
|
|
91
58
|
z.ZodTypeDef,
|
|
92
59
|
FunctionResultEntry
|
|
93
60
|
> = z.object({
|
|
94
|
-
object:
|
|
95
|
-
type:
|
|
61
|
+
object: z.literal("entry").default("entry" as const),
|
|
62
|
+
type: z.literal("function.result").default("function.result" as const),
|
|
96
63
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
97
64
|
completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
98
65
|
id: z.string().optional(),
|
|
@@ -14,24 +14,23 @@ import {
|
|
|
14
14
|
FunctionT$outboundSchema,
|
|
15
15
|
} from "./function.js";
|
|
16
16
|
|
|
17
|
-
export const
|
|
17
|
+
export const Type = {
|
|
18
18
|
Function: "function",
|
|
19
19
|
} as const;
|
|
20
|
-
export type
|
|
20
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
21
21
|
|
|
22
22
|
export type FunctionTool = {
|
|
23
|
-
type?:
|
|
23
|
+
type?: Type | undefined;
|
|
24
24
|
function: FunctionT;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/** @internal */
|
|
28
|
-
export const
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
29
|
+
Type,
|
|
30
|
+
);
|
|
31
31
|
/** @internal */
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
> = FunctionToolType$inboundSchema;
|
|
32
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
33
|
+
Type$inboundSchema;
|
|
35
34
|
|
|
36
35
|
/** @internal */
|
|
37
36
|
export const FunctionTool$inboundSchema: z.ZodType<
|
|
@@ -39,7 +38,7 @@ export const FunctionTool$inboundSchema: z.ZodType<
|
|
|
39
38
|
z.ZodTypeDef,
|
|
40
39
|
unknown
|
|
41
40
|
> = z.object({
|
|
42
|
-
type:
|
|
41
|
+
type: Type$inboundSchema.default("function"),
|
|
43
42
|
function: FunctionT$inboundSchema,
|
|
44
43
|
});
|
|
45
44
|
/** @internal */
|
|
@@ -54,7 +53,7 @@ export const FunctionTool$outboundSchema: z.ZodType<
|
|
|
54
53
|
z.ZodTypeDef,
|
|
55
54
|
FunctionTool
|
|
56
55
|
> = z.object({
|
|
57
|
-
type:
|
|
56
|
+
type: Type$outboundSchema.default("function"),
|
|
58
57
|
function: FunctionT$outboundSchema,
|
|
59
58
|
});
|
|
60
59
|
|