You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/agent-http-api.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ behave this way:
60
60
*`POST /agent-api/complete-experiment` should be called as soon as the agent
61
61
has nothing left to do with the current experiment; after the method returns
62
62
`next-experiment` will return a new experiment
63
+
*`POST /error` should be called only when the agent has encountered an error
63
64
64
65
## Available endpoints
65
66
@@ -227,3 +228,26 @@ The endpoint replies with `true`.
227
228
"result": true
228
229
}
229
230
```
231
+
232
+
### `POST /error`
233
+
234
+
This endpoint tells the Crater server the agent has encountered an error. The endpoint expects the error description to be provided as the request body, encoded in JSON:
0 commit comments