OpenaiResponsesResponseSpecification
class OpenaiResponsesResponseSpecification(var assistantContent: String = "", var responseFlow: Flow<String>? = null, var responseChunks: List<String>? = null, var delayBetweenChunks: Duration = Duration.ZERO, delay: Duration = Duration.ZERO, var finishReason: String = "stop") : AbstractResponseSpecification<CreateResponseRequest, Response> (source)
Represents the specification for an OpenAI API response configuration. This class enables the customization of response properties, such as content, delays, and finishing behavior. It extends ChatResponseSpecification with additional properties and methods specific to the OpenAI API.
Author
Konstantin Pavlov
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".