responses
fun responses(name: String? = null, block: OpenaiResponsesRequestSpecification.() -> Unit): OpenaiResponsesBuildingStep(source)
Sets up a mock handler for the OpenAI /v1/responses endpoint, allowing configuration of request matching for response generation requests.
This endpoint is used to generate responses based on input files and instructions.
Return
An OpenaiResponsesBuildingStep for specifying the mock response to response generation requests.
Parameters
name
Optional identifier for the mock configuration.
block
Lambda to configure the request matching criteria via OpenaiResponsesRequestSpecification.