Skip to main content
POST
/
v1
/
accounts
/
{account_id}
/
evaluatorsV2
Create Evaluator
curl --request POST \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/evaluatorsV2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "evaluator": {
    "displayName": "<string>",
    "description": "<string>",
    "criteria": [
      {
        "type": "TYPE_UNSPECIFIED",
        "name": "<string>",
        "description": "<string>",
        "codeSnippets": {
          "language": "<string>",
          "fileContents": {},
          "entryFile": "<string>",
          "entryFunc": "<string>"
        }
      }
    ],
    "requirements": "<string>",
    "entryPoint": "<string>",
    "commitHash": "<string>",
    "source": {
      "type": "TYPE_UNSPECIFIED",
      "githubRepositoryName": "<string>"
    },
    "defaultDataset": "<string>"
  },
  "evaluatorId": "<string>"
}
'
{
  "name": "<string>",
  "displayName": "<string>",
  "description": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updateTime": "2023-11-07T05:31:56Z",
  "state": "STATE_UNSPECIFIED",
  "criteria": [
    {
      "type": "TYPE_UNSPECIFIED",
      "name": "<string>",
      "description": "<string>",
      "codeSnippets": {
        "language": "<string>",
        "fileContents": {},
        "entryFile": "<string>",
        "entryFunc": "<string>"
      }
    }
  ],
  "requirements": "<string>",
  "entryPoint": "<string>",
  "status": {
    "code": "OK",
    "message": "<string>"
  },
  "commitHash": "<string>",
  "source": {
    "type": "TYPE_UNSPECIFIED",
    "githubRepositoryName": "<string>"
  },
  "defaultDataset": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

Body

application/json
evaluator
Next ID: 17 · object
required
evaluatorId
string

Response

200 - application/json

A successful response.

name
string
displayName
string
description
string
createTime
string<date-time>
createdBy
string
updateTime
string<date-time>
state
enum<string>
default:STATE_UNSPECIFIED
Available options:
STATE_UNSPECIFIED,
ACTIVE,
BUILDING,
BUILD_FAILED
criteria
Criteria for the evaluator, it should produce a score for the metric (name of criteria) Used for eval3 with UI upload path · object[]
requirements
string
entryPoint
string
status
Status of the evaluator, used to expose build status to the user · object
commitHash
string
source
object

Source information for the evaluator codebase.

defaultDataset
string