OpenaiResponsesBuildingStep

Represents a building step in the MokksyServer framework for configuring OpenAI responses.

Author

Konstantin Pavlov

Parameters

mokksy

The instance of MokksyServer used for this building step.

buildingStep

The building step associated with configuring responses of type CreateResponseRequest.

See also

Constructors

Link copied to clipboard
constructor(mokksy: MokksyServer, buildingStep: BuildingStep<CreateResponseRequest>)

Initializes the OpenaiResponsesBuildingStep with the specified Mokksy server instance and a building step for handling the creation of responses.

Functions

Link copied to clipboard
open infix override fun responds(block: suspend OpenaiResponsesResponseSpecification.() -> Unit)
Link copied to clipboard
open infix fun <R : Any> respondsError(block: Consumer<ResponseDefinitionBuilder<CreateResponseRequest, R>>)
open infix fun <T : Any> respondsError(block: suspend ResponseDefinitionBuilder<CreateResponseRequest, T>.() -> Unit)
open fun <T : Any> respondsError(responseType: KClass<T>, block: suspend ResponseDefinitionBuilder<CreateResponseRequest, T>.() -> Unit)