When an agent or team run on an Agno PublicSurface fails, the caller gets a short JSON error with a run_failed code and a correlation_id. Model errors and provider messages stay on your server.
HTTP/1.1 503 Service Unavailable
Content-Type: application/json
{"error": {"code": "run_failed", "message": "run failed", "correlation_id": "9f2c…"}}AgentOS logs a warning with the same correlation ID, so when a user reports an error you can find the request in your logs. A streaming run that fails ends with a RunError or TeamRunError event carrying the same code and ID.
Learn more about Public Surface in the documentation.
Frequently asked questions
It returns 503 run_failed with a short JSON error and a correlation_id. The body carries nothing from the failed run, so model and provider errors stay on the server.
AgentOS logs a warning for each failed public request with the same correlation ID, so you can search your server logs for the ID a caller reports.
The stream ends with a RunError or TeamRunError event whose content is "Run unavailable", with the same run_failed code and correlation_id.


