import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationDatasetGenerationJob = await client.evaluationDatasets.generationJobs.retrieve(
'evaluation_dataset_id',
'generation_job_id',
);
console.log(evaluationDatasetGenerationJob.generation_job_id);{
"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',
});
const evaluationDatasetGenerationJob = await client.evaluationDatasets.generationJobs.retrieve(
'evaluation_dataset_id',
'generation_job_id',
);
console.log(evaluationDatasetGenerationJob.generation_job_id);{
"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
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