StreamEventError
SSE error event — a terminal error frame (e.g. guardrail_block, internal_error, deletion-in-progress). code is always present; the other fields depend on the error.
typestringrequired
Possible values: [error]
codestringrequired
messagestring
guardrailstring
categorystringnullable
StreamEventError
{
"type": "error",
"code": "string",
"message": "string",
"guardrail": "string",
"category": "string"
}