POST
/
agents
/
{AGENT_ID}
/
verifyOutput
curl --request POST \
  --url http:///%7B{api_host}%7D/agents/{AGENT_ID}/verifyOutput \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "task": "Fix the issue on this calculation",
  "previous": "const i = 1+1; i = 2;",
  "proposal": "const i = 1++; i = 2;"
}'
{
  "task": "Fix the issue on this calculation",
  "previous": "const i = 1+1; i = 2;",
  "proposal": "const i = 1++; i = 2;",
  "corrected_output": "let i = 1 + 1;\nconsole.log(i); // Output: 2"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

AGENT_ID
string
required

Body

application/json · object

The body is of type object.

Response

200 - application/json
OK

The response is of type object.