import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const evaluationConfig of client.evaluationConfigs.list()) {
console.log(evaluationConfig.id);
}{
"items": [
{
"evaluation_type": "studio",
"question_set_id": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"studio_project_id": "<string>",
"auto_evaluation_model": "gpt-4-32k-0613",
"auto_evaluation_parameters": {
"temperature": 1,
"batch_size": 13
}
}
],
"total_item_count": 123,
"current_page": 123,
"items_per_page": 123
}Lists all evaluation configs accessible to the user.
This API can be used to list evaluation configs. If a user has access to multiple accounts, all evaluation configs from all accounts the user is associated with will be returned.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const evaluationConfig of client.evaluationConfigs.list()) {
console.log(evaluationConfig.id);
}{
"items": [
{
"evaluation_type": "studio",
"question_set_id": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user",
"studio_project_id": "<string>",
"auto_evaluation_model": "gpt-4-32k-0613",
"auto_evaluation_parameters": {
"temperature": 1,
"batch_size": 13
}
}
],
"total_item_count": 123,
"current_page": 123,
"items_per_page": 123
}Page number for pagination to be returned by the given endpoint. Starts at page 1
x >= 1Maximum number of artifacts to be returned by the given endpoint. Defaults to 100 and cannot be greater than 10k.
1 <= x <= 10000Successful Response
The data returned for the current page.
Show child attributes
Evaluation type
studio, llm_auto, human, llm_benchmark The unique identifier of the entity.
The date and time when the entity was created in ISO format.
The ID of the account that owns the given entity.
The user who originally created the entity.
The type of identity that created the entity.
user, service_account The name of the model to be used for auto-evaluation
gpt-4-32k-0613, gpt-4-turbo-preview, gpt-4-turbo-2024-04-09, gpt-4o-2024-05-13, gpt-4o, gpt-4o-mini-2024-07-18, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o1, o1-mini, o3, o3-mini, o3-mini-2025-01-31, o4-mini, gpt-oss-120b, gpt-oss-20b, llama-3-70b-instruct, llama-3-1-70b-instruct, llama-3-70b-instruct-bedrock The total number of items of the query
The current page number.
The number of items per page.