import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationDatasetVersion = await client.evaluationDatasets.evaluationDatasetVersions.create(
'evaluation_dataset_id',
);
console.log(evaluationDatasetVersion.id);
{
"num": 123,
"evaluation_dataset_id": "<string>",
"draft": true,
"published_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"archived_at": "2023-11-07T05:31:56Z"
}
Creates a evaluation dataset version
This API can be used to create a evaluation dataset version. To use this API, review the request schema and pass in all fields that are required to create a evaluation dataset version.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationDatasetVersion = await client.evaluationDatasets.evaluationDatasetVersions.create(
'evaluation_dataset_id',
);
console.log(evaluationDatasetVersion.id);
{
"num": 123,
"evaluation_dataset_id": "<string>",
"draft": true,
"published_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"archived_at": "2023-11-07T05:31:56Z"
}
Successful Response
The response is of type object
.