> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Jobs

***

# Class: Jobs

Defined in: [src/utils/jobs.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/jobs.ts)

Jobs class for creating jobs in the Galileo platform.
Public-facing API that delegates to internal GalileoApiClient.
Matches Python Jobs class API from galileo-python/src/galileo/jobs.py

## Constructors

### Constructor

```ts theme={null}
new Jobs(): Jobs;
```

#### Returns

`Jobs`

## Methods

### create()

```ts theme={null}
create(
   projectId: string,
   name: string,
   runId: string,
   datasetId: string,
   promptTemplateId: string,
   taskType: TaskType,
   promptSettings: PromptRunSettings,
scorers?: ScorerConfig[]): Promise<CreateJobResponse>;
```

Defined in: [src/utils/jobs.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/jobs.ts)

Creates a new job in the Galileo platform for executing a prompt run with specified scorers.

#### Parameters

##### projectId

`string`

Unique identifier of the project

##### name

`string`

Name for the job (e.g., "playground\_run")

##### runId

`string`

Unique identifier of the run (typically experiment ID)

##### datasetId

`string`

Unique identifier of the dataset to process

##### promptTemplateId

`string`

Version ID of the prompt template to use

##### taskType

[`TaskType`](/sdk-api/typescript/reference/types/enumerations/TaskType)

Type of task to execute (e.g., EXPERIMENT\_TASK\_TYPE = 16)

##### promptSettings

[`PromptRunSettings`](/sdk-api/typescript/reference/types/interfaces/PromptRunSettings)

Settings for the prompt run (model, temperature, etc.)

##### scorers?

[`ScorerConfig`](/sdk-api/typescript/reference/types/type-aliases/ScorerConfig)\[]

Optional list of scorer configurations to apply

#### Returns

`Promise`\<[`CreateJobResponse`](/sdk-api/typescript/reference/types/type-aliases/CreateJobResponse)>

CreateJobResponse containing job details

#### Throws

Error if job creation fails
