OpenaiChatResponseSpecification
A specification class for defining and customizing the response to a chat completion request in an OpenAI-like conversational environment. Allows the configuration of the assistant response content, response handling flow, chunking behavior, delays, and the designated finish reason.
This class extends ResponseSpecification and provides additional parameters specific to OpenAI chat responses such as assistant content manipulation and timing controls.
Author
Konstantin Pavlov
Parameters
The initial assistant response content.
A flow of string-based response chunks to be emitted sequentially.
A list of pre-defined response content chunks.
The delay applied between emitting each response chunk from the flow.
The global delay applied to the response before sending it.
The reason indicating why the completion process finished, such as "stop".