import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const autoGeneratedDraftTestCaseApproveBatchResponse = await client.evaluationDatasets.approveBatch(
'evaluation_dataset_id',
{ autogenerated_draft_test_cases: ['string'] },
);
console.log(autoGeneratedDraftTestCaseApproveBatchResponse.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 autoGeneratedDraftTestCaseApproveBatchResponse = await client.evaluationDatasets.approveBatch(
'evaluation_dataset_id',
{ autogenerated_draft_test_cases: ['string'] },
);
console.log(autoGeneratedDraftTestCaseApproveBatchResponse.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 a batch of autogenerated test case IDs for the evaluation dataset
Successful Response
The response is of type object
.