Skip to main content

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.


Class: Jobs

Defined in: 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

new Jobs(): Jobs;

Returns

Jobs

Methods

create()

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 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 Type of task to execute (e.g., EXPERIMENT_TASK_TYPE = 16)
promptSettings
PromptRunSettings Settings for the prompt run (model, temperature, etc.)
scorers?
ScorerConfig[] Optional list of scorer configurations to apply

Returns

Promise<CreateJobResponse> CreateJobResponse containing job details

Throws

Error if job creation fails