| title | InternChatStreamError |
|---|
A failure after the response headers were sent. The chunk that carries it has finish_reason: "error", then the final empty-choices chunk and [DONE] follow. Reasons here are attachment_failed, busy, client_closed_request, interaction_not_pending, interaction_unknown, intern_unreachable, run_ended, stream_severed, timeout or turn_failed. run_ended reports an ending the intern confirmed, such as a cancellation or a deadline, while stream_severed reports a connection lost without that confirmation.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
code |
int | ✔️ | The HTTP status this failure would have had before the stream opened. | |
message |
str | ✔️ | N/A | |
metadata |
components.InternChatErrorMetadata | ✔️ | Machine-readable detail for the failure. | { "reason": "interaction_not_pending", "retryable": false } |