ModelMessageStopEvent
Defined in: src/models/streaming.ts:182
Event emitted when the message completes.
Implements
Section titled “Implements”Properties
Section titled “Properties”readonly type: "modelMessageStopEvent";Defined in: src/models/streaming.ts:186
Discriminator for message stop events.
Implementation of
Section titled “Implementation of”ModelMessageStopEventData.typestopReason
Section titled “stopReason”readonly stopReason: StopReason;Defined in: src/models/streaming.ts:191
Reason why generation stopped.
Implementation of
Section titled “Implementation of”ModelMessageStopEventData.stopReasonadditionalModelResponseFields?
Section titled “additionalModelResponseFields?”readonly optional additionalModelResponseFields: JSONValue;Defined in: src/models/streaming.ts:196
Additional provider-specific response fields.
Implementation of
Section titled “Implementation of”ModelMessageStopEventData.additionalModelResponseFields