MCPcopy Create free account
hub / github.com/OpenPipe/ART / create

Method create

src/art/serverless/client.py:184–202  ·  view source on GitHub ↗
(
        self,
        *,
        model_id: str,
        trajectory_groups: list[TrajectoryGroup],
        experimental_config: ExperimentalTrainingConfig | None = None,
    )

Source from the content-addressed store, hash-verified

182
183class 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":

Callers

nothing calls this directly

Calls 1

model_dumpMethod · 0.80

Tested by

no test coverage detected