Types

Link copied to clipboard

The provider ended the turn with a finish reason other than stop (for example length), or without one.

Link copied to clipboard

The stream ended without a terminal marker. evidence holds whatever arrived before the end, or is null when nothing did.

Link copied to clipboard
data class InvalidStreamEvent(val payload: String) : StreamErrorReason

A stream frame could not be parsed or had an unexpected shape.

Link copied to clipboard
data class ProviderError(val detail: String, val status: Int? = null) : StreamErrorReason

The provider sent an error frame, or answered with a non-2xx HTTP status. detail is the provider's error payload or response body.

Link copied to clipboard
data class RequestFailed(val cause: Throwable) : StreamErrorReason

The connection or the body read failed.

Link copied to clipboard

The gateway does not implement StreamEventsGateway. No request was sent.

Link copied to clipboard

The provider streamed a native tool call. This API supplies no tools and executes none.