@mistralai/mistralai 2.4.0 → 2.5.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 +98 -37
- package/esm/funcs/betaAgentsList.d.ts +3 -1
- package/esm/funcs/betaAgentsList.d.ts.map +1 -1
- package/esm/funcs/betaAgentsList.js +3 -1
- package/esm/funcs/betaAgentsList.js.map +1 -1
- package/esm/funcs/betaAgentsListPages.d.ts +21 -0
- package/esm/funcs/betaAgentsListPages.d.ts.map +1 -0
- package/esm/funcs/betaAgentsListPages.js +131 -0
- package/esm/funcs/betaAgentsListPages.js.map +1 -0
- package/esm/funcs/{betaLibrariesDocumentsIngestFromBlobStorage.d.ts → betaConnectorsDeleteAllUserCredentials.d.ts} +4 -4
- package/esm/funcs/betaConnectorsDeleteAllUserCredentials.d.ts.map +1 -0
- package/esm/funcs/{fineTuningJobsStart.js → betaConnectorsDeleteAllUserCredentials.js} +16 -15
- package/esm/funcs/betaConnectorsDeleteAllUserCredentials.js.map +1 -0
- package/esm/funcs/betaConnectorsShare.d.ts +19 -0
- package/esm/funcs/betaConnectorsShare.d.ts.map +1 -0
- package/esm/funcs/{fineTuningJobsGet.js → betaConnectorsShare.js} +16 -12
- package/esm/funcs/betaConnectorsShare.js.map +1 -0
- package/esm/funcs/betaPromptsCreate.d.ts +1 -2
- package/esm/funcs/betaPromptsCreate.d.ts.map +1 -1
- package/esm/funcs/betaPromptsCreate.js +1 -2
- package/esm/funcs/betaPromptsCreate.js.map +1 -1
- package/esm/funcs/betaPromptsCreateVersion.d.ts +2 -1
- package/esm/funcs/betaPromptsCreateVersion.d.ts.map +1 -1
- package/esm/funcs/betaPromptsCreateVersion.js +2 -1
- package/esm/funcs/betaPromptsCreateVersion.js.map +1 -1
- package/esm/funcs/betaPromptsDelete.d.ts +2 -1
- package/esm/funcs/betaPromptsDelete.d.ts.map +1 -1
- package/esm/funcs/betaPromptsDelete.js +2 -1
- package/esm/funcs/betaPromptsDelete.js.map +1 -1
- package/esm/funcs/betaPromptsGet.d.ts +2 -1
- package/esm/funcs/betaPromptsGet.d.ts.map +1 -1
- package/esm/funcs/betaPromptsGet.js +2 -1
- package/esm/funcs/betaPromptsGet.js.map +1 -1
- package/esm/funcs/betaPromptsGetVersion.d.ts +2 -1
- package/esm/funcs/betaPromptsGetVersion.d.ts.map +1 -1
- package/esm/funcs/betaPromptsGetVersion.js +2 -1
- package/esm/funcs/betaPromptsGetVersion.js.map +1 -1
- package/esm/funcs/betaPromptsList.js +1 -3
- package/esm/funcs/betaPromptsList.js.map +1 -1
- package/esm/funcs/betaPromptsListVersions.d.ts +2 -1
- package/esm/funcs/betaPromptsListVersions.d.ts.map +1 -1
- package/esm/funcs/betaPromptsListVersions.js +2 -1
- package/esm/funcs/betaPromptsListVersions.js.map +1 -1
- package/esm/funcs/betaPromptsUpdateMetadata.d.ts +2 -1
- package/esm/funcs/betaPromptsUpdateMetadata.d.ts.map +1 -1
- package/esm/funcs/betaPromptsUpdateMetadata.js +2 -1
- package/esm/funcs/betaPromptsUpdateMetadata.js.map +1 -1
- package/esm/funcs/betaPromptsUpdateVersionMetadata.d.ts +2 -1
- package/esm/funcs/betaPromptsUpdateVersionMetadata.d.ts.map +1 -1
- package/esm/funcs/betaPromptsUpdateVersionMetadata.js +2 -1
- package/esm/funcs/betaPromptsUpdateVersionMetadata.js.map +1 -1
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.d.ts +22 -0
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.d.ts.map +1 -0
- package/esm/funcs/{fineTuningJobsCancel.js → betaRagSearchIndexesGenerateIndexSummary.js} +35 -12
- package/esm/funcs/betaRagSearchIndexesGenerateIndexSummary.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.d.ts +22 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.js +114 -0
- package/esm/funcs/betaRagSearchIndexesGenerateSchemaSummary.js.map +1 -0
- package/esm/funcs/{fineTuningJobsList.d.ts → betaRagSearchIndexesGetIndexSummary.d.ts} +5 -4
- package/esm/funcs/betaRagSearchIndexesGetIndexSummary.d.ts.map +1 -0
- package/esm/funcs/{betaLibrariesDocumentsGetSignedUploadUrl.js → betaRagSearchIndexesGetIndexSummary.js} +16 -15
- package/esm/funcs/betaRagSearchIndexesGetIndexSummary.js.map +1 -0
- package/esm/funcs/{betaLibrariesDocumentsGetSignedUploadUrl.d.ts → betaRagSearchIndexesGetSchemaSummary.d.ts} +4 -4
- package/esm/funcs/betaRagSearchIndexesGetSchemaSummary.d.ts.map +1 -0
- package/esm/funcs/{betaLibrariesDocumentsIngestFromBlobStorage.js → betaRagSearchIndexesGetSchemaSummary.js} +22 -16
- package/esm/funcs/betaRagSearchIndexesGetSchemaSummary.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.d.ts +1 -1
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.d.ts.map +1 -1
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.js +8 -4
- package/esm/funcs/betaRagSearchIndexesSetIndexSummary.js.map +1 -1
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.d.ts +1 -1
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.d.ts.map +1 -1
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.js +8 -4
- package/esm/funcs/betaRagSearchIndexesSetSchemaSummary.js.map +1 -1
- package/esm/funcs/betaSkillsCreate.d.ts +1 -2
- package/esm/funcs/betaSkillsCreate.d.ts.map +1 -1
- package/esm/funcs/betaSkillsCreate.js +1 -2
- package/esm/funcs/betaSkillsCreate.js.map +1 -1
- package/esm/funcs/betaSkillsCreateVersion.d.ts +2 -1
- package/esm/funcs/betaSkillsCreateVersion.d.ts.map +1 -1
- package/esm/funcs/betaSkillsCreateVersion.js +2 -1
- package/esm/funcs/betaSkillsCreateVersion.js.map +1 -1
- package/esm/funcs/betaSkillsDelete.d.ts +2 -1
- package/esm/funcs/betaSkillsDelete.d.ts.map +1 -1
- package/esm/funcs/betaSkillsDelete.js +2 -1
- package/esm/funcs/betaSkillsDelete.js.map +1 -1
- package/esm/funcs/betaSkillsGet.d.ts +2 -1
- package/esm/funcs/betaSkillsGet.d.ts.map +1 -1
- package/esm/funcs/betaSkillsGet.js +2 -1
- package/esm/funcs/betaSkillsGet.js.map +1 -1
- package/esm/funcs/betaSkillsGetVersion.d.ts +2 -1
- package/esm/funcs/betaSkillsGetVersion.d.ts.map +1 -1
- package/esm/funcs/betaSkillsGetVersion.js +2 -1
- package/esm/funcs/betaSkillsGetVersion.js.map +1 -1
- package/esm/funcs/betaSkillsList.js +1 -3
- package/esm/funcs/betaSkillsList.js.map +1 -1
- package/esm/funcs/betaSkillsListVersions.d.ts +2 -1
- package/esm/funcs/betaSkillsListVersions.d.ts.map +1 -1
- package/esm/funcs/betaSkillsListVersions.js +2 -1
- package/esm/funcs/betaSkillsListVersions.js.map +1 -1
- package/esm/funcs/betaSkillsUpdateMetadata.d.ts +2 -1
- package/esm/funcs/betaSkillsUpdateMetadata.d.ts.map +1 -1
- package/esm/funcs/betaSkillsUpdateMetadata.js +2 -1
- package/esm/funcs/betaSkillsUpdateMetadata.js.map +1 -1
- package/esm/funcs/betaSkillsUpdateVersionMetadata.d.ts +2 -1
- package/esm/funcs/betaSkillsUpdateVersionMetadata.d.ts.map +1 -1
- package/esm/funcs/betaSkillsUpdateVersionMetadata.js +2 -1
- package/esm/funcs/betaSkillsUpdateVersionMetadata.js.map +1 -1
- package/esm/funcs/{fineTuningJobsCreate.d.ts → betaUsersGetIdentity.d.ts} +3 -6
- package/esm/funcs/betaUsersGetIdentity.d.ts.map +1 -0
- package/esm/funcs/{fineTuningJobsCreate.js → betaUsersGetIdentity.js} +19 -30
- package/esm/funcs/betaUsersGetIdentity.js.map +1 -0
- package/esm/funcs/workflowsRunsListRuns.js +1 -0
- package/esm/funcs/workflowsRunsListRuns.js.map +1 -1
- package/esm/lib/config.d.ts +13 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +14 -4
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/jsonl.d.ts +10 -0
- package/esm/lib/jsonl.d.ts.map +1 -0
- package/esm/lib/jsonl.js +103 -0
- package/esm/lib/jsonl.js.map +1 -0
- package/esm/models/components/agentlistpage.d.ts +13 -0
- package/esm/models/components/agentlistpage.d.ts.map +1 -0
- package/esm/models/components/agentlistpage.js +23 -0
- package/esm/models/components/agentlistpage.js.map +1 -0
- package/esm/models/components/authenticationconfiguration.d.ts +1 -0
- package/esm/models/components/authenticationconfiguration.d.ts.map +1 -1
- package/esm/models/components/authenticationconfiguration.js +1 -0
- package/esm/models/components/authenticationconfiguration.js.map +1 -1
- package/esm/models/components/connector.d.ts +1 -0
- package/esm/models/components/connector.d.ts.map +1 -1
- package/esm/models/components/connector.js +2 -0
- package/esm/models/components/connector.js.map +1 -1
- package/esm/models/components/credentialscreateorupdate.d.ts +5 -0
- package/esm/models/components/credentialscreateorupdate.d.ts.map +1 -1
- package/esm/models/components/credentialscreateorupdate.js +1 -0
- package/esm/models/components/credentialscreateorupdate.js.map +1 -1
- package/esm/models/components/ftclassifierlossfunction.d.ts +0 -2
- package/esm/models/components/ftclassifierlossfunction.d.ts.map +1 -1
- package/esm/models/components/ftclassifierlossfunction.js +0 -2
- package/esm/models/components/ftclassifierlossfunction.js.map +1 -1
- package/esm/models/components/getsearchindexdetailresponseindex.d.ts +0 -1
- package/esm/models/components/getsearchindexdetailresponseindex.d.ts.map +1 -1
- package/esm/models/components/getsearchindexdetailresponseindex.js +0 -1
- package/esm/models/components/getsearchindexdetailresponseindex.js.map +1 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.d.ts +0 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.d.ts.map +1 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.js +0 -1
- package/esm/models/components/getsearchindexschemadetailresponseschemamodel.js.map +1 -1
- package/esm/models/components/getsummaryresponsesummary.d.ts +13 -0
- package/esm/models/components/getsummaryresponsesummary.d.ts.map +1 -0
- package/esm/models/components/getsummaryresponsesummary.js +17 -0
- package/esm/models/components/getsummaryresponsesummary.js.map +1 -0
- package/esm/models/components/index.d.ts +9 -26
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +9 -26
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/locationtype.d.ts +1 -0
- package/esm/models/components/locationtype.d.ts.map +1 -1
- package/esm/models/components/locationtype.js +1 -0
- package/esm/models/components/locationtype.js.map +1 -1
- package/esm/models/components/modelcapabilities.d.ts +1 -0
- package/esm/models/components/modelcapabilities.d.ts.map +1 -1
- package/esm/models/components/modelcapabilities.js +2 -0
- package/esm/models/components/modelcapabilities.js.map +1 -1
- package/esm/models/components/skilldefinition.d.ts +2 -2
- package/esm/models/components/skilldefinition.d.ts.map +1 -1
- package/esm/models/components/skilldefinition.js +2 -2
- package/esm/models/components/skilldefinition.js.map +1 -1
- package/esm/models/components/speechrequest.d.ts +2 -0
- package/esm/models/components/speechrequest.d.ts.map +1 -1
- package/esm/models/components/speechrequest.js +2 -0
- package/esm/models/components/speechrequest.js.map +1 -1
- package/esm/models/components/summarychunk.d.ts +13 -0
- package/esm/models/components/summarychunk.d.ts.map +1 -0
- package/esm/models/components/summarychunk.js +15 -0
- package/esm/models/components/summarychunk.js.map +1 -0
- package/esm/models/components/summaryerror.d.ts +13 -0
- package/esm/models/components/summaryerror.d.ts.map +1 -0
- package/esm/models/components/summaryerror.js +15 -0
- package/esm/models/components/summaryerror.js.map +1 -0
- package/esm/models/components/summarymetadata.d.ts +15 -0
- package/esm/models/components/summarymetadata.d.ts.map +1 -0
- package/esm/models/components/summarymetadata.js +16 -0
- package/esm/models/components/summarymetadata.js.map +1 -0
- package/esm/models/components/summarystatus.d.ts +11 -0
- package/esm/models/components/summarystatus.d.ts.map +1 -0
- package/esm/models/components/summarystatus.js +13 -0
- package/esm/models/components/summarystatus.js.map +1 -0
- package/esm/models/components/summarystatusdollardefs.d.ts +11 -0
- package/esm/models/components/summarystatusdollardefs.d.ts.map +1 -0
- package/esm/models/components/summarystatusdollardefs.js +13 -0
- package/esm/models/components/summarystatusdollardefs.js.map +1 -0
- package/esm/models/components/updatesummaryrequestsummary.d.ts +24 -0
- package/esm/models/components/updatesummaryrequestsummary.d.ts.map +1 -0
- package/esm/models/components/updatesummaryrequestsummary.js +21 -0
- package/esm/models/components/updatesummaryrequestsummary.js.map +1 -0
- package/esm/models/components/useridentity.d.ts +13 -0
- package/esm/models/components/useridentity.d.ts.map +1 -0
- package/esm/models/components/useridentity.js +24 -0
- package/esm/models/components/useridentity.js.map +1 -0
- package/esm/models/operations/agentsapiv1agentslistpages.d.ts +51 -0
- package/esm/models/operations/agentsapiv1agentslistpages.d.ts.map +1 -0
- package/esm/models/operations/agentsapiv1agentslistpages.js +41 -0
- package/esm/models/operations/agentsapiv1agentslistpages.js.map +1 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.d.ts +12 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.d.ts.map +1 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.js +18 -0
- package/esm/models/operations/connectordeleteallusercredentialsv1.js.map +1 -0
- package/esm/models/operations/connectorsharev1.d.ts +12 -0
- package/esm/models/operations/connectorsharev1.d.ts.map +1 -0
- package/esm/models/operations/connectorsharev1.js +18 -0
- package/esm/models/operations/connectorsharev1.js.map +1 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.d.ts +39 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.d.ts.map +1 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.js +46 -0
- package/esm/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.js.map +1 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.d.ts +41 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.d.ts.map +1 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.js +48 -0
- package/esm/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.js.map +1 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.d.ts +29 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.d.ts.map +1 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.js +33 -0
- package/esm/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.js.map +1 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.d.ts +31 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.d.ts.map +1 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.js +35 -0
- package/esm/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.js.map +1 -0
- package/esm/models/operations/index.d.ts +10 -11
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +10 -11
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listrunsv1workflowsrunsget.d.ts +5 -0
- package/esm/models/operations/listrunsv1workflowsrunsget.d.ts.map +1 -1
- package/esm/models/operations/listrunsv1workflowsrunsget.js +2 -0
- package/esm/models/operations/listrunsv1workflowsrunsget.js.map +1 -1
- package/esm/models/operations/promptscreateversion.d.ts +0 -6
- package/esm/models/operations/promptscreateversion.d.ts.map +1 -1
- package/esm/models/operations/promptscreateversion.js +0 -10
- package/esm/models/operations/promptscreateversion.js.map +1 -1
- package/esm/models/operations/promptsdelete.d.ts +0 -7
- package/esm/models/operations/promptsdelete.d.ts.map +1 -1
- package/esm/models/operations/promptsdelete.js +0 -11
- package/esm/models/operations/promptsdelete.js.map +1 -1
- package/esm/models/operations/promptsget.d.ts +0 -7
- package/esm/models/operations/promptsget.d.ts.map +1 -1
- package/esm/models/operations/promptsget.js +0 -11
- package/esm/models/operations/promptsget.js.map +1 -1
- package/esm/models/operations/promptsgetversion.d.ts +0 -7
- package/esm/models/operations/promptsgetversion.d.ts.map +1 -1
- package/esm/models/operations/promptsgetversion.js +0 -11
- package/esm/models/operations/promptsgetversion.js.map +1 -1
- package/esm/models/operations/promptslist.d.ts +1 -5
- package/esm/models/operations/promptslist.d.ts.map +1 -1
- package/esm/models/operations/promptslist.js +1 -13
- package/esm/models/operations/promptslist.js.map +1 -1
- package/esm/models/operations/promptslistversions.d.ts +0 -7
- package/esm/models/operations/promptslistversions.d.ts.map +1 -1
- package/esm/models/operations/promptslistversions.js +0 -11
- package/esm/models/operations/promptslistversions.js.map +1 -1
- package/esm/models/operations/promptsupdate.d.ts +0 -6
- package/esm/models/operations/promptsupdate.d.ts.map +1 -1
- package/esm/models/operations/promptsupdate.js +0 -10
- package/esm/models/operations/promptsupdate.js.map +1 -1
- package/esm/models/operations/promptsupdateversionmetadata.d.ts +0 -6
- package/esm/models/operations/promptsupdateversionmetadata.d.ts.map +1 -1
- package/esm/models/operations/promptsupdateversionmetadata.js +0 -10
- package/esm/models/operations/promptsupdateversionmetadata.js.map +1 -1
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.d.ts +32 -0
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.d.ts.map +1 -0
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.js +36 -0
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.js.map +1 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.d.ts +34 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.d.ts.map +1 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.js +38 -0
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.js.map +1 -0
- package/esm/models/operations/skillscreateversion.d.ts +0 -6
- package/esm/models/operations/skillscreateversion.d.ts.map +1 -1
- package/esm/models/operations/skillscreateversion.js +0 -10
- package/esm/models/operations/skillscreateversion.js.map +1 -1
- package/esm/models/operations/skillsdelete.d.ts +0 -7
- package/esm/models/operations/skillsdelete.d.ts.map +1 -1
- package/esm/models/operations/skillsdelete.js +0 -11
- package/esm/models/operations/skillsdelete.js.map +1 -1
- package/esm/models/operations/skillsget.d.ts +0 -7
- package/esm/models/operations/skillsget.d.ts.map +1 -1
- package/esm/models/operations/skillsget.js +0 -11
- package/esm/models/operations/skillsget.js.map +1 -1
- package/esm/models/operations/skillsgetversion.d.ts +0 -7
- package/esm/models/operations/skillsgetversion.d.ts.map +1 -1
- package/esm/models/operations/skillsgetversion.js +0 -11
- package/esm/models/operations/skillsgetversion.js.map +1 -1
- package/esm/models/operations/skillslist.d.ts +1 -5
- package/esm/models/operations/skillslist.d.ts.map +1 -1
- package/esm/models/operations/skillslist.js +1 -13
- package/esm/models/operations/skillslist.js.map +1 -1
- package/esm/models/operations/skillslistversions.d.ts +0 -7
- package/esm/models/operations/skillslistversions.d.ts.map +1 -1
- package/esm/models/operations/skillslistversions.js +0 -11
- package/esm/models/operations/skillslistversions.js.map +1 -1
- package/esm/models/operations/skillsupdate.d.ts +0 -6
- package/esm/models/operations/skillsupdate.d.ts.map +1 -1
- package/esm/models/operations/skillsupdate.js +0 -10
- package/esm/models/operations/skillsupdate.js.map +1 -1
- package/esm/models/operations/skillsupdateversionmetadata.d.ts +0 -6
- package/esm/models/operations/skillsupdateversionmetadata.d.ts.map +1 -1
- package/esm/models/operations/skillsupdateversionmetadata.js +0 -10
- package/esm/models/operations/skillsupdateversionmetadata.js.map +1 -1
- package/esm/models/operations/usersapigetidentity.d.ts +12 -0
- package/esm/models/operations/usersapigetidentity.d.ts.map +1 -0
- package/esm/models/operations/usersapigetidentity.js +18 -0
- package/esm/models/operations/usersapigetidentity.js.map +1 -0
- package/esm/sdk/batch.d.ts +2 -2
- package/esm/sdk/batch.d.ts.map +1 -1
- package/esm/sdk/batch.js +2 -2
- package/esm/sdk/batch.js.map +1 -1
- package/esm/sdk/beta.d.ts +3 -0
- package/esm/sdk/beta.d.ts.map +1 -1
- package/esm/sdk/beta.js +5 -0
- package/esm/sdk/beta.js.map +1 -1
- package/esm/sdk/betaagents.d.ts +13 -1
- package/esm/sdk/betaagents.d.ts.map +1 -1
- package/esm/sdk/betaagents.js +14 -1
- package/esm/sdk/betaagents.js.map +1 -1
- package/esm/sdk/connectors.d.ts +14 -0
- package/esm/sdk/connectors.d.ts.map +1 -1
- package/esm/sdk/connectors.js +20 -0
- package/esm/sdk/connectors.js.map +1 -1
- package/esm/sdk/documents.d.ts +0 -14
- package/esm/sdk/documents.d.ts.map +1 -1
- package/esm/sdk/documents.js +0 -20
- package/esm/sdk/documents.js.map +1 -1
- package/esm/sdk/{batchjobs.d.ts → jobs.d.ts} +2 -2
- package/esm/sdk/jobs.d.ts.map +1 -0
- package/esm/sdk/{batchjobs.js → jobs.js} +3 -3
- package/esm/sdk/jobs.js.map +1 -0
- package/esm/sdk/prompts.d.ts +8 -8
- package/esm/sdk/prompts.d.ts.map +1 -1
- package/esm/sdk/prompts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -5
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/searchindexes.d.ts +40 -5
- package/esm/sdk/searchindexes.d.ts.map +1 -1
- package/esm/sdk/searchindexes.js +50 -4
- package/esm/sdk/searchindexes.js.map +1 -1
- package/esm/sdk/skills.d.ts +8 -8
- package/esm/sdk/skills.d.ts.map +1 -1
- package/esm/sdk/skills.js.map +1 -1
- package/esm/sdk/users.d.ts +10 -0
- package/esm/sdk/users.d.ts.map +1 -0
- package/esm/sdk/users.js +16 -0
- package/esm/sdk/users.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/betaAgentsList.ts +3 -1
- package/src/funcs/betaAgentsListPages.ts +265 -0
- package/src/funcs/{betaLibrariesDocumentsIngestFromBlobStorage.ts → betaConnectorsDeleteAllUserCredentials.ts} +21 -23
- package/src/funcs/{fineTuningJobsStart.ts → betaConnectorsShare.ts} +26 -22
- package/src/funcs/betaPromptsCreate.ts +4 -6
- package/src/funcs/betaPromptsCreateVersion.ts +5 -5
- package/src/funcs/betaPromptsDelete.ts +5 -5
- package/src/funcs/betaPromptsGet.ts +5 -5
- package/src/funcs/betaPromptsGetVersion.ts +5 -5
- package/src/funcs/betaPromptsList.ts +0 -3
- package/src/funcs/betaPromptsListVersions.ts +5 -5
- package/src/funcs/betaPromptsUpdateMetadata.ts +5 -5
- package/src/funcs/betaPromptsUpdateVersionMetadata.ts +5 -8
- package/src/funcs/{fineTuningJobsCancel.ts → betaRagSearchIndexesGenerateIndexSummary.ts} +61 -22
- package/src/funcs/betaRagSearchIndexesGenerateSchemaSummary.ts +219 -0
- package/src/funcs/{betaLibrariesDocumentsGetSignedUploadUrl.ts → betaRagSearchIndexesGetIndexSummary.ts} +25 -22
- package/src/funcs/{fineTuningJobsGet.ts → betaRagSearchIndexesGetSchemaSummary.ts} +41 -20
- package/src/funcs/betaRagSearchIndexesSetIndexSummary.ts +12 -8
- package/src/funcs/betaRagSearchIndexesSetSchemaSummary.ts +10 -6
- package/src/funcs/betaSkillsCreate.ts +4 -6
- package/src/funcs/betaSkillsCreateVersion.ts +5 -5
- package/src/funcs/betaSkillsDelete.ts +5 -5
- package/src/funcs/betaSkillsGet.ts +5 -5
- package/src/funcs/betaSkillsGetVersion.ts +5 -5
- package/src/funcs/betaSkillsList.ts +0 -3
- package/src/funcs/betaSkillsListVersions.ts +5 -5
- package/src/funcs/betaSkillsUpdateMetadata.ts +5 -5
- package/src/funcs/betaSkillsUpdateVersionMetadata.ts +5 -8
- package/src/funcs/{fineTuningJobsCreate.ts → betaUsersGetIdentity.ts} +24 -41
- package/src/funcs/workflowsRunsListRuns.ts +1 -0
- package/src/lib/config.ts +14 -4
- package/src/lib/jsonl.ts +128 -0
- package/src/models/components/agentlistpage.ts +39 -0
- package/src/models/components/authenticationconfiguration.ts +2 -0
- package/src/models/components/connector.ts +3 -0
- package/src/models/components/credentialscreateorupdate.ts +6 -0
- package/src/models/components/ftclassifierlossfunction.ts +0 -5
- package/src/models/components/getsearchindexdetailresponseindex.ts +0 -2
- package/src/models/components/getsearchindexschemadetailresponseschemamodel.ts +0 -2
- package/src/models/components/getsummaryresponsesummary.ts +36 -0
- package/src/models/components/index.ts +9 -26
- package/src/models/components/locationtype.ts +1 -0
- package/src/models/components/modelcapabilities.ts +3 -0
- package/src/models/components/skilldefinition.ts +4 -4
- package/src/models/components/speechrequest.ts +4 -0
- package/src/models/components/summarychunk.ts +32 -0
- package/src/models/components/summaryerror.ts +32 -0
- package/src/models/components/summarymetadata.ts +40 -0
- package/src/models/components/summarystatus.ts +19 -0
- package/src/models/components/summarystatusdollardefs.ts +21 -0
- package/src/models/components/updatesummaryrequestsummary.ts +53 -0
- package/src/models/components/useridentity.ts +41 -0
- package/src/models/operations/agentsapiv1agentslistpages.ts +105 -0
- package/src/models/operations/connectordeleteallusercredentialsv1.ts +40 -0
- package/src/models/operations/connectorsharev1.ts +36 -0
- package/src/models/operations/generateindexsummaryv1ragindexesindexindexidsummaryfieldlanguagepost.ts +113 -0
- package/src/models/operations/generateschemasummarypostv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguagepost.ts +117 -0
- package/src/models/operations/getindexsummaryv1ragindexesindexindexidsummaryfieldlanguageget.ts +74 -0
- package/src/models/operations/getschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageget.ts +78 -0
- package/src/models/operations/index.ts +10 -11
- package/src/models/operations/listrunsv1workflowsrunsget.ts +7 -0
- package/src/models/operations/promptscreateversion.ts +0 -27
- package/src/models/operations/promptsdelete.ts +0 -28
- package/src/models/operations/promptsget.ts +0 -26
- package/src/models/operations/promptsgetversion.ts +0 -28
- package/src/models/operations/promptslist.ts +2 -29
- package/src/models/operations/promptslistversions.ts +0 -28
- package/src/models/operations/promptsupdate.ts +0 -25
- package/src/models/operations/promptsupdateversionmetadata.ts +0 -28
- package/src/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldlanguageput.ts +81 -0
- package/src/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldlanguageput.ts +85 -0
- package/src/models/operations/skillscreateversion.ts +0 -27
- package/src/models/operations/skillsdelete.ts +0 -28
- package/src/models/operations/skillsget.ts +0 -26
- package/src/models/operations/skillsgetversion.ts +0 -28
- package/src/models/operations/skillslist.ts +2 -29
- package/src/models/operations/skillslistversions.ts +0 -28
- package/src/models/operations/skillsupdate.ts +0 -25
- package/src/models/operations/skillsupdateversionmetadata.ts +0 -28
- package/src/models/operations/usersapigetidentity.ts +38 -0
- package/src/sdk/batch.ts +4 -4
- package/src/sdk/beta.ts +6 -0
- package/src/sdk/betaagents.ts +27 -1
- package/src/sdk/connectors.ts +36 -0
- package/src/sdk/documents.ts +0 -36
- package/src/sdk/{batchjobs.ts → jobs.ts} +2 -2
- package/src/sdk/prompts.ts +8 -8
- package/src/sdk/sdk.ts +0 -6
- package/src/sdk/searchindexes.ts +99 -8
- package/src/sdk/skills.ts +8 -8
- package/src/sdk/users.ts +26 -0
- package/esm/funcs/betaLibrariesDocumentsGetSignedUploadUrl.d.ts.map +0 -1
- package/esm/funcs/betaLibrariesDocumentsGetSignedUploadUrl.js.map +0 -1
- package/esm/funcs/betaLibrariesDocumentsIngestFromBlobStorage.d.ts.map +0 -1
- package/esm/funcs/betaLibrariesDocumentsIngestFromBlobStorage.js.map +0 -1
- package/esm/funcs/fineTuningJobsCancel.d.ts +0 -17
- package/esm/funcs/fineTuningJobsCancel.d.ts.map +0 -1
- package/esm/funcs/fineTuningJobsCancel.js.map +0 -1
- package/esm/funcs/fineTuningJobsCreate.d.ts.map +0 -1
- package/esm/funcs/fineTuningJobsCreate.js.map +0 -1
- package/esm/funcs/fineTuningJobsGet.d.ts +0 -17
- package/esm/funcs/fineTuningJobsGet.d.ts.map +0 -1
- package/esm/funcs/fineTuningJobsGet.js.map +0 -1
- package/esm/funcs/fineTuningJobsList.d.ts.map +0 -1
- package/esm/funcs/fineTuningJobsList.js +0 -94
- package/esm/funcs/fineTuningJobsList.js.map +0 -1
- package/esm/funcs/fineTuningJobsStart.d.ts +0 -17
- package/esm/funcs/fineTuningJobsStart.d.ts.map +0 -1
- package/esm/funcs/fineTuningJobsStart.js.map +0 -1
- package/esm/models/components/checkpoint.d.ts +0 -22
- package/esm/models/components/checkpoint.d.ts.map +0 -1
- package/esm/models/components/checkpoint.js +0 -24
- package/esm/models/components/checkpoint.js.map +0 -1
- package/esm/models/components/classifierfinetuningjob.d.ts +0 -90
- package/esm/models/components/classifierfinetuningjob.d.ts.map +0 -1
- package/esm/models/components/classifierfinetuningjob.js +0 -68
- package/esm/models/components/classifierfinetuningjob.js.map +0 -1
- package/esm/models/components/classifierfinetuningjobdetails.d.ts +0 -99
- package/esm/models/components/classifierfinetuningjobdetails.d.ts.map +0 -1
- package/esm/models/components/classifierfinetuningjobdetails.js +0 -75
- package/esm/models/components/classifierfinetuningjobdetails.js.map +0 -1
- package/esm/models/components/classifiertarget.d.ts +0 -19
- package/esm/models/components/classifiertarget.d.ts.map +0 -1
- package/esm/models/components/classifiertarget.js +0 -22
- package/esm/models/components/classifiertarget.js.map +0 -1
- package/esm/models/components/classifiertrainingparameters.d.ts +0 -39
- package/esm/models/components/classifiertrainingparameters.d.ts.map +0 -1
- package/esm/models/components/classifiertrainingparameters.js +0 -48
- package/esm/models/components/classifiertrainingparameters.js.map +0 -1
- package/esm/models/components/completionfinetuningjob.d.ts +0 -96
- package/esm/models/components/completionfinetuningjob.d.ts.map +0 -1
- package/esm/models/components/completionfinetuningjob.js +0 -75
- package/esm/models/components/completionfinetuningjob.js.map +0 -1
- package/esm/models/components/completionfinetuningjobdetails.d.ts +0 -103
- package/esm/models/components/completionfinetuningjobdetails.d.ts.map +0 -1
- package/esm/models/components/completionfinetuningjobdetails.js +0 -79
- package/esm/models/components/completionfinetuningjobdetails.js.map +0 -1
- package/esm/models/components/completiontrainingparameters.d.ts +0 -41
- package/esm/models/components/completiontrainingparameters.d.ts.map +0 -1
- package/esm/models/components/completiontrainingparameters.js +0 -52
- package/esm/models/components/completiontrainingparameters.js.map +0 -1
- package/esm/models/components/connecterror.d.ts +0 -54
- package/esm/models/components/connecterror.d.ts.map +0 -1
- package/esm/models/components/connecterror.js +0 -43
- package/esm/models/components/connecterror.js.map +0 -1
- package/esm/models/components/createfinetuningjobrequest.d.ts +0 -69
- package/esm/models/components/createfinetuningjobrequest.d.ts.map +0 -1
- package/esm/models/components/createfinetuningjobrequest.js +0 -63
- package/esm/models/components/createfinetuningjobrequest.js.map +0 -1
- package/esm/models/components/creategithubrepositoryrequest.d.ts +0 -22
- package/esm/models/components/creategithubrepositoryrequest.d.ts.map +0 -1
- package/esm/models/components/creategithubrepositoryrequest.js +0 -18
- package/esm/models/components/creategithubrepositoryrequest.js.map +0 -1
- package/esm/models/components/event.d.ts +0 -20
- package/esm/models/components/event.d.ts.map +0 -1
- package/esm/models/components/event.js +0 -21
- package/esm/models/components/event.js.map +0 -1
- package/esm/models/components/finetuneablemodeltype.d.ts +0 -10
- package/esm/models/components/finetuneablemodeltype.d.ts.map +0 -1
- package/esm/models/components/finetuneablemodeltype.js +0 -12
- package/esm/models/components/finetuneablemodeltype.js.map +0 -1
- package/esm/models/components/githubrepository.d.ts +0 -15
- package/esm/models/components/githubrepository.d.ts.map +0 -1
- package/esm/models/components/githubrepository.js +0 -24
- package/esm/models/components/githubrepository.js.map +0 -1
- package/esm/models/components/ingestfromblobstoragerequest.d.ts +0 -23
- package/esm/models/components/ingestfromblobstoragerequest.d.ts.map +0 -1
- package/esm/models/components/ingestfromblobstoragerequest.js +0 -19
- package/esm/models/components/ingestfromblobstoragerequest.js.map +0 -1
- package/esm/models/components/jobmetadata.d.ts +0 -34
- package/esm/models/components/jobmetadata.d.ts.map +0 -1
- package/esm/models/components/jobmetadata.js +0 -31
- package/esm/models/components/jobmetadata.js.map +0 -1
- package/esm/models/components/legacyjobmetadata.d.ts +0 -45
- package/esm/models/components/legacyjobmetadata.d.ts.map +0 -1
- package/esm/models/components/legacyjobmetadata.js +0 -36
- package/esm/models/components/legacyjobmetadata.js.map +0 -1
- package/esm/models/components/listfinetuningjobsresponse.d.ts +0 -19
- package/esm/models/components/listfinetuningjobsresponse.d.ts.map +0 -1
- package/esm/models/components/listfinetuningjobsresponse.js +0 -30
- package/esm/models/components/listfinetuningjobsresponse.js.map +0 -1
- package/esm/models/components/metric.d.ts +0 -15
- package/esm/models/components/metric.d.ts.map +0 -1
- package/esm/models/components/metric.js +0 -23
- package/esm/models/components/metric.js.map +0 -1
- package/esm/models/components/protobufany.d.ts +0 -18
- package/esm/models/components/protobufany.d.ts.map +0 -1
- package/esm/models/components/protobufany.js +0 -18
- package/esm/models/components/protobufany.js.map +0 -1
- package/esm/models/components/requestuploadurlresponse.d.ts +0 -13
- package/esm/models/components/requestuploadurlresponse.d.ts.map +0 -1
- package/esm/models/components/requestuploadurlresponse.js +0 -19
- package/esm/models/components/requestuploadurlresponse.js.map +0 -1
- package/esm/models/components/trainingfile.d.ts +0 -14
- package/esm/models/components/trainingfile.d.ts.map +0 -1
- package/esm/models/components/trainingfile.js +0 -19
- package/esm/models/components/trainingfile.js.map +0 -1
- package/esm/models/components/updateindexsummaryrequestsummary.d.ts +0 -12
- package/esm/models/components/updateindexsummaryrequestsummary.d.ts.map +0 -1
- package/esm/models/components/updateindexsummaryrequestsummary.js +0 -13
- package/esm/models/components/updateindexsummaryrequestsummary.js.map +0 -1
- package/esm/models/components/updateschemasummaryrequestsummary.d.ts +0 -12
- package/esm/models/components/updateschemasummaryrequestsummary.d.ts.map +0 -1
- package/esm/models/components/updateschemasummaryrequestsummary.js +0 -13
- package/esm/models/components/updateschemasummaryrequestsummary.js.map +0 -1
- package/esm/models/components/wandbintegration.d.ts +0 -29
- package/esm/models/components/wandbintegration.d.ts.map +0 -1
- package/esm/models/components/wandbintegration.js +0 -23
- package/esm/models/components/wandbintegration.js.map +0 -1
- package/esm/models/components/wandbintegrationresult.d.ts +0 -20
- package/esm/models/components/wandbintegrationresult.d.ts.map +0 -1
- package/esm/models/components/wandbintegrationresult.js +0 -23
- package/esm/models/components/wandbintegrationresult.js.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.d.ts +0 -26
- package/esm/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.d.ts.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.js +0 -29
- package/esm/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.js.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.d.ts +0 -17
- package/esm/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.d.ts.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.js +0 -28
- package/esm/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.js.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjob.d.ts +0 -26
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjob.d.ts.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjob.js +0 -29
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjob.js.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.d.ts +0 -79
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.d.ts.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.js +0 -51
- package/esm/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.js.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuningstartfinetuningjob.d.ts +0 -23
- package/esm/models/operations/jobsapiroutesfinetuningstartfinetuningjob.d.ts.map +0 -1
- package/esm/models/operations/jobsapiroutesfinetuningstartfinetuningjob.js +0 -29
- package/esm/models/operations/jobsapiroutesfinetuningstartfinetuningjob.js.map +0 -1
- package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.d.ts +0 -14
- package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.d.ts.map +0 -1
- package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.js +0 -19
- package/esm/models/operations/librariesdocumentsgetsigneduploadurlv1.js.map +0 -1
- package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.d.ts +0 -15
- package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.d.ts.map +0 -1
- package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.js +0 -21
- package/esm/models/operations/librariesdocumentsingestfromblobstoragev1.js.map +0 -1
- package/esm/models/operations/promptscreate.d.ts +0 -9
- package/esm/models/operations/promptscreate.d.ts.map +0 -1
- package/esm/models/operations/promptscreate.js +0 -16
- package/esm/models/operations/promptscreate.js.map +0 -1
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.d.ts +0 -15
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.d.ts.map +0 -1
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.js +0 -22
- package/esm/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.js.map +0 -1
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.d.ts +0 -17
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.d.ts.map +0 -1
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.js +0 -24
- package/esm/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.js.map +0 -1
- package/esm/models/operations/skillscreate.d.ts +0 -9
- package/esm/models/operations/skillscreate.d.ts.map +0 -1
- package/esm/models/operations/skillscreate.js +0 -16
- package/esm/models/operations/skillscreate.js.map +0 -1
- package/esm/sdk/batchjobs.d.ts.map +0 -1
- package/esm/sdk/batchjobs.js.map +0 -1
- package/esm/sdk/finetuning.d.ts +0 -7
- package/esm/sdk/finetuning.d.ts.map +0 -1
- package/esm/sdk/finetuning.js +0 -13
- package/esm/sdk/finetuning.js.map +0 -1
- package/esm/sdk/finetuningjobs.d.ts +0 -41
- package/esm/sdk/finetuningjobs.d.ts.map +0 -1
- package/esm/sdk/finetuningjobs.js +0 -59
- package/esm/sdk/finetuningjobs.js.map +0 -1
- package/src/funcs/fineTuningJobsList.ts +0 -183
- package/src/models/components/checkpoint.ts +0 -49
- package/src/models/components/classifierfinetuningjob.ts +0 -168
- package/src/models/components/classifierfinetuningjobdetails.ts +0 -189
- package/src/models/components/classifiertarget.ts +0 -49
- package/src/models/components/classifiertrainingparameters.ts +0 -101
- package/src/models/components/completionfinetuningjob.ts +0 -192
- package/src/models/components/completionfinetuningjobdetails.ts +0 -212
- package/src/models/components/completiontrainingparameters.ts +0 -107
- package/src/models/components/connecterror.ts +0 -79
- package/src/models/components/createfinetuningjobrequest.ts +0 -198
- package/src/models/components/creategithubrepositoryrequest.ts +0 -48
- package/src/models/components/event.ts +0 -43
- package/src/models/components/finetuneablemodeltype.ts +0 -18
- package/src/models/components/githubrepository.ts +0 -46
- package/src/models/components/ingestfromblobstoragerequest.ts +0 -50
- package/src/models/components/jobmetadata.ts +0 -69
- package/src/models/components/legacyjobmetadata.ts +0 -88
- package/src/models/components/listfinetuningjobsresponse.ts +0 -80
- package/src/models/components/metric.ts +0 -42
- package/src/models/components/protobufany.ts +0 -38
- package/src/models/components/requestuploadurlresponse.ts +0 -39
- package/src/models/components/trainingfile.ts +0 -35
- package/src/models/components/updateindexsummaryrequestsummary.ts +0 -33
- package/src/models/components/updateschemasummaryrequestsummary.ts +0 -33
- package/src/models/components/wandbintegration.ts +0 -58
- package/src/models/components/wandbintegrationresult.ts +0 -50
- package/src/models/operations/jobsapiroutesfinetuningcancelfinetuningjob.ts +0 -81
- package/src/models/operations/jobsapiroutesfinetuningcreatefinetuningjob.ts +0 -71
- package/src/models/operations/jobsapiroutesfinetuninggetfinetuningjob.ts +0 -81
- package/src/models/operations/jobsapiroutesfinetuninggetfinetuningjobs.ts +0 -132
- package/src/models/operations/jobsapiroutesfinetuningstartfinetuningjob.ts +0 -78
- package/src/models/operations/librariesdocumentsgetsigneduploadurlv1.ts +0 -43
- package/src/models/operations/librariesdocumentsingestfromblobstoragev1.ts +0 -47
- package/src/models/operations/promptscreate.ts +0 -32
- package/src/models/operations/setindexsummaryv1ragindexesindexindexidsummaryfieldput.ts +0 -47
- package/src/models/operations/setschemasummaryv1ragindexesindexindexidschemasschemaschemaidsummaryfieldput.ts +0 -55
- package/src/models/operations/skillscreate.ts +0 -32
- package/src/sdk/finetuning.ts +0 -14
- package/src/sdk/finetuningjobs.ts +0 -103
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: ff094245e1ab
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { MistralCore } from "../core.js";
|
|
7
|
-
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
-
import * as M from "../lib/matchers.js";
|
|
10
|
-
import { compactMap } from "../lib/primitives.js";
|
|
11
|
-
import { safeParse } from "../lib/schemas.js";
|
|
12
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
-
import { pathToFunc } from "../lib/url.js";
|
|
15
|
-
import * as components from "../models/components/index.js";
|
|
16
|
-
import {
|
|
17
|
-
ConnectionError,
|
|
18
|
-
InvalidRequestError,
|
|
19
|
-
RequestAbortedError,
|
|
20
|
-
RequestTimeoutError,
|
|
21
|
-
UnexpectedClientError,
|
|
22
|
-
} from "../models/errors/httpclienterrors.js";
|
|
23
|
-
import { MistralError } from "../models/errors/mistralerror.js";
|
|
24
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import * as operations from "../models/operations/index.js";
|
|
27
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
-
import { Result } from "../types/fp.js";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Get Fine Tuning Jobs
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* Get a list of fine-tuning jobs for your organization and user.
|
|
35
|
-
*/
|
|
36
|
-
export function fineTuningJobsList(
|
|
37
|
-
client: MistralCore,
|
|
38
|
-
request?:
|
|
39
|
-
| operations.JobsApiRoutesFineTuningGetFineTuningJobsRequest
|
|
40
|
-
| undefined,
|
|
41
|
-
options?: RequestOptions,
|
|
42
|
-
): APIPromise<
|
|
43
|
-
Result<
|
|
44
|
-
components.ListFineTuningJobsResponse,
|
|
45
|
-
| MistralError
|
|
46
|
-
| ResponseValidationError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
| RequestAbortedError
|
|
49
|
-
| RequestTimeoutError
|
|
50
|
-
| InvalidRequestError
|
|
51
|
-
| UnexpectedClientError
|
|
52
|
-
| SDKValidationError
|
|
53
|
-
>
|
|
54
|
-
> {
|
|
55
|
-
return new APIPromise($do(
|
|
56
|
-
client,
|
|
57
|
-
request,
|
|
58
|
-
options,
|
|
59
|
-
));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async function $do(
|
|
63
|
-
client: MistralCore,
|
|
64
|
-
request?:
|
|
65
|
-
| operations.JobsApiRoutesFineTuningGetFineTuningJobsRequest
|
|
66
|
-
| undefined,
|
|
67
|
-
options?: RequestOptions,
|
|
68
|
-
): Promise<
|
|
69
|
-
[
|
|
70
|
-
Result<
|
|
71
|
-
components.ListFineTuningJobsResponse,
|
|
72
|
-
| MistralError
|
|
73
|
-
| ResponseValidationError
|
|
74
|
-
| ConnectionError
|
|
75
|
-
| RequestAbortedError
|
|
76
|
-
| RequestTimeoutError
|
|
77
|
-
| InvalidRequestError
|
|
78
|
-
| UnexpectedClientError
|
|
79
|
-
| SDKValidationError
|
|
80
|
-
>,
|
|
81
|
-
APICall,
|
|
82
|
-
]
|
|
83
|
-
> {
|
|
84
|
-
const parsed = safeParse(
|
|
85
|
-
request,
|
|
86
|
-
(value) =>
|
|
87
|
-
operations.JobsApiRoutesFineTuningGetFineTuningJobsRequest$outboundSchema
|
|
88
|
-
.optional().parse(value),
|
|
89
|
-
"Input validation failed",
|
|
90
|
-
);
|
|
91
|
-
if (!parsed.ok) {
|
|
92
|
-
return [parsed, { status: "invalid" }];
|
|
93
|
-
}
|
|
94
|
-
const payload = parsed.value;
|
|
95
|
-
const body = null;
|
|
96
|
-
|
|
97
|
-
const path = pathToFunc("/v1/fine_tuning/jobs")();
|
|
98
|
-
|
|
99
|
-
const query = encodeFormQuery({
|
|
100
|
-
"created_after": payload?.created_after,
|
|
101
|
-
"created_before": payload?.created_before,
|
|
102
|
-
"created_by_me": payload?.created_by_me,
|
|
103
|
-
"model": payload?.model,
|
|
104
|
-
"page": payload?.page,
|
|
105
|
-
"page_size": payload?.page_size,
|
|
106
|
-
"status": payload?.status,
|
|
107
|
-
"suffix": payload?.suffix,
|
|
108
|
-
"wandb_name": payload?.wandb_name,
|
|
109
|
-
"wandb_project": payload?.wandb_project,
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
const headers = new Headers(compactMap({
|
|
113
|
-
Accept: "application/json",
|
|
114
|
-
}));
|
|
115
|
-
|
|
116
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
117
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
118
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
-
|
|
120
|
-
const context = {
|
|
121
|
-
options: client._options,
|
|
122
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
123
|
-
operationID: "jobs_api_routes_fine_tuning_get_fine_tuning_jobs",
|
|
124
|
-
oAuth2Scopes: null,
|
|
125
|
-
|
|
126
|
-
resolvedSecurity: requestSecurity,
|
|
127
|
-
|
|
128
|
-
securitySource: client._options.apiKey,
|
|
129
|
-
retryConfig: options?.retries
|
|
130
|
-
|| client._options.retryConfig
|
|
131
|
-
|| { strategy: "none" },
|
|
132
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const requestRes = client._createRequest(context, {
|
|
136
|
-
security: requestSecurity,
|
|
137
|
-
method: "GET",
|
|
138
|
-
baseURL: options?.serverURL,
|
|
139
|
-
path: path,
|
|
140
|
-
headers: headers,
|
|
141
|
-
query: query,
|
|
142
|
-
body: body,
|
|
143
|
-
userAgent: client._options.userAgent,
|
|
144
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 300000,
|
|
145
|
-
}, options);
|
|
146
|
-
if (!requestRes.ok) {
|
|
147
|
-
return [requestRes, { status: "invalid" }];
|
|
148
|
-
}
|
|
149
|
-
const req = requestRes.value;
|
|
150
|
-
|
|
151
|
-
const doResult = await client._do(req, {
|
|
152
|
-
context,
|
|
153
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
154
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
155
|
-
retryConfig: context.retryConfig,
|
|
156
|
-
retryCodes: context.retryCodes,
|
|
157
|
-
});
|
|
158
|
-
if (!doResult.ok) {
|
|
159
|
-
return [doResult, { status: "request-error", request: req }];
|
|
160
|
-
}
|
|
161
|
-
const response = doResult.value;
|
|
162
|
-
|
|
163
|
-
const [result] = await M.match<
|
|
164
|
-
components.ListFineTuningJobsResponse,
|
|
165
|
-
| MistralError
|
|
166
|
-
| ResponseValidationError
|
|
167
|
-
| ConnectionError
|
|
168
|
-
| RequestAbortedError
|
|
169
|
-
| RequestTimeoutError
|
|
170
|
-
| InvalidRequestError
|
|
171
|
-
| UnexpectedClientError
|
|
172
|
-
| SDKValidationError
|
|
173
|
-
>(
|
|
174
|
-
M.json(200, components.ListFineTuningJobsResponse$inboundSchema),
|
|
175
|
-
M.fail("4XX"),
|
|
176
|
-
M.fail("5XX"),
|
|
177
|
-
)(response, req);
|
|
178
|
-
if (!result.ok) {
|
|
179
|
-
return [result, { status: "complete", request: req, response }];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return [result, { status: "complete", request: req, response }];
|
|
183
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 51417fff99a1
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4";
|
|
7
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import { Metric, Metric$inboundSchema } from "./metric.js";
|
|
12
|
-
|
|
13
|
-
export type Checkpoint = {
|
|
14
|
-
/**
|
|
15
|
-
* Metrics at the step number during the fine-tuning job. Use these metrics to assess if the training is going smoothly (loss should decrease, token accuracy should increase).
|
|
16
|
-
*/
|
|
17
|
-
metrics: Metric;
|
|
18
|
-
/**
|
|
19
|
-
* The step number that the checkpoint was created at.
|
|
20
|
-
*/
|
|
21
|
-
stepNumber: number;
|
|
22
|
-
/**
|
|
23
|
-
* The UNIX timestamp (in seconds) for when the checkpoint was created.
|
|
24
|
-
*/
|
|
25
|
-
createdAt: number;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const Checkpoint$inboundSchema: z.ZodType<Checkpoint, unknown> = z
|
|
30
|
-
.object({
|
|
31
|
-
metrics: Metric$inboundSchema,
|
|
32
|
-
step_number: z.int(),
|
|
33
|
-
created_at: z.int(),
|
|
34
|
-
}).transform((v) => {
|
|
35
|
-
return remap$(v, {
|
|
36
|
-
"step_number": "stepNumber",
|
|
37
|
-
"created_at": "createdAt",
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export function checkpointFromJSON(
|
|
42
|
-
jsonString: string,
|
|
43
|
-
): SafeParseResult<Checkpoint, SDKValidationError> {
|
|
44
|
-
return safeParse(
|
|
45
|
-
jsonString,
|
|
46
|
-
(x) => Checkpoint$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
-
`Failed to parse 'Checkpoint' from JSON`,
|
|
48
|
-
);
|
|
49
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 2224f41020d5
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4";
|
|
7
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import * as openEnums from "../../types/enums.js";
|
|
10
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
11
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
-
import {
|
|
14
|
-
ClassifierTrainingParameters,
|
|
15
|
-
ClassifierTrainingParameters$inboundSchema,
|
|
16
|
-
} from "./classifiertrainingparameters.js";
|
|
17
|
-
import { JobMetadata, JobMetadata$inboundSchema } from "./jobmetadata.js";
|
|
18
|
-
import {
|
|
19
|
-
WandbIntegrationResult,
|
|
20
|
-
WandbIntegrationResult$inboundSchema,
|
|
21
|
-
} from "./wandbintegrationresult.js";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The current status of the fine-tuning job.
|
|
25
|
-
*/
|
|
26
|
-
export const ClassifierFineTuningJobStatus = {
|
|
27
|
-
Queued: "QUEUED",
|
|
28
|
-
Started: "STARTED",
|
|
29
|
-
Validating: "VALIDATING",
|
|
30
|
-
Validated: "VALIDATED",
|
|
31
|
-
Running: "RUNNING",
|
|
32
|
-
FailedValidation: "FAILED_VALIDATION",
|
|
33
|
-
Failed: "FAILED",
|
|
34
|
-
Success: "SUCCESS",
|
|
35
|
-
Cancelled: "CANCELLED",
|
|
36
|
-
CancellationRequested: "CANCELLATION_REQUESTED",
|
|
37
|
-
} as const;
|
|
38
|
-
/**
|
|
39
|
-
* The current status of the fine-tuning job.
|
|
40
|
-
*/
|
|
41
|
-
export type ClassifierFineTuningJobStatus = OpenEnum<
|
|
42
|
-
typeof ClassifierFineTuningJobStatus
|
|
43
|
-
>;
|
|
44
|
-
|
|
45
|
-
export type ClassifierFineTuningJobIntegration = WandbIntegrationResult;
|
|
46
|
-
|
|
47
|
-
export type ClassifierFineTuningJob = {
|
|
48
|
-
/**
|
|
49
|
-
* The ID of the job.
|
|
50
|
-
*/
|
|
51
|
-
id: string;
|
|
52
|
-
autoStart: boolean;
|
|
53
|
-
model: string;
|
|
54
|
-
/**
|
|
55
|
-
* The current status of the fine-tuning job.
|
|
56
|
-
*/
|
|
57
|
-
status: ClassifierFineTuningJobStatus;
|
|
58
|
-
/**
|
|
59
|
-
* The UNIX timestamp (in seconds) for when the fine-tuning job was created.
|
|
60
|
-
*/
|
|
61
|
-
createdAt: number;
|
|
62
|
-
/**
|
|
63
|
-
* The UNIX timestamp (in seconds) for when the fine-tuning job was last modified.
|
|
64
|
-
*/
|
|
65
|
-
modifiedAt: number;
|
|
66
|
-
/**
|
|
67
|
-
* A list containing the IDs of uploaded files that contain training data.
|
|
68
|
-
*/
|
|
69
|
-
trainingFiles: Array<string>;
|
|
70
|
-
/**
|
|
71
|
-
* A list containing the IDs of uploaded files that contain validation data.
|
|
72
|
-
*/
|
|
73
|
-
validationFiles?: Array<string> | null | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* The object type of the fine-tuning job.
|
|
76
|
-
*/
|
|
77
|
-
object: "job";
|
|
78
|
-
/**
|
|
79
|
-
* The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running.
|
|
80
|
-
*/
|
|
81
|
-
fineTunedModel?: string | null | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Optional user-provided string inserted into the fine-tuned model name to help identify it. For example, a suffix of `"my-great-model"` produces a name like `ft:open-mistral-7b:abcd1234:20260101:my-great-model:efgh5678`.
|
|
84
|
-
*/
|
|
85
|
-
suffix?: string | null | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* A list of integrations enabled for your fine-tuning job.
|
|
88
|
-
*/
|
|
89
|
-
integrations?: Array<WandbIntegrationResult> | null | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Total number of tokens trained.
|
|
92
|
-
*/
|
|
93
|
-
trainedTokens?: number | null | undefined;
|
|
94
|
-
metadata?: JobMetadata | null | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* The type of job (`FT` for fine-tuning).
|
|
97
|
-
*/
|
|
98
|
-
jobType: "classifier";
|
|
99
|
-
hyperparameters: ClassifierTrainingParameters;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const ClassifierFineTuningJobStatus$inboundSchema: z.ZodType<
|
|
104
|
-
ClassifierFineTuningJobStatus,
|
|
105
|
-
unknown
|
|
106
|
-
> = openEnums.inboundSchema(ClassifierFineTuningJobStatus);
|
|
107
|
-
|
|
108
|
-
/** @internal */
|
|
109
|
-
export const ClassifierFineTuningJobIntegration$inboundSchema: z.ZodType<
|
|
110
|
-
ClassifierFineTuningJobIntegration,
|
|
111
|
-
unknown
|
|
112
|
-
> = WandbIntegrationResult$inboundSchema;
|
|
113
|
-
|
|
114
|
-
export function classifierFineTuningJobIntegrationFromJSON(
|
|
115
|
-
jsonString: string,
|
|
116
|
-
): SafeParseResult<ClassifierFineTuningJobIntegration, SDKValidationError> {
|
|
117
|
-
return safeParse(
|
|
118
|
-
jsonString,
|
|
119
|
-
(x) =>
|
|
120
|
-
ClassifierFineTuningJobIntegration$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
-
`Failed to parse 'ClassifierFineTuningJobIntegration' from JSON`,
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const ClassifierFineTuningJob$inboundSchema: z.ZodType<
|
|
127
|
-
ClassifierFineTuningJob,
|
|
128
|
-
unknown
|
|
129
|
-
> = z.object({
|
|
130
|
-
id: z.string(),
|
|
131
|
-
auto_start: z.boolean(),
|
|
132
|
-
model: z.string(),
|
|
133
|
-
status: ClassifierFineTuningJobStatus$inboundSchema,
|
|
134
|
-
created_at: z.int(),
|
|
135
|
-
modified_at: z.int(),
|
|
136
|
-
training_files: z.array(z.string()),
|
|
137
|
-
validation_files: z.nullable(z.array(z.string())).optional(),
|
|
138
|
-
object: z.literal("job").default("job"),
|
|
139
|
-
fine_tuned_model: z.nullable(z.string()).optional(),
|
|
140
|
-
suffix: z.nullable(z.string()).optional(),
|
|
141
|
-
integrations: z.nullable(z.array(WandbIntegrationResult$inboundSchema))
|
|
142
|
-
.optional(),
|
|
143
|
-
trained_tokens: z.nullable(z.int()).optional(),
|
|
144
|
-
metadata: z.nullable(JobMetadata$inboundSchema).optional(),
|
|
145
|
-
job_type: z.literal("classifier"),
|
|
146
|
-
hyperparameters: ClassifierTrainingParameters$inboundSchema,
|
|
147
|
-
}).transform((v) => {
|
|
148
|
-
return remap$(v, {
|
|
149
|
-
"auto_start": "autoStart",
|
|
150
|
-
"created_at": "createdAt",
|
|
151
|
-
"modified_at": "modifiedAt",
|
|
152
|
-
"training_files": "trainingFiles",
|
|
153
|
-
"validation_files": "validationFiles",
|
|
154
|
-
"fine_tuned_model": "fineTunedModel",
|
|
155
|
-
"trained_tokens": "trainedTokens",
|
|
156
|
-
"job_type": "jobType",
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
export function classifierFineTuningJobFromJSON(
|
|
161
|
-
jsonString: string,
|
|
162
|
-
): SafeParseResult<ClassifierFineTuningJob, SDKValidationError> {
|
|
163
|
-
return safeParse(
|
|
164
|
-
jsonString,
|
|
165
|
-
(x) => ClassifierFineTuningJob$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
-
`Failed to parse 'ClassifierFineTuningJob' from JSON`,
|
|
167
|
-
);
|
|
168
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 081aa779ef56
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4";
|
|
7
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import * as openEnums from "../../types/enums.js";
|
|
10
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
11
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
-
import { Checkpoint, Checkpoint$inboundSchema } from "./checkpoint.js";
|
|
14
|
-
import {
|
|
15
|
-
ClassifierTargetResult,
|
|
16
|
-
ClassifierTargetResult$inboundSchema,
|
|
17
|
-
} from "./classifiertargetresult.js";
|
|
18
|
-
import {
|
|
19
|
-
ClassifierTrainingParameters,
|
|
20
|
-
ClassifierTrainingParameters$inboundSchema,
|
|
21
|
-
} from "./classifiertrainingparameters.js";
|
|
22
|
-
import { Event, Event$inboundSchema } from "./event.js";
|
|
23
|
-
import { JobMetadata, JobMetadata$inboundSchema } from "./jobmetadata.js";
|
|
24
|
-
import {
|
|
25
|
-
WandbIntegrationResult,
|
|
26
|
-
WandbIntegrationResult$inboundSchema,
|
|
27
|
-
} from "./wandbintegrationresult.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The current status of the fine-tuning job.
|
|
31
|
-
*/
|
|
32
|
-
export const ClassifierFineTuningJobDetailsStatus = {
|
|
33
|
-
Queued: "QUEUED",
|
|
34
|
-
Started: "STARTED",
|
|
35
|
-
Validating: "VALIDATING",
|
|
36
|
-
Validated: "VALIDATED",
|
|
37
|
-
Running: "RUNNING",
|
|
38
|
-
FailedValidation: "FAILED_VALIDATION",
|
|
39
|
-
Failed: "FAILED",
|
|
40
|
-
Success: "SUCCESS",
|
|
41
|
-
Cancelled: "CANCELLED",
|
|
42
|
-
CancellationRequested: "CANCELLATION_REQUESTED",
|
|
43
|
-
} as const;
|
|
44
|
-
/**
|
|
45
|
-
* The current status of the fine-tuning job.
|
|
46
|
-
*/
|
|
47
|
-
export type ClassifierFineTuningJobDetailsStatus = OpenEnum<
|
|
48
|
-
typeof ClassifierFineTuningJobDetailsStatus
|
|
49
|
-
>;
|
|
50
|
-
|
|
51
|
-
export type ClassifierFineTuningJobDetailsIntegration = WandbIntegrationResult;
|
|
52
|
-
|
|
53
|
-
export type ClassifierFineTuningJobDetails = {
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the job.
|
|
56
|
-
*/
|
|
57
|
-
id: string;
|
|
58
|
-
autoStart: boolean;
|
|
59
|
-
model: string;
|
|
60
|
-
/**
|
|
61
|
-
* The current status of the fine-tuning job.
|
|
62
|
-
*/
|
|
63
|
-
status: ClassifierFineTuningJobDetailsStatus;
|
|
64
|
-
/**
|
|
65
|
-
* The UNIX timestamp (in seconds) for when the fine-tuning job was created.
|
|
66
|
-
*/
|
|
67
|
-
createdAt: number;
|
|
68
|
-
/**
|
|
69
|
-
* The UNIX timestamp (in seconds) for when the fine-tuning job was last modified.
|
|
70
|
-
*/
|
|
71
|
-
modifiedAt: number;
|
|
72
|
-
/**
|
|
73
|
-
* A list containing the IDs of uploaded files that contain training data.
|
|
74
|
-
*/
|
|
75
|
-
trainingFiles: Array<string>;
|
|
76
|
-
/**
|
|
77
|
-
* A list containing the IDs of uploaded files that contain validation data.
|
|
78
|
-
*/
|
|
79
|
-
validationFiles?: Array<string> | null | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* The object type of the fine-tuning job.
|
|
82
|
-
*/
|
|
83
|
-
object: "job";
|
|
84
|
-
/**
|
|
85
|
-
* The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running.
|
|
86
|
-
*/
|
|
87
|
-
fineTunedModel?: string | null | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Optional user-provided string inserted into the fine-tuned model name to help identify it. For example, a suffix of `"my-great-model"` produces a name like `ft:open-mistral-7b:abcd1234:20260101:my-great-model:efgh5678`.
|
|
90
|
-
*/
|
|
91
|
-
suffix?: string | null | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* A list of integrations enabled for your fine-tuning job.
|
|
94
|
-
*/
|
|
95
|
-
integrations?: Array<WandbIntegrationResult> | null | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Total number of tokens trained.
|
|
98
|
-
*/
|
|
99
|
-
trainedTokens?: number | null | undefined;
|
|
100
|
-
metadata?: JobMetadata | null | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* The type of job (`FT` for fine-tuning).
|
|
103
|
-
*/
|
|
104
|
-
jobType: "classifier";
|
|
105
|
-
hyperparameters: ClassifierTrainingParameters;
|
|
106
|
-
/**
|
|
107
|
-
* Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.
|
|
108
|
-
*/
|
|
109
|
-
events?: Array<Event> | undefined;
|
|
110
|
-
checkpoints?: Array<Checkpoint> | undefined;
|
|
111
|
-
classifierTargets: Array<ClassifierTargetResult>;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const ClassifierFineTuningJobDetailsStatus$inboundSchema: z.ZodType<
|
|
116
|
-
ClassifierFineTuningJobDetailsStatus,
|
|
117
|
-
unknown
|
|
118
|
-
> = openEnums.inboundSchema(ClassifierFineTuningJobDetailsStatus);
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export const ClassifierFineTuningJobDetailsIntegration$inboundSchema: z.ZodType<
|
|
122
|
-
ClassifierFineTuningJobDetailsIntegration,
|
|
123
|
-
unknown
|
|
124
|
-
> = WandbIntegrationResult$inboundSchema;
|
|
125
|
-
|
|
126
|
-
export function classifierFineTuningJobDetailsIntegrationFromJSON(
|
|
127
|
-
jsonString: string,
|
|
128
|
-
): SafeParseResult<
|
|
129
|
-
ClassifierFineTuningJobDetailsIntegration,
|
|
130
|
-
SDKValidationError
|
|
131
|
-
> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) =>
|
|
135
|
-
ClassifierFineTuningJobDetailsIntegration$inboundSchema.parse(
|
|
136
|
-
JSON.parse(x),
|
|
137
|
-
),
|
|
138
|
-
`Failed to parse 'ClassifierFineTuningJobDetailsIntegration' from JSON`,
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const ClassifierFineTuningJobDetails$inboundSchema: z.ZodType<
|
|
144
|
-
ClassifierFineTuningJobDetails,
|
|
145
|
-
unknown
|
|
146
|
-
> = z.object({
|
|
147
|
-
id: z.string(),
|
|
148
|
-
auto_start: z.boolean(),
|
|
149
|
-
model: z.string(),
|
|
150
|
-
status: ClassifierFineTuningJobDetailsStatus$inboundSchema,
|
|
151
|
-
created_at: z.int(),
|
|
152
|
-
modified_at: z.int(),
|
|
153
|
-
training_files: z.array(z.string()),
|
|
154
|
-
validation_files: z.nullable(z.array(z.string())).optional(),
|
|
155
|
-
object: z.literal("job").default("job"),
|
|
156
|
-
fine_tuned_model: z.nullable(z.string()).optional(),
|
|
157
|
-
suffix: z.nullable(z.string()).optional(),
|
|
158
|
-
integrations: z.nullable(z.array(WandbIntegrationResult$inboundSchema))
|
|
159
|
-
.optional(),
|
|
160
|
-
trained_tokens: z.nullable(z.int()).optional(),
|
|
161
|
-
metadata: z.nullable(JobMetadata$inboundSchema).optional(),
|
|
162
|
-
job_type: z.literal("classifier"),
|
|
163
|
-
hyperparameters: ClassifierTrainingParameters$inboundSchema,
|
|
164
|
-
events: z.array(Event$inboundSchema).optional(),
|
|
165
|
-
checkpoints: z.array(Checkpoint$inboundSchema).optional(),
|
|
166
|
-
classifier_targets: z.array(ClassifierTargetResult$inboundSchema),
|
|
167
|
-
}).transform((v) => {
|
|
168
|
-
return remap$(v, {
|
|
169
|
-
"auto_start": "autoStart",
|
|
170
|
-
"created_at": "createdAt",
|
|
171
|
-
"modified_at": "modifiedAt",
|
|
172
|
-
"training_files": "trainingFiles",
|
|
173
|
-
"validation_files": "validationFiles",
|
|
174
|
-
"fine_tuned_model": "fineTunedModel",
|
|
175
|
-
"trained_tokens": "trainedTokens",
|
|
176
|
-
"job_type": "jobType",
|
|
177
|
-
"classifier_targets": "classifierTargets",
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
export function classifierFineTuningJobDetailsFromJSON(
|
|
182
|
-
jsonString: string,
|
|
183
|
-
): SafeParseResult<ClassifierFineTuningJobDetails, SDKValidationError> {
|
|
184
|
-
return safeParse(
|
|
185
|
-
jsonString,
|
|
186
|
-
(x) => ClassifierFineTuningJobDetails$inboundSchema.parse(JSON.parse(x)),
|
|
187
|
-
`Failed to parse 'ClassifierFineTuningJobDetails' from JSON`,
|
|
188
|
-
);
|
|
189
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id: 197182b170fb
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import * as z from "zod/v4";
|
|
7
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
-
import {
|
|
9
|
-
FTClassifierLossFunction,
|
|
10
|
-
FTClassifierLossFunction$outboundSchema,
|
|
11
|
-
} from "./ftclassifierlossfunction.js";
|
|
12
|
-
|
|
13
|
-
export type ClassifierTarget = {
|
|
14
|
-
name: string;
|
|
15
|
-
labels: Array<string>;
|
|
16
|
-
weight?: number | undefined;
|
|
17
|
-
lossFunction?: FTClassifierLossFunction | null | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export type ClassifierTarget$Outbound = {
|
|
22
|
-
name: string;
|
|
23
|
-
labels: Array<string>;
|
|
24
|
-
weight: number;
|
|
25
|
-
loss_function?: string | null | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const ClassifierTarget$outboundSchema: z.ZodType<
|
|
30
|
-
ClassifierTarget$Outbound,
|
|
31
|
-
ClassifierTarget
|
|
32
|
-
> = z.object({
|
|
33
|
-
name: z.string(),
|
|
34
|
-
labels: z.array(z.string()),
|
|
35
|
-
weight: z.number().default(1),
|
|
36
|
-
lossFunction: z.nullable(FTClassifierLossFunction$outboundSchema).optional(),
|
|
37
|
-
}).transform((v) => {
|
|
38
|
-
return remap$(v, {
|
|
39
|
-
lossFunction: "loss_function",
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export function classifierTargetToJSON(
|
|
44
|
-
classifierTarget: ClassifierTarget,
|
|
45
|
-
): string {
|
|
46
|
-
return JSON.stringify(
|
|
47
|
-
ClassifierTarget$outboundSchema.parse(classifierTarget),
|
|
48
|
-
);
|
|
49
|
-
}
|