ResponseConnection
interface ResponseConnection
A scoped Responses WebSocket. Keep one event collector active while sending successive turns.
Properties
Functions
Link copied to clipboard
abstract suspend fun create(request: ResponseCreateRequest, streamId: String? = null, generate: Boolean? = null)
Sends a response.create event with request fields at the top level. Sends are serialized. streamId selects a multiplexed conversation lane; generate=false warms up state. Background requests are unsupported on WebSockets and are rejected before sending.