OpenaiChatResponseSpecification

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

Creates an instance of OpenaiChatResponseSpecification.

Parameters

assistantContent

The initial assistant response content.

responseFlow

A flow of string-based response chunks to be emitted sequentially.

responseChunks

A list of pre-defined response content chunks.

delayBetweenChunks

The delay applied between emitting each response chunk from the flow.

delay

The global delay applied to the response before sending it.

finishReason

The reason indicating why the completion process finished, such as "stop".