메인 콘텐츠로 건너뛰기
POST
/
v2
/
{entity}
/
{project}
/
scores
점수 생성
curl --request POST \
  --url https://api.example.com/v2/{entity}/{project}/scores \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prediction_id": "<string>",
  "scorer": "<string>",
  "value": 123,
  "evaluation_run_id": "<string>"
}
'
{
  "score_id": "<string>"
}

인증

Authorization
string
header
필수

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

경로 매개변수

entity
string
필수
project
string
필수

본문

application/json

REST API를 통해 Score를 생성할 때 사용하는 요청 본문입니다.

이 모델에는 project_id가 포함되지 않습니다. RESTful endpoints의 URL 경로에서 가져오기 때문입니다.

prediction_id
string
필수

prediction ID

scorer
string
필수

scorer 레퍼런스(weave:// URI)

value
number
필수

점수 값

evaluation_run_id
string | null

이 점수를 하위 call로 연결하기 위한 선택 Evaluation run ID

응답

성공 응답

score_id
string
필수

점수 ID