llama-stack-client 0.2.16 → 0.2.17

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.
Files changed (149) hide show
  1. package/LICENSE +4 -198
  2. package/index.d.mts +2 -2
  3. package/index.d.ts +2 -2
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +2 -6
  9. package/resources/agents/agents.d.ts +29 -2
  10. package/resources/agents/agents.d.ts.map +1 -1
  11. package/resources/agents/agents.js.map +1 -1
  12. package/resources/agents/agents.mjs.map +1 -1
  13. package/resources/agents/session.d.ts +18 -0
  14. package/resources/agents/session.d.ts.map +1 -1
  15. package/resources/agents/steps.d.ts +4 -1
  16. package/resources/agents/steps.d.ts.map +1 -1
  17. package/resources/agents/turn.d.ts +113 -8
  18. package/resources/agents/turn.d.ts.map +1 -1
  19. package/resources/benchmarks.d.ts +15 -0
  20. package/resources/benchmarks.d.ts.map +1 -1
  21. package/resources/chat/chat.d.ts +24 -0
  22. package/resources/chat/chat.d.ts.map +1 -1
  23. package/resources/chat/chat.js.map +1 -1
  24. package/resources/chat/chat.mjs.map +1 -1
  25. package/resources/chat/completions.d.ts +648 -6
  26. package/resources/chat/completions.d.ts.map +1 -1
  27. package/resources/datasets.d.ts +42 -6
  28. package/resources/datasets.d.ts.map +1 -1
  29. package/resources/eval/eval.d.ts +9 -0
  30. package/resources/eval/eval.d.ts.map +1 -1
  31. package/resources/eval/eval.js.map +1 -1
  32. package/resources/eval/eval.mjs.map +1 -1
  33. package/resources/files.d.ts +9 -0
  34. package/resources/files.d.ts.map +1 -1
  35. package/resources/index.d.ts +1 -1
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs +1 -1
  39. package/resources/index.mjs.map +1 -1
  40. package/resources/inference.d.ts +36 -0
  41. package/resources/inference.d.ts.map +1 -1
  42. package/resources/inspect.d.ts +45 -1
  43. package/resources/inspect.d.ts.map +1 -1
  44. package/resources/inspect.js +1 -1
  45. package/resources/inspect.mjs +1 -1
  46. package/resources/models.d.ts +21 -0
  47. package/resources/models.d.ts.map +1 -1
  48. package/resources/post-training/job.d.ts +95 -2
  49. package/resources/post-training/job.d.ts.map +1 -1
  50. package/resources/post-training/post-training.d.ts +206 -0
  51. package/resources/post-training/post-training.d.ts.map +1 -1
  52. package/resources/post-training/post-training.js.map +1 -1
  53. package/resources/post-training/post-training.mjs.map +1 -1
  54. package/resources/providers.d.ts +9 -0
  55. package/resources/providers.d.ts.map +1 -1
  56. package/resources/responses/input-items.d.ts +114 -0
  57. package/resources/responses/input-items.d.ts.map +1 -1
  58. package/resources/responses/responses.d.ts +1265 -12
  59. package/resources/responses/responses.d.ts.map +1 -1
  60. package/resources/responses/responses.js.map +1 -1
  61. package/resources/responses/responses.mjs.map +1 -1
  62. package/resources/routes.d.ts +10 -1
  63. package/resources/routes.d.ts.map +1 -1
  64. package/resources/routes.js +1 -1
  65. package/resources/routes.mjs +1 -1
  66. package/resources/safety.d.ts +72 -1
  67. package/resources/safety.d.ts.map +1 -1
  68. package/resources/safety.js +6 -0
  69. package/resources/safety.js.map +1 -1
  70. package/resources/safety.mjs +6 -0
  71. package/resources/safety.mjs.map +1 -1
  72. package/resources/scoring-functions.d.ts +51 -0
  73. package/resources/scoring-functions.d.ts.map +1 -1
  74. package/resources/scoring.d.ts +9 -0
  75. package/resources/scoring.d.ts.map +1 -1
  76. package/resources/shared.d.ts +209 -3
  77. package/resources/shared.d.ts.map +1 -1
  78. package/resources/shields.d.ts +7 -1
  79. package/resources/shields.d.ts.map +1 -1
  80. package/resources/synthetic-data-generation.d.ts +18 -1
  81. package/resources/synthetic-data-generation.d.ts.map +1 -1
  82. package/resources/synthetic-data-generation.js +3 -0
  83. package/resources/synthetic-data-generation.js.map +1 -1
  84. package/resources/synthetic-data-generation.mjs +3 -0
  85. package/resources/synthetic-data-generation.mjs.map +1 -1
  86. package/resources/telemetry.d.ts +214 -0
  87. package/resources/telemetry.d.ts.map +1 -1
  88. package/resources/tool-runtime/rag-tool.d.ts +16 -4
  89. package/resources/tool-runtime/rag-tool.d.ts.map +1 -1
  90. package/resources/tool-runtime/rag-tool.js +2 -2
  91. package/resources/tool-runtime/rag-tool.mjs +2 -2
  92. package/resources/tool-runtime/tool-runtime.d.ts +52 -1
  93. package/resources/tool-runtime/tool-runtime.d.ts.map +1 -1
  94. package/resources/tool-runtime/tool-runtime.js.map +1 -1
  95. package/resources/tool-runtime/tool-runtime.mjs.map +1 -1
  96. package/resources/toolgroups.d.ts +30 -0
  97. package/resources/toolgroups.d.ts.map +1 -1
  98. package/resources/tools.d.ts +45 -0
  99. package/resources/tools.d.ts.map +1 -1
  100. package/resources/vector-dbs.d.ts +45 -0
  101. package/resources/vector-dbs.d.ts.map +1 -1
  102. package/resources/vector-io.d.ts +9 -0
  103. package/resources/vector-io.d.ts.map +1 -1
  104. package/resources/vector-stores/files.d.ts +149 -1
  105. package/resources/vector-stores/files.d.ts.map +1 -1
  106. package/resources/vector-stores/vector-stores.d.ts +121 -1
  107. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  108. package/resources/vector-stores/vector-stores.js.map +1 -1
  109. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  110. package/src/index.ts +9 -1
  111. package/src/resources/agents/agents.ts +29 -2
  112. package/src/resources/agents/session.ts +18 -0
  113. package/src/resources/agents/steps.ts +4 -1
  114. package/src/resources/agents/turn.ts +113 -8
  115. package/src/resources/benchmarks.ts +15 -0
  116. package/src/resources/chat/chat.ts +24 -0
  117. package/src/resources/chat/completions.ts +678 -0
  118. package/src/resources/datasets.ts +42 -6
  119. package/src/resources/eval/eval.ts +9 -0
  120. package/src/resources/files.ts +9 -0
  121. package/src/resources/index.ts +7 -1
  122. package/src/resources/inference.ts +36 -0
  123. package/src/resources/inspect.ts +45 -1
  124. package/src/resources/models.ts +21 -0
  125. package/src/resources/post-training/job.ts +95 -2
  126. package/src/resources/post-training/post-training.ts +206 -0
  127. package/src/resources/providers.ts +9 -0
  128. package/src/resources/responses/input-items.ts +114 -0
  129. package/src/resources/responses/responses.ts +1265 -12
  130. package/src/resources/routes.ts +10 -1
  131. package/src/resources/safety.ts +83 -1
  132. package/src/resources/scoring-functions.ts +51 -0
  133. package/src/resources/scoring.ts +9 -0
  134. package/src/resources/shared.ts +209 -3
  135. package/src/resources/shields.ts +7 -1
  136. package/src/resources/synthetic-data-generation.ts +18 -1
  137. package/src/resources/telemetry.ts +214 -0
  138. package/src/resources/tool-runtime/rag-tool.ts +16 -4
  139. package/src/resources/tool-runtime/tool-runtime.ts +52 -1
  140. package/src/resources/toolgroups.ts +30 -0
  141. package/src/resources/tools.ts +45 -0
  142. package/src/resources/vector-dbs.ts +45 -0
  143. package/src/resources/vector-io.ts +9 -0
  144. package/src/resources/vector-stores/files.ts +149 -1
  145. package/src/resources/vector-stores/vector-stores.ts +121 -1
  146. package/src/version.ts +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. package/version.mjs +1 -1
@@ -85,27 +85,42 @@ export class Datasets extends APIResource {
85
85
  }
86
86
  }
87
87
 
88
+ /**
89
+ * Response from listing datasets.
90
+ */
88
91
  export interface ListDatasetsResponse {
92
+ /**
93
+ * List of datasets
94
+ */
89
95
  data: DatasetListResponse;
90
96
  }
91
97
 
98
+ /**
99
+ * Dataset resource for storing and accessing training or evaluation data.
100
+ */
92
101
  export interface DatasetRetrieveResponse {
93
102
  identifier: string;
94
103
 
104
+ /**
105
+ * Additional metadata for the dataset
106
+ */
95
107
  metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
96
108
 
97
109
  provider_id: string;
98
110
 
99
111
  /**
100
- * Purpose of the dataset. Each purpose has a required input data schema.
112
+ * Purpose of the dataset indicating its intended use
101
113
  */
102
114
  purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
103
115
 
104
116
  /**
105
- * A dataset that can be obtained from a URI.
117
+ * Data source configuration for the dataset
106
118
  */
107
119
  source: DatasetRetrieveResponse.UriDataSource | DatasetRetrieveResponse.RowsDataSource;
108
120
 
121
+ /**
122
+ * Type of resource, always 'dataset' for datasets
123
+ */
109
124
  type: 'dataset';
110
125
 
111
126
  provider_resource_id?: string;
@@ -141,26 +156,38 @@ export namespace DatasetRetrieveResponse {
141
156
  }
142
157
  }
143
158
 
159
+ /**
160
+ * List of datasets
161
+ */
144
162
  export type DatasetListResponse = Array<DatasetListResponse.DatasetListResponseItem>;
145
163
 
146
164
  export namespace DatasetListResponse {
165
+ /**
166
+ * Dataset resource for storing and accessing training or evaluation data.
167
+ */
147
168
  export interface DatasetListResponseItem {
148
169
  identifier: string;
149
170
 
171
+ /**
172
+ * Additional metadata for the dataset
173
+ */
150
174
  metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
151
175
 
152
176
  provider_id: string;
153
177
 
154
178
  /**
155
- * Purpose of the dataset. Each purpose has a required input data schema.
179
+ * Purpose of the dataset indicating its intended use
156
180
  */
157
181
  purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
158
182
 
159
183
  /**
160
- * A dataset that can be obtained from a URI.
184
+ * Data source configuration for the dataset
161
185
  */
162
186
  source: DatasetListResponseItem.UriDataSource | DatasetListResponseItem.RowsDataSource;
163
187
 
188
+ /**
189
+ * Type of resource, always 'dataset' for datasets
190
+ */
164
191
  type: 'dataset';
165
192
 
166
193
  provider_resource_id?: string;
@@ -217,23 +244,32 @@ export interface DatasetIterrowsResponse {
217
244
  url?: string;
218
245
  }
219
246
 
247
+ /**
248
+ * Dataset resource for storing and accessing training or evaluation data.
249
+ */
220
250
  export interface DatasetRegisterResponse {
221
251
  identifier: string;
222
252
 
253
+ /**
254
+ * Additional metadata for the dataset
255
+ */
223
256
  metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
224
257
 
225
258
  provider_id: string;
226
259
 
227
260
  /**
228
- * Purpose of the dataset. Each purpose has a required input data schema.
261
+ * Purpose of the dataset indicating its intended use
229
262
  */
230
263
  purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
231
264
 
232
265
  /**
233
- * A dataset that can be obtained from a URI.
266
+ * Data source configuration for the dataset
234
267
  */
235
268
  source: DatasetRegisterResponse.UriDataSource | DatasetRegisterResponse.RowsDataSource;
236
269
 
270
+ /**
271
+ * Type of resource, always 'dataset' for datasets
272
+ */
237
273
  type: 'dataset';
238
274
 
239
275
  provider_resource_id?: string;
@@ -129,9 +129,18 @@ export interface EvaluateResponse {
129
129
  scores: { [key: string]: Shared.ScoringResult };
130
130
  }
131
131
 
132
+ /**
133
+ * A job execution instance with status tracking.
134
+ */
132
135
  export interface Job {
136
+ /**
137
+ * Unique identifier for the job
138
+ */
133
139
  job_id: string;
134
140
 
141
+ /**
142
+ * Current execution status of the job
143
+ */
135
144
  status: 'completed' | 'in_progress' | 'failed' | 'scheduled' | 'cancelled';
136
145
  }
137
146
 
@@ -122,10 +122,19 @@ export interface ListFilesResponse {
122
122
  */
123
123
  data: Array<File>;
124
124
 
125
+ /**
126
+ * ID of the first file in the list for pagination
127
+ */
125
128
  first_id: string;
126
129
 
130
+ /**
131
+ * Whether there are more files available beyond this page
132
+ */
127
133
  has_more: boolean;
128
134
 
135
+ /**
136
+ * ID of the last file in the list for pagination
137
+ */
129
138
  last_id: string;
130
139
 
131
140
  /**
@@ -106,7 +106,13 @@ export {
106
106
  type ResponseListParams,
107
107
  } from './responses/responses';
108
108
  export { Routes, type ListRoutesResponse, type RouteListResponse } from './routes';
109
- export { Safety, type RunShieldResponse, type SafetyRunShieldParams } from './safety';
109
+ export {
110
+ Safety,
111
+ type CreateResponse,
112
+ type RunShieldResponse,
113
+ type SafetyCreateParams,
114
+ type SafetyRunShieldParams,
115
+ } from './safety';
110
116
  export {
111
117
  Scoring,
112
118
  type ScoringScoreResponse,
@@ -106,6 +106,9 @@ export interface ChatCompletionResponseStreamChunk {
106
106
  */
107
107
  event: ChatCompletionResponseStreamChunk.Event;
108
108
 
109
+ /**
110
+ * (Optional) List of metrics associated with the API response
111
+ */
109
112
  metrics?: Array<ChatCompletionResponseStreamChunk.Metric>;
110
113
  }
111
114
 
@@ -136,11 +139,23 @@ export namespace ChatCompletionResponseStreamChunk {
136
139
  stop_reason?: 'end_of_turn' | 'end_of_message' | 'out_of_tokens';
137
140
  }
138
141
 
142
+ /**
143
+ * A metric value included in API responses.
144
+ */
139
145
  export interface Metric {
146
+ /**
147
+ * The name of the metric
148
+ */
140
149
  metric: string;
141
150
 
151
+ /**
152
+ * The numeric value of the metric
153
+ */
142
154
  value: number;
143
155
 
156
+ /**
157
+ * (Optional) The unit of measurement for the metric value
158
+ */
144
159
  unit?: string;
145
160
  }
146
161
  }
@@ -164,15 +179,30 @@ export interface CompletionResponse {
164
179
  */
165
180
  logprobs?: Array<TokenLogProbs>;
166
181
 
182
+ /**
183
+ * (Optional) List of metrics associated with the API response
184
+ */
167
185
  metrics?: Array<CompletionResponse.Metric>;
168
186
  }
169
187
 
170
188
  export namespace CompletionResponse {
189
+ /**
190
+ * A metric value included in API responses.
191
+ */
171
192
  export interface Metric {
193
+ /**
194
+ * The name of the metric
195
+ */
172
196
  metric: string;
173
197
 
198
+ /**
199
+ * The numeric value of the metric
200
+ */
174
201
  value: number;
175
202
 
203
+ /**
204
+ * (Optional) The unit of measurement for the metric value
205
+ */
176
206
  unit?: string;
177
207
  }
178
208
  }
@@ -199,7 +229,13 @@ export interface TokenLogProbs {
199
229
  logprobs_by_token: { [key: string]: number };
200
230
  }
201
231
 
232
+ /**
233
+ * Response from a batch chat completion request.
234
+ */
202
235
  export interface InferenceBatchChatCompletionResponse {
236
+ /**
237
+ * List of chat completion responses, one for each conversation in the batch
238
+ */
203
239
  batch: Array<Shared.ChatCompletionResponse>;
204
240
  }
205
241
 
@@ -5,7 +5,7 @@ import * as Core from '../core';
5
5
 
6
6
  export class Inspect extends APIResource {
7
7
  /**
8
- * Get the health of the service.
8
+ * Get the current health status of the service.
9
9
  */
10
10
  health(options?: Core.RequestOptions): Core.APIPromise<HealthInfo> {
11
11
  return this._client.get('/v1/health', options);
@@ -19,31 +19,75 @@ export class Inspect extends APIResource {
19
19
  }
20
20
  }
21
21
 
22
+ /**
23
+ * Health status information for the service.
24
+ */
22
25
  export interface HealthInfo {
26
+ /**
27
+ * Current health status of the service
28
+ */
23
29
  status: 'OK' | 'Error' | 'Not Implemented';
24
30
  }
25
31
 
32
+ /**
33
+ * Information about a registered provider including its configuration and health
34
+ * status.
35
+ */
26
36
  export interface ProviderInfo {
37
+ /**
38
+ * The API name this provider implements
39
+ */
27
40
  api: string;
28
41
 
42
+ /**
43
+ * Configuration parameters for the provider
44
+ */
29
45
  config: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
30
46
 
47
+ /**
48
+ * Current health status of the provider
49
+ */
31
50
  health: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
32
51
 
52
+ /**
53
+ * Unique identifier for the provider
54
+ */
33
55
  provider_id: string;
34
56
 
57
+ /**
58
+ * The type of provider implementation
59
+ */
35
60
  provider_type: string;
36
61
  }
37
62
 
63
+ /**
64
+ * Information about an API route including its path, method, and implementing
65
+ * providers.
66
+ */
38
67
  export interface RouteInfo {
68
+ /**
69
+ * HTTP method for the route
70
+ */
39
71
  method: string;
40
72
 
73
+ /**
74
+ * List of provider types that implement this route
75
+ */
41
76
  provider_types: Array<string>;
42
77
 
78
+ /**
79
+ * The API endpoint path
80
+ */
43
81
  route: string;
44
82
  }
45
83
 
84
+ /**
85
+ * Version information for the service.
86
+ */
46
87
  export interface VersionInfo {
88
+ /**
89
+ * Version number of the service
90
+ */
47
91
  version: string;
48
92
  }
49
93
 
@@ -42,17 +42,38 @@ export interface ListModelsResponse {
42
42
  data: ModelListResponse;
43
43
  }
44
44
 
45
+ /**
46
+ * A model resource representing an AI model registered in Llama Stack.
47
+ */
45
48
  export interface Model {
49
+ /**
50
+ * Unique identifier for this resource in llama stack
51
+ */
46
52
  identifier: string;
47
53
 
54
+ /**
55
+ * Any additional metadata for this model
56
+ */
48
57
  metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
49
58
 
59
+ /**
60
+ * The type of model (LLM or embedding model)
61
+ */
50
62
  model_type: 'llm' | 'embedding';
51
63
 
64
+ /**
65
+ * ID of the provider that owns this resource
66
+ */
52
67
  provider_id: string;
53
68
 
69
+ /**
70
+ * The resource type, always 'model' for model resources
71
+ */
54
72
  type: 'model';
55
73
 
74
+ /**
75
+ * Unique identifier for this resource in the provider
76
+ */
56
77
  provider_resource_id?: string;
57
78
  }
58
79
 
@@ -56,37 +56,76 @@ export namespace JobListResponse {
56
56
  * Artifacts of a finetuning job.
57
57
  */
58
58
  export interface JobArtifactsResponse {
59
+ /**
60
+ * List of model checkpoints created during training
61
+ */
59
62
  checkpoints: Array<JobArtifactsResponse.Checkpoint>;
60
63
 
64
+ /**
65
+ * Unique identifier for the training job
66
+ */
61
67
  job_uuid: string;
62
68
  }
63
69
 
64
70
  export namespace JobArtifactsResponse {
65
71
  /**
66
- * Checkpoint created during training runs
72
+ * Checkpoint created during training runs.
67
73
  */
68
74
  export interface Checkpoint {
75
+ /**
76
+ * Timestamp when the checkpoint was created
77
+ */
69
78
  created_at: string;
70
79
 
80
+ /**
81
+ * Training epoch when the checkpoint was saved
82
+ */
71
83
  epoch: number;
72
84
 
85
+ /**
86
+ * Unique identifier for the checkpoint
87
+ */
73
88
  identifier: string;
74
89
 
90
+ /**
91
+ * File system path where the checkpoint is stored
92
+ */
75
93
  path: string;
76
94
 
95
+ /**
96
+ * Identifier of the training job that created this checkpoint
97
+ */
77
98
  post_training_job_id: string;
78
99
 
100
+ /**
101
+ * (Optional) Training metrics associated with this checkpoint
102
+ */
79
103
  training_metrics?: Checkpoint.TrainingMetrics;
80
104
  }
81
105
 
82
106
  export namespace Checkpoint {
107
+ /**
108
+ * (Optional) Training metrics associated with this checkpoint
109
+ */
83
110
  export interface TrainingMetrics {
111
+ /**
112
+ * Training epoch number
113
+ */
84
114
  epoch: number;
85
115
 
116
+ /**
117
+ * Perplexity metric indicating model confidence
118
+ */
86
119
  perplexity: number;
87
120
 
121
+ /**
122
+ * Loss value on the training dataset
123
+ */
88
124
  train_loss: number;
89
125
 
126
+ /**
127
+ * Loss value on the validation dataset
128
+ */
90
129
  validation_loss: number;
91
130
  }
92
131
  }
@@ -96,47 +135,101 @@ export namespace JobArtifactsResponse {
96
135
  * Status of a finetuning job.
97
136
  */
98
137
  export interface JobStatusResponse {
138
+ /**
139
+ * List of model checkpoints created during training
140
+ */
99
141
  checkpoints: Array<JobStatusResponse.Checkpoint>;
100
142
 
143
+ /**
144
+ * Unique identifier for the training job
145
+ */
101
146
  job_uuid: string;
102
147
 
148
+ /**
149
+ * Current status of the training job
150
+ */
103
151
  status: 'completed' | 'in_progress' | 'failed' | 'scheduled' | 'cancelled';
104
152
 
153
+ /**
154
+ * (Optional) Timestamp when the job finished, if completed
155
+ */
105
156
  completed_at?: string;
106
157
 
158
+ /**
159
+ * (Optional) Information about computational resources allocated to the job
160
+ */
107
161
  resources_allocated?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
108
162
 
163
+ /**
164
+ * (Optional) Timestamp when the job was scheduled
165
+ */
109
166
  scheduled_at?: string;
110
167
 
168
+ /**
169
+ * (Optional) Timestamp when the job execution began
170
+ */
111
171
  started_at?: string;
112
172
  }
113
173
 
114
174
  export namespace JobStatusResponse {
115
175
  /**
116
- * Checkpoint created during training runs
176
+ * Checkpoint created during training runs.
117
177
  */
118
178
  export interface Checkpoint {
179
+ /**
180
+ * Timestamp when the checkpoint was created
181
+ */
119
182
  created_at: string;
120
183
 
184
+ /**
185
+ * Training epoch when the checkpoint was saved
186
+ */
121
187
  epoch: number;
122
188
 
189
+ /**
190
+ * Unique identifier for the checkpoint
191
+ */
123
192
  identifier: string;
124
193
 
194
+ /**
195
+ * File system path where the checkpoint is stored
196
+ */
125
197
  path: string;
126
198
 
199
+ /**
200
+ * Identifier of the training job that created this checkpoint
201
+ */
127
202
  post_training_job_id: string;
128
203
 
204
+ /**
205
+ * (Optional) Training metrics associated with this checkpoint
206
+ */
129
207
  training_metrics?: Checkpoint.TrainingMetrics;
130
208
  }
131
209
 
132
210
  export namespace Checkpoint {
211
+ /**
212
+ * (Optional) Training metrics associated with this checkpoint
213
+ */
133
214
  export interface TrainingMetrics {
215
+ /**
216
+ * Training epoch number
217
+ */
134
218
  epoch: number;
135
219
 
220
+ /**
221
+ * Perplexity metric indicating model confidence
222
+ */
136
223
  perplexity: number;
137
224
 
225
+ /**
226
+ * Loss value on the training dataset
227
+ */
138
228
  train_loss: number;
139
229
 
230
+ /**
231
+ * Loss value on the validation dataset
232
+ */
140
233
  validation_loss: number;
141
234
  }
142
235
  }