curl --request GET \
--url https://api.fireworks.ai/v1/accounts/{account_id}/evaluators \
--header 'Authorization: Bearer <token>'{
"evaluators": [
{
"name": "<string>",
"displayName": "<string>",
"description": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updateTime": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED",
"multiMetrics": true,
"criteria": [
{
"type": "TYPE_UNSPECIFIED",
"name": "<string>",
"description": "<string>",
"codeSnippets": {
"language": "<string>",
"fileContents": {},
"entryFile": "<string>",
"entryFunc": "<string>"
}
}
],
"requirements": "<string>",
"rollupSettings": {
"criteriaWeights": {},
"pythonCode": "<string>",
"successThreshold": 123,
"skipRollup": true
},
"entryPoint": "<string>",
"status": {
"code": "OK",
"message": "<string>"
},
"commitHash": "<string>",
"source": {
"type": "TYPE_UNSPECIFIED",
"githubRepositoryName": "<string>"
},
"defaultDataset": "<string>"
}
],
"nextPageToken": "<string>",
"totalSize": 123
}curl --request GET \
--url https://api.fireworks.ai/v1/accounts/{account_id}/evaluators \
--header 'Authorization: Bearer <token>'{
"evaluators": [
{
"name": "<string>",
"displayName": "<string>",
"description": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updateTime": "2023-11-07T05:31:56Z",
"state": "STATE_UNSPECIFIED",
"multiMetrics": true,
"criteria": [
{
"type": "TYPE_UNSPECIFIED",
"name": "<string>",
"description": "<string>",
"codeSnippets": {
"language": "<string>",
"fileContents": {},
"entryFile": "<string>",
"entryFunc": "<string>"
}
}
],
"requirements": "<string>",
"rollupSettings": {
"criteriaWeights": {},
"pythonCode": "<string>",
"successThreshold": 123,
"skipRollup": true
},
"entryPoint": "<string>",
"status": {
"code": "OK",
"message": "<string>"
},
"commitHash": "<string>",
"source": {
"type": "TYPE_UNSPECIFIED",
"githubRepositoryName": "<string>"
},
"defaultDataset": "<string>"
}
],
"nextPageToken": "<string>",
"totalSize": 123
}Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
The Account Id
The fields to be returned in the response. If empty or "*", all fields will be returned.
A successful response.
Show child attributes
STATE_UNSPECIFIED, ACTIVE, BUILDING, BUILD_FAILED If true, the criteria will report multiple metric-score pairs Otherwise, each criteria will report the score assigned to the criteria name as metric.
Show child attributes
TYPE_UNSPECIFIED, CODE_SNIPPETS Show child attributes
Strategy for metrics reports summary/rollup. e.g. {metric1: 1, metric2: 0.3}, rollup_settings could be criteria_weights: {metric1: 0.5, metric2: 0.5}, then final score will be 0.5 * 1 + 0.5 * 0.3 = 0.65 If skip_rollup is true, the rollup step will be skipped since the criteria will also report the rollup score and metrics altogether.
Show child attributes
Show child attributes
The status code.
OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, DATA_LOSS A developer-facing error message in English.
Source information for the evaluator codebase.
Show child attributes
Identifies how the evaluator source code is provided.
TYPE_UNSPECIFIED, TYPE_UPLOAD, TYPE_GITHUB, TYPE_TEMPORARY Normalized GitHub repository name (e.g. owner/repository) when the source is GitHub.
Was this page helpful?