What event types does the run event stream send?
| Event | Data | When |
|---|---|---|
status | { "status": "running" } | The run's status changed |
step | A step object | Cosmos wrote a message or used a tool |
done | The final run | The run finished (completed, failed or cancelled) |
timeout | { "message", "after" } | The connection reached 10 minutes; the run continues |
error | { "code", "message" } | The stream had to stop, for example the key was revoked |
How to react#
step: show progress; rememberindex + 1as youraftervalue.done: you have the final run; stop reading.timeout: reconnect with?after=set to theaftervalue.error: check the code; reconnect with?after=Nif it makes sense (not if the key was revoked).
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.