(
self,
*,
model_id: str,
trajectory_groups: list[TrajectoryGroup],
experimental_config: ExperimentalTrainingConfig | None = None,
)
| 182 | |
| 183 | class TrainingJobs(AsyncAPIResource): |
| 184 | async def create( |
| 185 | self, |
| 186 | *, |
| 187 | model_id: str, |
| 188 | trajectory_groups: list[TrajectoryGroup], |
| 189 | experimental_config: ExperimentalTrainingConfig | None = None, |
| 190 | ) -> TrainingJob: |
| 191 | return await self._post( |
| 192 | "/preview/training-jobs", |
| 193 | cast_to=TrainingJob, |
| 194 | body={ |
| 195 | "model_id": model_id, |
| 196 | "trajectory_groups": [ |
| 197 | trajectory_group.model_dump(mode="json") |
| 198 | for trajectory_group in trajectory_groups |
| 199 | ], |
| 200 | "experimental_config": experimental_config, |
| 201 | }, |
| 202 | ) |
| 203 | |
| 204 | @cached_property |
| 205 | def events(self) -> "TrainingJobEvents": |
nothing calls this directly
no test coverage detected