trainingProvider
The trainingProvider router: 13 methods of the training-provider capability, with tier, scope, input and output.
Capability training-provider · scope system · mode collection · source packages/types/src/capabilities/training-provider.cap.ts:186.
Every method is called at /trpc/trainingProvider.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
describe | query | admin | admin only | no |
describeTypes | query | admin | admin only | no |
listEntries | query | admin | admin only | no |
estimateJob | query | admin | admin only | no |
uploadDataset | mutation | admin | admin only | no |
submitJob | mutation | admin | admin only | no |
getJob | query | admin | admin only | no |
listJobEvents | query | admin | admin only | no |
cancelJob | mutation | admin | admin only | no |
readResult | mutation | admin | admin only | no |
offerArtifact | mutation | admin | admin only | no |
cleanupJob | mutation | admin | admin only | no |
listJobs | query | admin | admin only | no |
trainingProvider.describe
- Kind: query —
GET /trpc/trainingProvider.describe - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.describeon your hub
Input
{}Output
TrainingProviderDescriptorSchema[]Shapes: TrainingProviderDescriptorSchema
trainingProvider.describeTypes
- Kind: query —
GET /trpc/trainingProvider.describeTypes - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.describeTypeson your hub
Input
{}Output
TrainingProviderTypeSchema[]Shapes: TrainingProviderTypeSchema
trainingProvider.listEntries
- Kind: query —
GET /trpc/trainingProvider.listEntries - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.listEntrieson your hub
Input
{}Output
TrainingProviderEntrySchema[]Shapes: TrainingProviderEntrySchema
trainingProvider.estimateJob
- Kind: query —
GET /trpc/trainingProvider.estimateJob - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.estimateJobon your hub
Input
{ entryId: string; gpuType: string; region: string; datasetBytes: number; gpuSecondsLow: number; gpuSecondsHigh: number }Output
{ usdLow: number; usdHigh: number; notes: string[] }trainingProvider.uploadDataset
- Kind: mutation —
POST /trpc/trainingProvider.uploadDataset - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.uploadDataseton your hub
Input
{ entryId: string; jobKey: string; ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number | null } }Output
{ bytes: number; sha256: string }trainingProvider.submitJob
- Kind: mutation —
POST /trpc/trainingProvider.submitJob - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.submitJobon your hub
Input
{ entryId: string; jobKey: string; trainer: TrainerSourceRefSchema; jobSpecJson: string; gpuType: string; region: string; maxRuntimeSec: number }Output
ProviderJobStatusSchemaShapes: TrainerSourceRefSchema · ProviderJobStatusSchema
trainingProvider.getJob
- Kind: query —
GET /trpc/trainingProvider.getJob - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.getJobon your hub
Input
{ entryId: string; jobKey: string }Output
ProviderJobStatusSchemaShapes: ProviderJobStatusSchema
trainingProvider.listJobEvents
- Kind: query —
GET /trpc/trainingProvider.listJobEvents - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.listJobEventson your hub
Input
{ entryId: string; jobKey: string; cursor?: string; max: number }Output
{ lines: TrainingLogLineSchema[]; cursor: string }Shapes: TrainingLogLineSchema
trainingProvider.cancelJob
- Kind: mutation —
POST /trpc/trainingProvider.cancelJob - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.cancelJobon your hub
Input
{ entryId: string; jobKey: string }Output
{ ok: true }trainingProvider.readResult
- Kind: mutation —
POST /trpc/trainingProvider.readResult - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.readResulton your hub
Input
{ entryId: string; jobKey: string }Output
{ found: boolean; text?: string }trainingProvider.offerArtifact
- Kind: mutation —
POST /trpc/trainingProvider.offerArtifact - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.offerArtifacton your hub
Input
{ entryId: string; jobKey: string; path: "bundle.tar" }Output
{ ticket: { url: string; hostNodeId: string; expiresAtMs: number; declaredBytes: number | null } }trainingProvider.cleanupJob
- Kind: mutation —
POST /trpc/trainingProvider.cleanupJob - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.cleanupJobon your hub
Input
{ entryId: string; jobKey: string }Output
{ deleted: string[] }trainingProvider.listJobs
- Kind: query —
GET /trpc/trainingProvider.listJobs - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=trainingProvider.listJobson your hub
Input
{ entryId?: string }Output
ProviderJobStatusSchema[]Shapes: ProviderJobStatusSchema