Skip to main content
POST
/
agents
/
{AGENT_ID}
/
verifyOutput
POST - /agents/{id}/verifyOutput
curl --request POST \
  --url 'http://{{api_host}}/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

The body is of type object.

Response

200 - application/json

OK

The response is of type object.