@mistralai/mistralai 2.0.0-alpha.1 → 2.1.0
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 +51 -37
- package/RUNTIMES.md +1 -1
- package/esm/extra/structChat.d.ts.map +1 -1
- package/esm/extra/structChat.js +72 -5
- package/esm/extra/structChat.js.map +1 -1
- package/esm/funcs/audioSpeechComplete.d.ts +22 -0
- package/esm/funcs/audioSpeechComplete.d.ts.map +1 -0
- package/esm/funcs/audioSpeechComplete.js +88 -0
- package/esm/funcs/audioSpeechComplete.js.map +1 -0
- package/esm/funcs/audioVoicesCreate.d.ts +18 -0
- package/esm/funcs/audioVoicesCreate.d.ts.map +1 -0
- package/esm/funcs/audioVoicesCreate.js +83 -0
- package/esm/funcs/audioVoicesCreate.js.map +1 -0
- package/esm/funcs/audioVoicesDelete.d.ts +19 -0
- package/esm/funcs/audioVoicesDelete.d.ts.map +1 -0
- package/esm/funcs/audioVoicesDelete.js +90 -0
- package/esm/funcs/audioVoicesDelete.js.map +1 -0
- package/esm/funcs/audioVoicesGet.d.ts +19 -0
- package/esm/funcs/audioVoicesGet.d.ts.map +1 -0
- package/esm/funcs/audioVoicesGet.js +89 -0
- package/esm/funcs/audioVoicesGet.js.map +1 -0
- package/esm/funcs/audioVoicesGetSampleAudio.d.ts +18 -0
- package/esm/funcs/audioVoicesGetSampleAudio.d.ts.map +1 -0
- package/esm/funcs/audioVoicesGetSampleAudio.js +91 -0
- package/esm/funcs/audioVoicesGetSampleAudio.js.map +1 -0
- package/esm/funcs/audioVoicesList.d.ts +19 -0
- package/esm/funcs/audioVoicesList.d.ts.map +1 -0
- package/esm/funcs/audioVoicesList.js +89 -0
- package/esm/funcs/audioVoicesList.js.map +1 -0
- package/esm/funcs/audioVoicesUpdate.d.ts +19 -0
- package/esm/funcs/audioVoicesUpdate.d.ts.map +1 -0
- package/esm/funcs/audioVoicesUpdate.js +93 -0
- package/esm/funcs/audioVoicesUpdate.js.map +1 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.d.ts +19 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.js +90 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.js.map +1 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.d.ts +16 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.d.ts.map +1 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.js +91 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/agent.d.ts +28 -5
- package/esm/models/components/agent.d.ts.map +1 -1
- package/esm/models/components/agent.js +14 -13
- package/esm/models/components/agent.js.map +1 -1
- package/esm/models/components/agentconversation.d.ts +2 -3
- package/esm/models/components/agentconversation.d.ts.map +1 -1
- package/esm/models/components/agentconversation.js +2 -1
- package/esm/models/components/agentconversation.js.map +1 -1
- package/esm/models/components/agentscompletionrequest.d.ts +28 -2
- package/esm/models/components/agentscompletionrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionrequest.js +66 -13
- package/esm/models/components/agentscompletionrequest.js.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.d.ts +28 -2
- package/esm/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.js +66 -13
- package/esm/models/components/agentscompletionstreamrequest.js.map +1 -1
- package/esm/models/components/authurlresponse.d.ts +11 -0
- package/esm/models/components/authurlresponse.d.ts.map +1 -0
- package/esm/models/components/authurlresponse.js +20 -0
- package/esm/models/components/authurlresponse.js.map +1 -0
- package/esm/models/components/basefielddefinition.d.ts +4 -4
- package/esm/models/components/basefielddefinition.d.ts.map +1 -1
- package/esm/models/components/basefielddefinition.js +3 -4
- package/esm/models/components/basefielddefinition.js.map +1 -1
- package/esm/models/components/basemodelcard.d.ts +6 -0
- package/esm/models/components/basemodelcard.d.ts.map +1 -1
- package/esm/models/components/basemodelcard.js.map +1 -1
- package/esm/models/components/chatcompletionrequest.d.ts +31 -2
- package/esm/models/components/chatcompletionrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionrequest.js +67 -14
- package/esm/models/components/chatcompletionrequest.js.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.d.ts +31 -2
- package/esm/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.js +67 -14
- package/esm/models/components/chatcompletionstreamrequest.js.map +1 -1
- package/esm/models/components/codeinterpretertool.d.ts +11 -2
- package/esm/models/components/codeinterpretertool.d.ts.map +1 -1
- package/esm/models/components/codeinterpretertool.js +9 -2
- package/esm/models/components/codeinterpretertool.js.map +1 -1
- package/esm/models/components/completionargs.d.ts +3 -0
- package/esm/models/components/completionargs.d.ts.map +1 -1
- package/esm/models/components/completionargs.js +5 -0
- package/esm/models/components/completionargs.js.map +1 -1
- package/esm/models/components/conversationrequest.d.ts +55 -10
- package/esm/models/components/conversationrequest.d.ts.map +1 -1
- package/esm/models/components/conversationrequest.js +14 -13
- package/esm/models/components/conversationrequest.js.map +1 -1
- package/esm/models/components/conversationresponse.d.ts +3 -5
- package/esm/models/components/conversationresponse.d.ts.map +1 -1
- package/esm/models/components/conversationresponse.js +1 -7
- package/esm/models/components/conversationresponse.js.map +1 -1
- package/esm/models/components/conversationrestartrequest.d.ts +3 -6
- package/esm/models/components/conversationrestartrequest.d.ts.map +1 -1
- package/esm/models/components/conversationrestartrequest.js +2 -1
- package/esm/models/components/conversationrestartrequest.js.map +1 -1
- package/esm/models/components/conversationrestartstreamrequest.d.ts +3 -6
- package/esm/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
- package/esm/models/components/conversationrestartstreamrequest.js +2 -1
- package/esm/models/components/conversationrestartstreamrequest.js.map +1 -1
- package/esm/models/components/conversationstreamrequest.d.ts +55 -10
- package/esm/models/components/conversationstreamrequest.d.ts.map +1 -1
- package/esm/models/components/conversationstreamrequest.js +14 -13
- package/esm/models/components/conversationstreamrequest.js.map +1 -1
- package/esm/models/components/createagentrequest.d.ts +55 -10
- package/esm/models/components/createagentrequest.d.ts.map +1 -1
- package/esm/models/components/createagentrequest.js +14 -13
- package/esm/models/components/createagentrequest.js.map +1 -1
- package/esm/models/components/customconnector.d.ts +11 -2
- package/esm/models/components/customconnector.d.ts.map +1 -1
- package/esm/models/components/customconnector.js +9 -2
- package/esm/models/components/customconnector.js.map +1 -1
- package/esm/models/components/documentlibrarytool.d.ts +11 -2
- package/esm/models/components/documentlibrarytool.d.ts.map +1 -1
- package/esm/models/components/documentlibrarytool.js +9 -2
- package/esm/models/components/documentlibrarytool.js.map +1 -1
- package/esm/models/components/ftmodelcard.d.ts +6 -0
- package/esm/models/components/ftmodelcard.d.ts.map +1 -1
- package/esm/models/components/ftmodelcard.js.map +1 -1
- package/esm/models/components/imagegenerationtool.d.ts +11 -2
- package/esm/models/components/imagegenerationtool.d.ts.map +1 -1
- package/esm/models/components/imagegenerationtool.js +9 -2
- package/esm/models/components/imagegenerationtool.js.map +1 -1
- package/esm/models/components/imageurlchunk.d.ts +1 -1
- package/esm/models/components/index.d.ts +20 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +20 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/instructrequest.d.ts +3 -0
- package/esm/models/components/instructrequest.d.ts.map +1 -1
- package/esm/models/components/instructrequest.js.map +1 -1
- package/esm/models/components/internalmetadata.d.ts +42 -0
- package/esm/models/components/internalmetadata.d.ts.map +1 -0
- package/esm/models/components/internalmetadata.js +56 -0
- package/esm/models/components/internalmetadata.js.map +1 -0
- package/esm/models/components/judgeconversationrequest.d.ts +22 -0
- package/esm/models/components/judgeconversationrequest.d.ts.map +1 -0
- package/esm/models/components/judgeconversationrequest.js +14 -0
- package/esm/models/components/judgeconversationrequest.js.map +1 -0
- package/esm/models/components/messagetokens.d.ts +17 -0
- package/esm/models/components/messagetokens.d.ts.map +1 -0
- package/esm/models/components/messagetokens.js +25 -0
- package/esm/models/components/messagetokens.js.map +1 -0
- package/esm/models/components/metadatadict.d.ts +23 -0
- package/esm/models/components/metadatadict.d.ts.map +1 -0
- package/esm/models/components/metadatadict.js +23 -0
- package/esm/models/components/metadatadict.js.map +1 -0
- package/esm/models/components/mirrorconfig.d.ts +24 -0
- package/esm/models/components/mirrorconfig.d.ts.map +1 -0
- package/esm/models/components/mirrorconfig.js +32 -0
- package/esm/models/components/mirrorconfig.js.map +1 -0
- package/esm/models/components/mirrorsource.d.ts +28 -0
- package/esm/models/components/mirrorsource.d.ts.map +1 -0
- package/esm/models/components/mirrorsource.js +43 -0
- package/esm/models/components/mirrorsource.js.map +1 -0
- package/esm/models/components/modelcapabilities.d.ts +9 -0
- package/esm/models/components/modelcapabilities.d.ts.map +1 -1
- package/esm/models/components/modelcapabilities.js +5 -0
- package/esm/models/components/modelcapabilities.js.map +1 -1
- package/esm/models/components/modelconversation.d.ts +28 -5
- package/esm/models/components/modelconversation.d.ts.map +1 -1
- package/esm/models/components/modelconversation.js +14 -13
- package/esm/models/components/modelconversation.js.map +1 -1
- package/esm/models/components/prompttokensdetails.d.ts +15 -0
- package/esm/models/components/prompttokensdetails.d.ts.map +1 -0
- package/esm/models/components/prompttokensdetails.js +21 -0
- package/esm/models/components/prompttokensdetails.js.map +1 -0
- package/esm/models/components/reasoningeffort.d.ts +12 -0
- package/esm/models/components/reasoningeffort.d.ts.map +1 -0
- package/esm/models/components/reasoningeffort.js +14 -0
- package/esm/models/components/reasoningeffort.js.map +1 -0
- package/esm/models/components/referencechunk.d.ts +11 -2
- package/esm/models/components/referencechunk.d.ts.map +1 -1
- package/esm/models/components/referencechunk.js +13 -2
- package/esm/models/components/referencechunk.js.map +1 -1
- package/esm/models/components/roles.d.ts +12 -0
- package/esm/models/components/roles.d.ts.map +1 -0
- package/esm/models/components/roles.js +15 -0
- package/esm/models/components/roles.js.map +1 -0
- package/esm/models/components/speechoutputformat.d.ts +13 -0
- package/esm/models/components/speechoutputformat.d.ts.map +1 -0
- package/esm/models/components/speechoutputformat.js +15 -0
- package/esm/models/components/speechoutputformat.js.map +1 -0
- package/esm/models/components/speechrequest.d.ts +37 -0
- package/esm/models/components/speechrequest.d.ts.map +1 -0
- package/esm/models/components/speechrequest.js +30 -0
- package/esm/models/components/speechrequest.js.map +1 -0
- package/esm/models/components/speechstreamaudiodelta.d.ts +11 -0
- package/esm/models/components/speechstreamaudiodelta.d.ts.map +1 -0
- package/esm/models/components/speechstreamaudiodelta.js +20 -0
- package/esm/models/components/speechstreamaudiodelta.js.map +1 -0
- package/esm/models/components/speechstreamdone.d.ts +12 -0
- package/esm/models/components/speechstreamdone.d.ts.map +1 -0
- package/esm/models/components/speechstreamdone.js +16 -0
- package/esm/models/components/speechstreamdone.js.map +1 -0
- package/esm/models/components/speechstreameventtypes.d.ts +10 -0
- package/esm/models/components/speechstreameventtypes.d.ts.map +1 -0
- package/esm/models/components/speechstreameventtypes.js +12 -0
- package/esm/models/components/speechstreameventtypes.js.map +1 -0
- package/esm/models/components/updateagentrequest.d.ts +55 -10
- package/esm/models/components/updateagentrequest.d.ts.map +1 -1
- package/esm/models/components/updateagentrequest.js +14 -13
- package/esm/models/components/updateagentrequest.js.map +1 -1
- package/esm/models/components/usageinfodollardefs.d.ts +18 -0
- package/esm/models/components/usageinfodollardefs.d.ts.map +1 -0
- package/esm/models/components/usageinfodollardefs.js +36 -0
- package/esm/models/components/usageinfodollardefs.js.map +1 -0
- package/esm/models/components/voicecreaterequest.d.ts +39 -0
- package/esm/models/components/voicecreaterequest.d.ts.map +1 -0
- package/esm/models/components/voicecreaterequest.js +29 -0
- package/esm/models/components/voicecreaterequest.js.map +1 -0
- package/esm/models/components/voicelistresponse.d.ts +18 -0
- package/esm/models/components/voicelistresponse.d.ts.map +1 -0
- package/esm/models/components/voicelistresponse.js +25 -0
- package/esm/models/components/voicelistresponse.js.map +1 -0
- package/esm/models/components/voiceresponse.d.ts +23 -0
- package/esm/models/components/voiceresponse.d.ts.map +1 -0
- package/esm/models/components/voiceresponse.js +32 -0
- package/esm/models/components/voiceresponse.js.map +1 -0
- package/esm/models/components/voiceupdaterequest.d.ts +23 -0
- package/esm/models/components/voiceupdaterequest.d.ts.map +1 -0
- package/esm/models/components/voiceupdaterequest.js +17 -0
- package/esm/models/components/voiceupdaterequest.js.map +1 -0
- package/esm/models/components/websearchpremiumtool.d.ts +11 -2
- package/esm/models/components/websearchpremiumtool.d.ts.map +1 -1
- package/esm/models/components/websearchpremiumtool.js +9 -2
- package/esm/models/components/websearchpremiumtool.js.map +1 -1
- package/esm/models/components/websearchtool.d.ts +11 -2
- package/esm/models/components/websearchtool.d.ts.map +1 -1
- package/esm/models/components/websearchtool.js +9 -2
- package/esm/models/components/websearchtool.js.map +1 -1
- package/esm/models/operations/connectorgetauthurlv1.d.ts +14 -0
- package/esm/models/operations/connectorgetauthurlv1.d.ts.map +1 -0
- package/esm/models/operations/connectorgetauthurlv1.js +20 -0
- package/esm/models/operations/connectorgetauthurlv1.js.map +1 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.d.ts +12 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.d.ts.map +1 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.js +18 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.js.map +1 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.d.ts +12 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.d.ts.map +1 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.js +19 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.js.map +1 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.d.ts +12 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.d.ts.map +1 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.js +18 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.js.map +1 -0
- package/esm/models/operations/index.d.ts +8 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +8 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.d.ts +15 -0
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.d.ts.map +1 -0
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.js +22 -0
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.js.map +1 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.d.ts +20 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.d.ts.map +1 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.js +14 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.js.map +1 -0
- package/esm/models/operations/speechv1audiospeechpost.d.ts +37 -0
- package/esm/models/operations/speechv1audiospeechpost.d.ts.map +1 -0
- package/esm/models/operations/speechv1audiospeechpost.js +70 -0
- package/esm/models/operations/speechv1audiospeechpost.js.map +1 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.d.ts +15 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.d.ts.map +1 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.js +21 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.js.map +1 -0
- package/esm/sdk/audio.d.ts +6 -0
- package/esm/sdk/audio.d.ts.map +1 -1
- package/esm/sdk/audio.js +10 -0
- package/esm/sdk/audio.js.map +1 -1
- package/esm/sdk/connectors.d.ts +7 -0
- package/esm/sdk/connectors.d.ts.map +1 -1
- package/esm/sdk/connectors.js +10 -0
- package/esm/sdk/connectors.js.map +1 -1
- package/esm/sdk/judges.d.ts +4 -0
- package/esm/sdk/judges.d.ts.map +1 -1
- package/esm/sdk/judges.js +7 -0
- package/esm/sdk/judges.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/speech.d.ts +14 -0
- package/esm/sdk/speech.d.ts.map +1 -0
- package/esm/sdk/speech.js +17 -0
- package/esm/sdk/speech.js.map +1 -0
- package/esm/sdk/voices.d.ts +48 -0
- package/esm/sdk/voices.d.ts.map +1 -0
- package/esm/sdk/voices.js +69 -0
- package/esm/sdk/voices.js.map +1 -0
- package/examples/src/gcp/async_chat_no_streaming.ts +2 -2
- package/jsr.json +1 -1
- package/package.json +8 -3
- package/packages/mistralai-gcp/examples/chatComplete.example.ts +3 -3
- package/packages/mistralai-gcp/src/core.ts +1 -1
- package/packages/mistralai-gcp/src/funcs/chatComplete.ts +7 -7
- package/packages/mistralai-gcp/src/funcs/chatStream.ts +7 -7
- package/packages/mistralai-gcp/src/funcs/fimComplete.ts +7 -7
- package/packages/mistralai-gcp/src/funcs/fimStream.ts +7 -7
- package/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +2 -2
- package/packages/mistralai-gcp/src/models/errors/mistralgoogleclouderror.ts +2 -2
- package/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +2 -2
- package/packages/mistralai-gcp/src/models/errors/sdkerror.ts +2 -2
- package/packages/mistralai-gcp/src/sdk/sdk.ts +6 -5
- package/src/extra/structChat.ts +71 -5
- package/src/funcs/audioSpeechComplete.ts +175 -0
- package/src/funcs/audioVoicesCreate.ts +170 -0
- package/src/funcs/audioVoicesDelete.ts +179 -0
- package/src/funcs/audioVoicesGet.ts +180 -0
- package/src/funcs/audioVoicesGetSampleAudio.ts +180 -0
- package/src/funcs/audioVoicesList.ts +178 -0
- package/src/funcs/audioVoicesUpdate.ts +182 -0
- package/src/funcs/betaConnectorsGetAuthUrl.ts +186 -0
- package/src/funcs/betaObservabilityJudgesJudgeConversation.ts +188 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +51 -26
- package/src/models/components/agentconversation.ts +3 -2
- package/src/models/components/agentscompletionrequest.ts +201 -15
- package/src/models/components/agentscompletionstreamrequest.ts +201 -15
- package/src/models/components/authurlresponse.ts +38 -0
- package/src/models/components/basefielddefinition.ts +8 -6
- package/src/models/components/basemodelcard.ts +6 -0
- package/src/models/components/chatcompletionrequest.ts +205 -16
- package/src/models/components/chatcompletionstreamrequest.ts +205 -16
- package/src/models/components/codeinterpretertool.ts +21 -4
- package/src/models/components/completionargs.ts +11 -0
- package/src/models/components/conversationrequest.ts +66 -39
- package/src/models/components/conversationresponse.ts +2 -20
- package/src/models/components/conversationrestartrequest.ts +8 -3
- package/src/models/components/conversationrestartstreamrequest.ts +8 -3
- package/src/models/components/conversationstreamrequest.ts +66 -39
- package/src/models/components/createagentrequest.ts +66 -39
- package/src/models/components/customconnector.ts +19 -4
- package/src/models/components/documentlibrarytool.ts +21 -4
- package/src/models/components/ftmodelcard.ts +6 -0
- package/src/models/components/imagegenerationtool.ts +21 -4
- package/src/models/components/imageurlchunk.ts +1 -1
- package/src/models/components/index.ts +20 -0
- package/src/models/components/instructrequest.ts +3 -0
- package/src/models/components/internalmetadata.ts +126 -0
- package/src/models/components/judgeconversationrequest.ts +34 -0
- package/src/models/components/messagetokens.ts +45 -0
- package/src/models/components/metadatadict.ts +55 -0
- package/src/models/components/mirrorconfig.ts +65 -0
- package/src/models/components/mirrorsource.ts +76 -0
- package/src/models/components/modelcapabilities.ts +14 -0
- package/src/models/components/modelconversation.ts +51 -26
- package/src/models/components/prompttokensdetails.ts +42 -0
- package/src/models/components/reasoningeffort.ts +25 -0
- package/src/models/components/referencechunk.ts +32 -4
- package/src/models/components/roles.ts +20 -0
- package/src/models/components/speechoutputformat.ts +21 -0
- package/src/models/components/speechrequest.ts +74 -0
- package/src/models/components/speechstreamaudiodelta.ts +38 -0
- package/src/models/components/speechstreamdone.ts +37 -0
- package/src/models/components/speechstreameventtypes.ts +20 -0
- package/src/models/components/updateagentrequest.ts +66 -39
- package/src/models/components/usageinfodollardefs.ts +63 -0
- package/src/models/components/voicecreaterequest.ts +74 -0
- package/src/models/components/voicelistresponse.ts +49 -0
- package/src/models/components/voiceresponse.ts +59 -0
- package/src/models/components/voiceupdaterequest.ts +46 -0
- package/src/models/components/websearchpremiumtool.ts +21 -4
- package/src/models/components/websearchtool.ts +19 -4
- package/src/models/operations/connectorgetauthurlv1.ts +42 -0
- package/src/models/operations/deletevoicev1audiovoicesvoiceiddelete.ts +40 -0
- package/src/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.ts +39 -0
- package/src/models/operations/getvoicev1audiovoicesvoiceidget.ts +39 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.ts +49 -0
- package/src/models/operations/listvoicesv1audiovoicesget.ts +42 -0
- package/src/models/operations/speechv1audiospeechpost.ts +146 -0
- package/src/models/operations/updatevoicev1audiovoicesvoiceidpatch.ts +45 -0
- package/src/sdk/audio.ts +12 -0
- package/src/sdk/connectors.ts +18 -0
- package/src/sdk/judges.ts +16 -0
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/speech.ts +31 -0
- package/src/sdk/voices.ts +119 -0
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { AssistantMessage, AssistantMessage$Outbound } from "./assistantmessage.js";
|
|
3
|
+
import { CodeInterpreterTool, CodeInterpreterTool$Outbound } from "./codeinterpretertool.js";
|
|
4
|
+
import { CustomConnector, CustomConnector$Outbound } from "./customconnector.js";
|
|
5
|
+
import { DocumentLibraryTool, DocumentLibraryTool$Outbound } from "./documentlibrarytool.js";
|
|
6
|
+
import { GuardrailConfig, GuardrailConfig$Outbound } from "./guardrailconfig.js";
|
|
7
|
+
import { ImageGenerationTool, ImageGenerationTool$Outbound } from "./imagegenerationtool.js";
|
|
3
8
|
import { MistralPromptMode } from "./mistralpromptmode.js";
|
|
4
9
|
import { Prediction, Prediction$Outbound } from "./prediction.js";
|
|
10
|
+
import { ReasoningEffort } from "./reasoningeffort.js";
|
|
5
11
|
import { ResponseFormat, ResponseFormat$Outbound } from "./responseformat.js";
|
|
6
12
|
import { SystemMessage, SystemMessage$Outbound } from "./systemmessage.js";
|
|
7
13
|
import { Tool, Tool$Outbound } from "./tool.js";
|
|
@@ -9,6 +15,8 @@ import { ToolChoice, ToolChoice$Outbound } from "./toolchoice.js";
|
|
|
9
15
|
import { ToolChoiceEnum } from "./toolchoiceenum.js";
|
|
10
16
|
import { ToolMessage, ToolMessage$Outbound } from "./toolmessage.js";
|
|
11
17
|
import { UserMessage, UserMessage$Outbound } from "./usermessage.js";
|
|
18
|
+
import { WebSearchPremiumTool, WebSearchPremiumTool$Outbound } from "./websearchpremiumtool.js";
|
|
19
|
+
import { WebSearchTool, WebSearchTool$Outbound } from "./websearchtool.js";
|
|
12
20
|
/**
|
|
13
21
|
* Stop generation if this token is detected. Or if one of these tokens is detected when providing an array
|
|
14
22
|
*/
|
|
@@ -16,6 +24,11 @@ export type ChatCompletionRequestStop = string | Array<string>;
|
|
|
16
24
|
export type ChatCompletionRequestMessage = (AssistantMessage & {
|
|
17
25
|
role: "assistant";
|
|
18
26
|
}) | SystemMessage | ToolMessage | UserMessage;
|
|
27
|
+
export type ChatCompletionRequestTools1 = DocumentLibraryTool | CustomConnector | Tool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool;
|
|
28
|
+
/**
|
|
29
|
+
* A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
30
|
+
*/
|
|
31
|
+
export type ChatCompletionRequestTools2 = Array<DocumentLibraryTool | CustomConnector | Tool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool> | Array<string>;
|
|
19
32
|
/**
|
|
20
33
|
* Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
|
|
21
34
|
*/
|
|
@@ -65,7 +78,7 @@ export type ChatCompletionRequest = {
|
|
|
65
78
|
/**
|
|
66
79
|
* A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
67
80
|
*/
|
|
68
|
-
tools?: Array<Tool> | null | undefined;
|
|
81
|
+
tools?: Array<DocumentLibraryTool | CustomConnector | Tool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool> | Array<string> | null | undefined;
|
|
69
82
|
/**
|
|
70
83
|
* Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
|
|
71
84
|
*/
|
|
@@ -90,14 +103,17 @@ export type ChatCompletionRequest = {
|
|
|
90
103
|
* Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel.
|
|
91
104
|
*/
|
|
92
105
|
parallelToolCalls?: boolean | undefined;
|
|
106
|
+
reasoningEffort?: ReasoningEffort | null | undefined;
|
|
93
107
|
/**
|
|
94
108
|
* Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
|
|
95
109
|
*/
|
|
96
110
|
promptMode?: MistralPromptMode | null | undefined;
|
|
111
|
+
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
97
112
|
/**
|
|
98
113
|
* Whether to inject a safety prompt before all conversations.
|
|
99
114
|
*/
|
|
100
115
|
safePrompt?: boolean | undefined;
|
|
116
|
+
[additionalProperties: string]: unknown;
|
|
101
117
|
};
|
|
102
118
|
/** @internal */
|
|
103
119
|
export type ChatCompletionRequestStop$Outbound = string | Array<string>;
|
|
@@ -112,6 +128,16 @@ export type ChatCompletionRequestMessage$Outbound = (AssistantMessage$Outbound &
|
|
|
112
128
|
export declare const ChatCompletionRequestMessage$outboundSchema: z.ZodType<ChatCompletionRequestMessage$Outbound, ChatCompletionRequestMessage>;
|
|
113
129
|
export declare function chatCompletionRequestMessageToJSON(chatCompletionRequestMessage: ChatCompletionRequestMessage): string;
|
|
114
130
|
/** @internal */
|
|
131
|
+
export type ChatCompletionRequestTools1$Outbound = DocumentLibraryTool$Outbound | CustomConnector$Outbound | Tool$Outbound | WebSearchTool$Outbound | WebSearchPremiumTool$Outbound | CodeInterpreterTool$Outbound | ImageGenerationTool$Outbound;
|
|
132
|
+
/** @internal */
|
|
133
|
+
export declare const ChatCompletionRequestTools1$outboundSchema: z.ZodType<ChatCompletionRequestTools1$Outbound, ChatCompletionRequestTools1>;
|
|
134
|
+
export declare function chatCompletionRequestTools1ToJSON(chatCompletionRequestTools1: ChatCompletionRequestTools1): string;
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type ChatCompletionRequestTools2$Outbound = Array<DocumentLibraryTool$Outbound | CustomConnector$Outbound | Tool$Outbound | WebSearchTool$Outbound | WebSearchPremiumTool$Outbound | CodeInterpreterTool$Outbound | ImageGenerationTool$Outbound> | Array<string>;
|
|
137
|
+
/** @internal */
|
|
138
|
+
export declare const ChatCompletionRequestTools2$outboundSchema: z.ZodType<ChatCompletionRequestTools2$Outbound, ChatCompletionRequestTools2>;
|
|
139
|
+
export declare function chatCompletionRequestTools2ToJSON(chatCompletionRequestTools2: ChatCompletionRequestTools2): string;
|
|
140
|
+
/** @internal */
|
|
115
141
|
export type ChatCompletionRequestToolChoice$Outbound = ToolChoice$Outbound | string;
|
|
116
142
|
/** @internal */
|
|
117
143
|
export declare const ChatCompletionRequestToolChoice$outboundSchema: z.ZodType<ChatCompletionRequestToolChoice$Outbound, ChatCompletionRequestToolChoice>;
|
|
@@ -132,15 +158,18 @@ export type ChatCompletionRequest$Outbound = {
|
|
|
132
158
|
role: "assistant";
|
|
133
159
|
}) | SystemMessage$Outbound | ToolMessage$Outbound | UserMessage$Outbound>;
|
|
134
160
|
response_format?: ResponseFormat$Outbound | undefined;
|
|
135
|
-
tools?: Array<Tool$Outbound> | null | undefined;
|
|
161
|
+
tools?: Array<DocumentLibraryTool$Outbound | CustomConnector$Outbound | Tool$Outbound | WebSearchTool$Outbound | WebSearchPremiumTool$Outbound | CodeInterpreterTool$Outbound | ImageGenerationTool$Outbound> | Array<string> | null | undefined;
|
|
136
162
|
tool_choice?: ToolChoice$Outbound | string | undefined;
|
|
137
163
|
presence_penalty?: number | undefined;
|
|
138
164
|
frequency_penalty?: number | undefined;
|
|
139
165
|
n?: number | null | undefined;
|
|
140
166
|
prediction?: Prediction$Outbound | undefined;
|
|
141
167
|
parallel_tool_calls?: boolean | undefined;
|
|
168
|
+
reasoning_effort?: string | null | undefined;
|
|
142
169
|
prompt_mode?: string | null | undefined;
|
|
170
|
+
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
143
171
|
safe_prompt?: boolean | undefined;
|
|
172
|
+
[additionalProperties: string]: unknown;
|
|
144
173
|
};
|
|
145
174
|
/** @internal */
|
|
146
175
|
export declare const ChatCompletionRequest$outboundSchema: z.ZodType<ChatCompletionRequest$Outbound, ChatCompletionRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatcompletionrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/chatcompletionrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EACV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,aAAa,EAAuB,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,UAAU,EACV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"chatcompletionrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/chatcompletionrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EACV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,aAAa,EAA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GACtB,oBAAoB,GACpB,oBAAoB,CACvB,CAAC;IACF,eAAe,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IACtD,KAAK,CAAC,EACF,KAAK,CACH,4BAA4B,GAC5B,wBAAwB,GACxB,aAAa,GACb,sBAAsB,GACtB,6BAA6B,GAC7B,4BAA4B,GAC5B,4BAA4B,CAC/B,GACC,KAAK,CAAC,MAAM,CAAC,GACb,IAAI,GACJ,SAAS,CAAC;IACd,WAAW,CAAC,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAAC;IACvD,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC7C,mBAAmB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,qBAAqB,CAkErB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
|
|
@@ -6,8 +6,14 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { smartUnion } from "../../types/smartUnion.js";
|
|
8
8
|
import { AssistantMessage$outboundSchema, } from "./assistantmessage.js";
|
|
9
|
+
import { CodeInterpreterTool$outboundSchema, } from "./codeinterpretertool.js";
|
|
10
|
+
import { CustomConnector$outboundSchema, } from "./customconnector.js";
|
|
11
|
+
import { DocumentLibraryTool$outboundSchema, } from "./documentlibrarytool.js";
|
|
12
|
+
import { GuardrailConfig$outboundSchema, } from "./guardrailconfig.js";
|
|
13
|
+
import { ImageGenerationTool$outboundSchema, } from "./imagegenerationtool.js";
|
|
9
14
|
import { MistralPromptMode$outboundSchema, } from "./mistralpromptmode.js";
|
|
10
15
|
import { Prediction$outboundSchema, } from "./prediction.js";
|
|
16
|
+
import { ReasoningEffort$outboundSchema, } from "./reasoningeffort.js";
|
|
11
17
|
import { ResponseFormat$outboundSchema, } from "./responseformat.js";
|
|
12
18
|
import { SystemMessage$outboundSchema, } from "./systemmessage.js";
|
|
13
19
|
import { Tool$outboundSchema } from "./tool.js";
|
|
@@ -15,6 +21,8 @@ import { ToolChoice$outboundSchema, } from "./toolchoice.js";
|
|
|
15
21
|
import { ToolChoiceEnum$outboundSchema, } from "./toolchoiceenum.js";
|
|
16
22
|
import { ToolMessage$outboundSchema, } from "./toolmessage.js";
|
|
17
23
|
import { UserMessage$outboundSchema, } from "./usermessage.js";
|
|
24
|
+
import { WebSearchPremiumTool$outboundSchema, } from "./websearchpremiumtool.js";
|
|
25
|
+
import { WebSearchTool$outboundSchema, } from "./websearchtool.js";
|
|
18
26
|
/** @internal */
|
|
19
27
|
export const ChatCompletionRequestStop$outboundSchema = smartUnion([z.string(), z.array(z.string())]);
|
|
20
28
|
export function chatCompletionRequestStopToJSON(chatCompletionRequestStop) {
|
|
@@ -31,6 +39,35 @@ export function chatCompletionRequestMessageToJSON(chatCompletionRequestMessage)
|
|
|
31
39
|
return JSON.stringify(ChatCompletionRequestMessage$outboundSchema.parse(chatCompletionRequestMessage));
|
|
32
40
|
}
|
|
33
41
|
/** @internal */
|
|
42
|
+
export const ChatCompletionRequestTools1$outboundSchema = smartUnion([
|
|
43
|
+
DocumentLibraryTool$outboundSchema,
|
|
44
|
+
CustomConnector$outboundSchema,
|
|
45
|
+
Tool$outboundSchema,
|
|
46
|
+
WebSearchTool$outboundSchema,
|
|
47
|
+
WebSearchPremiumTool$outboundSchema,
|
|
48
|
+
CodeInterpreterTool$outboundSchema,
|
|
49
|
+
ImageGenerationTool$outboundSchema,
|
|
50
|
+
]);
|
|
51
|
+
export function chatCompletionRequestTools1ToJSON(chatCompletionRequestTools1) {
|
|
52
|
+
return JSON.stringify(ChatCompletionRequestTools1$outboundSchema.parse(chatCompletionRequestTools1));
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ChatCompletionRequestTools2$outboundSchema = smartUnion([
|
|
56
|
+
z.array(smartUnion([
|
|
57
|
+
DocumentLibraryTool$outboundSchema,
|
|
58
|
+
CustomConnector$outboundSchema,
|
|
59
|
+
Tool$outboundSchema,
|
|
60
|
+
WebSearchTool$outboundSchema,
|
|
61
|
+
WebSearchPremiumTool$outboundSchema,
|
|
62
|
+
CodeInterpreterTool$outboundSchema,
|
|
63
|
+
ImageGenerationTool$outboundSchema,
|
|
64
|
+
])),
|
|
65
|
+
z.array(z.string()),
|
|
66
|
+
]);
|
|
67
|
+
export function chatCompletionRequestTools2ToJSON(chatCompletionRequestTools2) {
|
|
68
|
+
return JSON.stringify(ChatCompletionRequestTools2$outboundSchema.parse(chatCompletionRequestTools2));
|
|
69
|
+
}
|
|
70
|
+
/** @internal */
|
|
34
71
|
export const ChatCompletionRequestToolChoice$outboundSchema = smartUnion([ToolChoice$outboundSchema, ToolChoiceEnum$outboundSchema]);
|
|
35
72
|
export function chatCompletionRequestToolChoiceToJSON(chatCompletionRequestToolChoice) {
|
|
36
73
|
return JSON.stringify(ChatCompletionRequestToolChoice$outboundSchema.parse(chatCompletionRequestToolChoice));
|
|
@@ -52,7 +89,18 @@ export const ChatCompletionRequest$outboundSchema = z.object({
|
|
|
52
89
|
UserMessage$outboundSchema,
|
|
53
90
|
])),
|
|
54
91
|
responseFormat: ResponseFormat$outboundSchema.optional(),
|
|
55
|
-
tools: z.nullable(
|
|
92
|
+
tools: z.nullable(smartUnion([
|
|
93
|
+
z.array(smartUnion([
|
|
94
|
+
DocumentLibraryTool$outboundSchema,
|
|
95
|
+
CustomConnector$outboundSchema,
|
|
96
|
+
Tool$outboundSchema,
|
|
97
|
+
WebSearchTool$outboundSchema,
|
|
98
|
+
WebSearchPremiumTool$outboundSchema,
|
|
99
|
+
CodeInterpreterTool$outboundSchema,
|
|
100
|
+
ImageGenerationTool$outboundSchema,
|
|
101
|
+
])),
|
|
102
|
+
z.array(z.string()),
|
|
103
|
+
])).optional(),
|
|
56
104
|
toolChoice: smartUnion([
|
|
57
105
|
ToolChoice$outboundSchema,
|
|
58
106
|
ToolChoiceEnum$outboundSchema,
|
|
@@ -62,21 +110,26 @@ export const ChatCompletionRequest$outboundSchema = z.object({
|
|
|
62
110
|
n: z.nullable(z.int()).optional(),
|
|
63
111
|
prediction: Prediction$outboundSchema.optional(),
|
|
64
112
|
parallelToolCalls: z.boolean().optional(),
|
|
113
|
+
reasoningEffort: z.nullable(ReasoningEffort$outboundSchema).optional(),
|
|
65
114
|
promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
|
|
115
|
+
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
66
116
|
safePrompt: z.boolean().optional(),
|
|
67
|
-
}).transform((v) => {
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
117
|
+
}).catchall(z.any()).transform((v) => {
|
|
118
|
+
return {
|
|
119
|
+
...remap$(v, {
|
|
120
|
+
topP: "top_p",
|
|
121
|
+
maxTokens: "max_tokens",
|
|
122
|
+
randomSeed: "random_seed",
|
|
123
|
+
responseFormat: "response_format",
|
|
124
|
+
toolChoice: "tool_choice",
|
|
125
|
+
presencePenalty: "presence_penalty",
|
|
126
|
+
frequencyPenalty: "frequency_penalty",
|
|
127
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
128
|
+
reasoningEffort: "reasoning_effort",
|
|
129
|
+
promptMode: "prompt_mode",
|
|
130
|
+
safePrompt: "safe_prompt",
|
|
131
|
+
}),
|
|
132
|
+
};
|
|
80
133
|
});
|
|
81
134
|
export function chatCompletionRequestToJSON(chatCompletionRequest) {
|
|
82
135
|
return JSON.stringify(ChatCompletionRequest$outboundSchema.parse(chatCompletionRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatcompletionrequest.js","sourceRoot":"","sources":["../../../src/models/components/chatcompletionrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAGL,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuB,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAGL,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;
|
|
1
|
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CAAC,8BAA8B,CAAC,CAAC,QAAQ,EAAE;IACtE,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE;IACnE,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1E,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACpC,OAAO;QACL,GAAG,MAAM,CAAC,CAAC,EAAE;YACX,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,YAAY;YACvB,UAAU,EAAE,aAAa;YACzB,cAAc,EAAE,iBAAiB;YACjC,UAAU,EAAE,aAAa;YACzB,eAAe,EAAE,kBAAkB;YACnC,gBAAgB,EAAE,mBAAmB;YACrC,iBAAiB,EAAE,qBAAqB;YACxC,eAAe,EAAE,kBAAkB;YACnC,UAAU,EAAE,aAAa;YACzB,UAAU,EAAE,aAAa;SAC1B,CAAC;KACH,CAAC;AAAA,CACH,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,qBAA4C,EACpC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AAAA,CACH"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { AssistantMessage, AssistantMessage$Outbound } from "./assistantmessage.js";
|
|
3
|
+
import { CodeInterpreterTool, CodeInterpreterTool$Outbound } from "./codeinterpretertool.js";
|
|
4
|
+
import { CustomConnector, CustomConnector$Outbound } from "./customconnector.js";
|
|
5
|
+
import { DocumentLibraryTool, DocumentLibraryTool$Outbound } from "./documentlibrarytool.js";
|
|
6
|
+
import { GuardrailConfig, GuardrailConfig$Outbound } from "./guardrailconfig.js";
|
|
7
|
+
import { ImageGenerationTool, ImageGenerationTool$Outbound } from "./imagegenerationtool.js";
|
|
3
8
|
import { MistralPromptMode } from "./mistralpromptmode.js";
|
|
4
9
|
import { Prediction, Prediction$Outbound } from "./prediction.js";
|
|
10
|
+
import { ReasoningEffort } from "./reasoningeffort.js";
|
|
5
11
|
import { ResponseFormat, ResponseFormat$Outbound } from "./responseformat.js";
|
|
6
12
|
import { SystemMessage, SystemMessage$Outbound } from "./systemmessage.js";
|
|
7
13
|
import { Tool, Tool$Outbound } from "./tool.js";
|
|
@@ -9,6 +15,8 @@ import { ToolChoice, ToolChoice$Outbound } from "./toolchoice.js";
|
|
|
9
15
|
import { ToolChoiceEnum } from "./toolchoiceenum.js";
|
|
10
16
|
import { ToolMessage, ToolMessage$Outbound } from "./toolmessage.js";
|
|
11
17
|
import { UserMessage, UserMessage$Outbound } from "./usermessage.js";
|
|
18
|
+
import { WebSearchPremiumTool, WebSearchPremiumTool$Outbound } from "./websearchpremiumtool.js";
|
|
19
|
+
import { WebSearchTool, WebSearchTool$Outbound } from "./websearchtool.js";
|
|
12
20
|
/**
|
|
13
21
|
* Stop generation if this token is detected. Or if one of these tokens is detected when providing an array
|
|
14
22
|
*/
|
|
@@ -16,6 +24,11 @@ export type ChatCompletionStreamRequestStop = string | Array<string>;
|
|
|
16
24
|
export type ChatCompletionStreamRequestMessage = (AssistantMessage & {
|
|
17
25
|
role: "assistant";
|
|
18
26
|
}) | SystemMessage | ToolMessage | UserMessage;
|
|
27
|
+
export type ChatCompletionStreamRequestTools1 = DocumentLibraryTool | CustomConnector | Tool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool;
|
|
28
|
+
/**
|
|
29
|
+
* A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
30
|
+
*/
|
|
31
|
+
export type ChatCompletionStreamRequestTools2 = Array<DocumentLibraryTool | CustomConnector | Tool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool> | Array<string>;
|
|
19
32
|
/**
|
|
20
33
|
* Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
|
|
21
34
|
*/
|
|
@@ -62,7 +75,7 @@ export type ChatCompletionStreamRequest = {
|
|
|
62
75
|
/**
|
|
63
76
|
* A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
64
77
|
*/
|
|
65
|
-
tools?: Array<Tool> | null | undefined;
|
|
78
|
+
tools?: Array<DocumentLibraryTool | CustomConnector | Tool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool> | Array<string> | null | undefined;
|
|
66
79
|
/**
|
|
67
80
|
* Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
|
|
68
81
|
*/
|
|
@@ -87,14 +100,17 @@ export type ChatCompletionStreamRequest = {
|
|
|
87
100
|
* Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel.
|
|
88
101
|
*/
|
|
89
102
|
parallelToolCalls?: boolean | undefined;
|
|
103
|
+
reasoningEffort?: ReasoningEffort | null | undefined;
|
|
90
104
|
/**
|
|
91
105
|
* Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
|
|
92
106
|
*/
|
|
93
107
|
promptMode?: MistralPromptMode | null | undefined;
|
|
108
|
+
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
94
109
|
/**
|
|
95
110
|
* Whether to inject a safety prompt before all conversations.
|
|
96
111
|
*/
|
|
97
112
|
safePrompt?: boolean | undefined;
|
|
113
|
+
[additionalProperties: string]: unknown;
|
|
98
114
|
};
|
|
99
115
|
/** @internal */
|
|
100
116
|
export type ChatCompletionStreamRequestStop$Outbound = string | Array<string>;
|
|
@@ -109,6 +125,16 @@ export type ChatCompletionStreamRequestMessage$Outbound = (AssistantMessage$Outb
|
|
|
109
125
|
export declare const ChatCompletionStreamRequestMessage$outboundSchema: z.ZodType<ChatCompletionStreamRequestMessage$Outbound, ChatCompletionStreamRequestMessage>;
|
|
110
126
|
export declare function chatCompletionStreamRequestMessageToJSON(chatCompletionStreamRequestMessage: ChatCompletionStreamRequestMessage): string;
|
|
111
127
|
/** @internal */
|
|
128
|
+
export type ChatCompletionStreamRequestTools1$Outbound = DocumentLibraryTool$Outbound | CustomConnector$Outbound | Tool$Outbound | WebSearchTool$Outbound | WebSearchPremiumTool$Outbound | CodeInterpreterTool$Outbound | ImageGenerationTool$Outbound;
|
|
129
|
+
/** @internal */
|
|
130
|
+
export declare const ChatCompletionStreamRequestTools1$outboundSchema: z.ZodType<ChatCompletionStreamRequestTools1$Outbound, ChatCompletionStreamRequestTools1>;
|
|
131
|
+
export declare function chatCompletionStreamRequestTools1ToJSON(chatCompletionStreamRequestTools1: ChatCompletionStreamRequestTools1): string;
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type ChatCompletionStreamRequestTools2$Outbound = Array<DocumentLibraryTool$Outbound | CustomConnector$Outbound | Tool$Outbound | WebSearchTool$Outbound | WebSearchPremiumTool$Outbound | CodeInterpreterTool$Outbound | ImageGenerationTool$Outbound> | Array<string>;
|
|
134
|
+
/** @internal */
|
|
135
|
+
export declare const ChatCompletionStreamRequestTools2$outboundSchema: z.ZodType<ChatCompletionStreamRequestTools2$Outbound, ChatCompletionStreamRequestTools2>;
|
|
136
|
+
export declare function chatCompletionStreamRequestTools2ToJSON(chatCompletionStreamRequestTools2: ChatCompletionStreamRequestTools2): string;
|
|
137
|
+
/** @internal */
|
|
112
138
|
export type ChatCompletionStreamRequestToolChoice$Outbound = ToolChoice$Outbound | string;
|
|
113
139
|
/** @internal */
|
|
114
140
|
export declare const ChatCompletionStreamRequestToolChoice$outboundSchema: z.ZodType<ChatCompletionStreamRequestToolChoice$Outbound, ChatCompletionStreamRequestToolChoice>;
|
|
@@ -129,15 +155,18 @@ export type ChatCompletionStreamRequest$Outbound = {
|
|
|
129
155
|
role: "assistant";
|
|
130
156
|
}) | SystemMessage$Outbound | ToolMessage$Outbound | UserMessage$Outbound>;
|
|
131
157
|
response_format?: ResponseFormat$Outbound | undefined;
|
|
132
|
-
tools?: Array<Tool$Outbound> | null | undefined;
|
|
158
|
+
tools?: Array<DocumentLibraryTool$Outbound | CustomConnector$Outbound | Tool$Outbound | WebSearchTool$Outbound | WebSearchPremiumTool$Outbound | CodeInterpreterTool$Outbound | ImageGenerationTool$Outbound> | Array<string> | null | undefined;
|
|
133
159
|
tool_choice?: ToolChoice$Outbound | string | undefined;
|
|
134
160
|
presence_penalty?: number | undefined;
|
|
135
161
|
frequency_penalty?: number | undefined;
|
|
136
162
|
n?: number | null | undefined;
|
|
137
163
|
prediction?: Prediction$Outbound | undefined;
|
|
138
164
|
parallel_tool_calls?: boolean | undefined;
|
|
165
|
+
reasoning_effort?: string | null | undefined;
|
|
139
166
|
prompt_mode?: string | null | undefined;
|
|
167
|
+
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
140
168
|
safe_prompt?: boolean | undefined;
|
|
169
|
+
[additionalProperties: string]: unknown;
|
|
141
170
|
};
|
|
142
171
|
/** @internal */
|
|
143
172
|
export declare const ChatCompletionStreamRequest$outboundSchema: z.ZodType<ChatCompletionStreamRequest$Outbound, ChatCompletionStreamRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatcompletionstreamrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/chatcompletionstreamrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EACV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,aAAa,EAAuB,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,UAAU,EACV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"chatcompletionstreamrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/chatcompletionstreamrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EACV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eA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B,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
|
|
@@ -6,8 +6,14 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { smartUnion } from "../../types/smartUnion.js";
|
|
8
8
|
import { AssistantMessage$outboundSchema, } from "./assistantmessage.js";
|
|
9
|
+
import { CodeInterpreterTool$outboundSchema, } from "./codeinterpretertool.js";
|
|
10
|
+
import { CustomConnector$outboundSchema, } from "./customconnector.js";
|
|
11
|
+
import { DocumentLibraryTool$outboundSchema, } from "./documentlibrarytool.js";
|
|
12
|
+
import { GuardrailConfig$outboundSchema, } from "./guardrailconfig.js";
|
|
13
|
+
import { ImageGenerationTool$outboundSchema, } from "./imagegenerationtool.js";
|
|
9
14
|
import { MistralPromptMode$outboundSchema, } from "./mistralpromptmode.js";
|
|
10
15
|
import { Prediction$outboundSchema, } from "./prediction.js";
|
|
16
|
+
import { ReasoningEffort$outboundSchema, } from "./reasoningeffort.js";
|
|
11
17
|
import { ResponseFormat$outboundSchema, } from "./responseformat.js";
|
|
12
18
|
import { SystemMessage$outboundSchema, } from "./systemmessage.js";
|
|
13
19
|
import { Tool$outboundSchema } from "./tool.js";
|
|
@@ -15,6 +21,8 @@ import { ToolChoice$outboundSchema, } from "./toolchoice.js";
|
|
|
15
21
|
import { ToolChoiceEnum$outboundSchema, } from "./toolchoiceenum.js";
|
|
16
22
|
import { ToolMessage$outboundSchema, } from "./toolmessage.js";
|
|
17
23
|
import { UserMessage$outboundSchema, } from "./usermessage.js";
|
|
24
|
+
import { WebSearchPremiumTool$outboundSchema, } from "./websearchpremiumtool.js";
|
|
25
|
+
import { WebSearchTool$outboundSchema, } from "./websearchtool.js";
|
|
18
26
|
/** @internal */
|
|
19
27
|
export const ChatCompletionStreamRequestStop$outboundSchema = smartUnion([z.string(), z.array(z.string())]);
|
|
20
28
|
export function chatCompletionStreamRequestStopToJSON(chatCompletionStreamRequestStop) {
|
|
@@ -31,6 +39,35 @@ export function chatCompletionStreamRequestMessageToJSON(chatCompletionStreamReq
|
|
|
31
39
|
return JSON.stringify(ChatCompletionStreamRequestMessage$outboundSchema.parse(chatCompletionStreamRequestMessage));
|
|
32
40
|
}
|
|
33
41
|
/** @internal */
|
|
42
|
+
export const ChatCompletionStreamRequestTools1$outboundSchema = smartUnion([
|
|
43
|
+
DocumentLibraryTool$outboundSchema,
|
|
44
|
+
CustomConnector$outboundSchema,
|
|
45
|
+
Tool$outboundSchema,
|
|
46
|
+
WebSearchTool$outboundSchema,
|
|
47
|
+
WebSearchPremiumTool$outboundSchema,
|
|
48
|
+
CodeInterpreterTool$outboundSchema,
|
|
49
|
+
ImageGenerationTool$outboundSchema,
|
|
50
|
+
]);
|
|
51
|
+
export function chatCompletionStreamRequestTools1ToJSON(chatCompletionStreamRequestTools1) {
|
|
52
|
+
return JSON.stringify(ChatCompletionStreamRequestTools1$outboundSchema.parse(chatCompletionStreamRequestTools1));
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ChatCompletionStreamRequestTools2$outboundSchema = smartUnion([
|
|
56
|
+
z.array(smartUnion([
|
|
57
|
+
DocumentLibraryTool$outboundSchema,
|
|
58
|
+
CustomConnector$outboundSchema,
|
|
59
|
+
Tool$outboundSchema,
|
|
60
|
+
WebSearchTool$outboundSchema,
|
|
61
|
+
WebSearchPremiumTool$outboundSchema,
|
|
62
|
+
CodeInterpreterTool$outboundSchema,
|
|
63
|
+
ImageGenerationTool$outboundSchema,
|
|
64
|
+
])),
|
|
65
|
+
z.array(z.string()),
|
|
66
|
+
]);
|
|
67
|
+
export function chatCompletionStreamRequestTools2ToJSON(chatCompletionStreamRequestTools2) {
|
|
68
|
+
return JSON.stringify(ChatCompletionStreamRequestTools2$outboundSchema.parse(chatCompletionStreamRequestTools2));
|
|
69
|
+
}
|
|
70
|
+
/** @internal */
|
|
34
71
|
export const ChatCompletionStreamRequestToolChoice$outboundSchema = smartUnion([ToolChoice$outboundSchema, ToolChoiceEnum$outboundSchema]);
|
|
35
72
|
export function chatCompletionStreamRequestToolChoiceToJSON(chatCompletionStreamRequestToolChoice) {
|
|
36
73
|
return JSON.stringify(ChatCompletionStreamRequestToolChoice$outboundSchema.parse(chatCompletionStreamRequestToolChoice));
|
|
@@ -52,7 +89,18 @@ export const ChatCompletionStreamRequest$outboundSchema = z.object({
|
|
|
52
89
|
UserMessage$outboundSchema,
|
|
53
90
|
])),
|
|
54
91
|
responseFormat: ResponseFormat$outboundSchema.optional(),
|
|
55
|
-
tools: z.nullable(
|
|
92
|
+
tools: z.nullable(smartUnion([
|
|
93
|
+
z.array(smartUnion([
|
|
94
|
+
DocumentLibraryTool$outboundSchema,
|
|
95
|
+
CustomConnector$outboundSchema,
|
|
96
|
+
Tool$outboundSchema,
|
|
97
|
+
WebSearchTool$outboundSchema,
|
|
98
|
+
WebSearchPremiumTool$outboundSchema,
|
|
99
|
+
CodeInterpreterTool$outboundSchema,
|
|
100
|
+
ImageGenerationTool$outboundSchema,
|
|
101
|
+
])),
|
|
102
|
+
z.array(z.string()),
|
|
103
|
+
])).optional(),
|
|
56
104
|
toolChoice: smartUnion([
|
|
57
105
|
ToolChoice$outboundSchema,
|
|
58
106
|
ToolChoiceEnum$outboundSchema,
|
|
@@ -62,21 +110,26 @@ export const ChatCompletionStreamRequest$outboundSchema = z.object({
|
|
|
62
110
|
n: z.nullable(z.int()).optional(),
|
|
63
111
|
prediction: Prediction$outboundSchema.optional(),
|
|
64
112
|
parallelToolCalls: z.boolean().optional(),
|
|
113
|
+
reasoningEffort: z.nullable(ReasoningEffort$outboundSchema).optional(),
|
|
65
114
|
promptMode: z.nullable(MistralPromptMode$outboundSchema).optional(),
|
|
115
|
+
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
66
116
|
safePrompt: z.boolean().optional(),
|
|
67
|
-
}).transform((v) => {
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
117
|
+
}).catchall(z.any()).transform((v) => {
|
|
118
|
+
return {
|
|
119
|
+
...remap$(v, {
|
|
120
|
+
topP: "top_p",
|
|
121
|
+
maxTokens: "max_tokens",
|
|
122
|
+
randomSeed: "random_seed",
|
|
123
|
+
responseFormat: "response_format",
|
|
124
|
+
toolChoice: "tool_choice",
|
|
125
|
+
presencePenalty: "presence_penalty",
|
|
126
|
+
frequencyPenalty: "frequency_penalty",
|
|
127
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
128
|
+
reasoningEffort: "reasoning_effort",
|
|
129
|
+
promptMode: "prompt_mode",
|
|
130
|
+
safePrompt: "safe_prompt",
|
|
131
|
+
}),
|
|
132
|
+
};
|
|
80
133
|
});
|
|
81
134
|
export function chatCompletionStreamRequestToJSON(chatCompletionStreamRequest) {
|
|
82
135
|
return JSON.stringify(ChatCompletionStreamRequest$outboundSchema.parse(chatCompletionStreamRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatcompletionstreamrequest.js","sourceRoot":"","sources":["../../../src/models/components/chatcompletionstreamrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAGL,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuB,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAGL,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"chatcompletionstreamrequest.js","sourceRoot":"","sources":["../../../src/models/components/chatcompletionstreamrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAGL,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuB,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAGL,yBAAyB,GAC1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
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { ToolConfiguration, ToolConfiguration$Outbound } from "./toolconfiguration.js";
|
|
6
|
+
export declare const CodeInterpreterToolType: {
|
|
7
|
+
readonly CodeInterpreter: "code_interpreter";
|
|
8
|
+
};
|
|
9
|
+
export type CodeInterpreterToolType = ClosedEnum<typeof CodeInterpreterToolType>;
|
|
5
10
|
export type CodeInterpreterTool = {
|
|
6
11
|
toolConfiguration?: ToolConfiguration | null | undefined;
|
|
7
|
-
type
|
|
12
|
+
type?: CodeInterpreterToolType | undefined;
|
|
8
13
|
};
|
|
9
14
|
/** @internal */
|
|
15
|
+
export declare const CodeInterpreterToolType$inboundSchema: z.ZodEnum<typeof CodeInterpreterToolType>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const CodeInterpreterToolType$outboundSchema: z.ZodEnum<typeof CodeInterpreterToolType>;
|
|
18
|
+
/** @internal */
|
|
10
19
|
export declare const CodeInterpreterTool$inboundSchema: z.ZodType<CodeInterpreterTool, unknown>;
|
|
11
20
|
/** @internal */
|
|
12
21
|
export type CodeInterpreterTool$Outbound = {
|
|
13
22
|
tool_configuration?: ToolConfiguration$Outbound | null | undefined;
|
|
14
|
-
type:
|
|
23
|
+
type: string;
|
|
15
24
|
};
|
|
16
25
|
/** @internal */
|
|
17
26
|
export declare const CodeInterpreterTool$outboundSchema: z.ZodType<CodeInterpreterTool$Outbound, CodeInterpreterTool>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeinterpretertool.d.ts","sourceRoot":"","sources":["../../../src/models/components/codeinterpretertool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"codeinterpretertool.d.ts","sourceRoot":"","sources":["../../../src/models/components/codeinterpretertool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD,IAAI,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,OAAO,uBAAuB,CACG,CAAC;AACpC,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,OAAO,uBAAuB,CACS,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,kBAAkB,CAAC,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,mBAAmB,CAQnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -6,10 +6,17 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ToolConfiguration$inboundSchema, ToolConfiguration$outboundSchema, } from "./toolconfiguration.js";
|
|
9
|
+
export const CodeInterpreterToolType = {
|
|
10
|
+
CodeInterpreter: "code_interpreter",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const CodeInterpreterToolType$inboundSchema = z.enum(CodeInterpreterToolType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const CodeInterpreterToolType$outboundSchema = CodeInterpreterToolType$inboundSchema;
|
|
9
16
|
/** @internal */
|
|
10
17
|
export const CodeInterpreterTool$inboundSchema = z.object({
|
|
11
18
|
tool_configuration: z.nullable(ToolConfiguration$inboundSchema).optional(),
|
|
12
|
-
type:
|
|
19
|
+
type: CodeInterpreterToolType$inboundSchema.default("code_interpreter"),
|
|
13
20
|
}).transform((v) => {
|
|
14
21
|
return remap$(v, {
|
|
15
22
|
"tool_configuration": "toolConfiguration",
|
|
@@ -18,7 +25,7 @@ export const CodeInterpreterTool$inboundSchema = z.object({
|
|
|
18
25
|
/** @internal */
|
|
19
26
|
export const CodeInterpreterTool$outboundSchema = z.object({
|
|
20
27
|
toolConfiguration: z.nullable(ToolConfiguration$outboundSchema).optional(),
|
|
21
|
-
type:
|
|
28
|
+
type: CodeInterpreterToolType$outboundSchema.default("code_interpreter"),
|
|
22
29
|
}).transform((v) => {
|
|
23
30
|
return remap$(v, {
|
|
24
31
|
toolConfiguration: "tool_configuration",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeinterpretertool.js","sourceRoot":"","sources":["../../../src/models/components/codeinterpretertool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"codeinterpretertool.js","sourceRoot":"","sources":["../../../src/models/components/codeinterpretertool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,+BAA+B,EAE/B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAUX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAE9C,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACpC,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAE/C,qCAAqC,CAAC;AAE1C,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAG1C,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,q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