Package-level declarations

Types

Link copied to clipboard

Represents the specification for an OpenAI chat completion request.

Link copied to clipboard

OpenaiChatCompletionsBuildingStep is a specialized implementation of AbstractBuildingStep intended for constructing and managing chat completion responses as part of the OpenAI Mock Server setup.

Link copied to clipboard
class OpenaiChatResponseSpecification(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<ChatCompletionRequest, ChatResponse>

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.

Link copied to clipboard
class OpenaiStreamingChatResponseSpecification(responseFlow: Flow<String>? = null, responseChunks: List<String>? = null, delayBetweenChunks: Duration = Duration.ZERO, delay: Duration = Duration.ZERO, var finishReason: String = "stop", var sendDone: Boolean = false) : AbstractStreamingResponseSpecification<ChatCompletionRequest, String, String>

A specification class for defining and customizing the streaming chat response behavior in an OpenAI-like environment. This class provides configuration options for managing streaming responses, delays, chunking, and signaling the end of the response.