import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const publishEvaluationDatasetDraftResponse = await client.evaluationDatasets.publish(
'evaluation_dataset_id',
);
console.log(publishEvaluationDatasetDraftResponse.autogenerated_draft_test_cases);
{
"success": true,
"autogenerated_draft_test_cases": [
{
"autogenerated_draft_test_case_id": "<string>",
"success": true,
"failed_chunks": [
{
"chunk_text": "<string>",
"artifact_id": "<string>",
"artifact_name": "<string>",
"artifact_content_modification_identifier": "<string>"
}
]
}
]
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const publishEvaluationDatasetDraftResponse = await client.evaluationDatasets.publish(
'evaluation_dataset_id',
);
console.log(publishEvaluationDatasetDraftResponse.autogenerated_draft_test_cases);
{
"success": true,
"autogenerated_draft_test_cases": [
{
"autogenerated_draft_test_case_id": "<string>",
"success": true,
"failed_chunks": [
{
"chunk_text": "<string>",
"artifact_id": "<string>",
"artifact_name": "<string>",
"artifact_content_modification_identifier": "<string>"
}
]
}
]
}
Force approve an evaluation dataset
Successful Response
The response is of type object
.