AbstractBuildingStep
Defines a building step for constructing a mock response based on specific request scenarios within a mock server for large language model interactions.
This class provides methods to specify both expected responses and error responses for completions requests. It serves as a framework for configuring the behavior of a mock server's response mechanism.
Type Parameters
The type of the request body for the interaction.
A type that extends AbstractResponseSpecification, representing configuration for the expected response specification.
Inheritors
Functions
Specifies an erroneous response for a completions request.
Specifies an error response for a given request scenario. This allows defining the characteristics of an erroneous response, such as the HTTP status, response body, headers, delay, and more.