ResponseIncompleteEvent

class ResponseIncompleteEvent(val sequenceNumber: Int, val response: ModelResponse) : ResponseSnapshotEvent

Terminal event of a response that was cut short — by max_output_tokens or the content filter; see ModelResponse.incompleteDetails.

Constructors

Link copied to clipboard
constructor(sequenceNumber: Int, response: ModelResponse)

Properties

Link copied to clipboard

Whether this is the last event of the stream.

Link copied to clipboard
open override val response: ModelResponse

The response as it stands: freshly created, in progress, or finished — the terminal events carry the complete output and ModelResponse.usage.

Link copied to clipboard
open override val sequenceNumber: Int

Position of the event in the stream; increases monotonically.

Link copied to clipboard
open override val type: String

Raw event type, as sent in the type field.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String