import os
from scale_gp import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
approve_auto_generated_draft_test_case_response = client.evaluation_datasets.autogenerated_draft_test_cases.approve(
autogenerated_draft_test_case_id="autogenerated_draft_test_case_id",
evaluation_dataset_id="evaluation_dataset_id",
)
print(approve_auto_generated_draft_test_case_response.autogenerated_draft_test_case_id){
"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 os
from scale_gp import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
approve_auto_generated_draft_test_case_response = client.evaluation_datasets.autogenerated_draft_test_cases.approve(
autogenerated_draft_test_case_id="autogenerated_draft_test_case_id",
evaluation_dataset_id="evaluation_dataset_id",
)
print(approve_auto_generated_draft_test_case_response.autogenerated_draft_test_case_id){
"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 failing test case