OpenaiResponsesResponseSpecification

constructor(assistantContent: String = "", responseFlow: Flow<String>? = null, responseChunks: List<String>? = null, delayBetweenChunks: Duration = Duration.ZERO, delay: Duration = Duration.ZERO, finishReason: String = "stop")(source)

Parameters

assistantContent

The textual content of the assistant's response. Defaults to an empty string.

responseFlow

A flow of strings representing incremental response content. Defaults to null.

responseChunks

A list of response content chunks for streaming scenarios. Defaults to null.

delayBetweenChunks

The delay applied between sending chunks of the response. Defaults to Duration.ZERO.

delay

A general delay for the response. Defaults to Duration.ZERO.

finishReason

The reason for the response termination. Defaults to "stop".