import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const evaluationDatasetGenerationJob of client.evaluationDatasets.generationJobs.list(
'evaluation_dataset_id',
)) {
console.log(evaluationDatasetGenerationJob.generation_job_id);
}{
"generation_jobs": [
{
"generation_job_id": "<string>",
"status": "Pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"num_test_cases": 123,
"num_completed_test_cases": 123,
"total_chunk_count": 123,
"failure_reason": "<string>"
}
]
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const evaluationDatasetGenerationJob of client.evaluationDatasets.generationJobs.list(
'evaluation_dataset_id',
)) {
console.log(evaluationDatasetGenerationJob.generation_job_id);
}{
"generation_jobs": [
{
"generation_job_id": "<string>",
"status": "Pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"num_test_cases": 123,
"num_completed_test_cases": 123,
"total_chunk_count": 123,
"failure_reason": "<string>"
}
]
}Successful Response
List of evaluation dataset generation jobs.
Show child attributes
ID of the async job associated with this evaluation dataset generation
Status of the async job
Pending, Running, Completed, Failed, Canceled The timestamp at which the upload job started.
The timestamp at which the upload job was last updated.
Optional number of test cases input to the job
Number of test cases that have been generated
Number of chunks in the knowledge base
Reason for the job's failure, if applicable