OpenaiResponsesRequestSpecification

Defines specifications for building and validating OpenAI response requests. This class extends the functionalities provided by AbstractInferenceRequestSpecification to incorporate additional checks specific to handling OpenAI response-related requests.

Author

Konstantin Pavlov

Parameters

seed

An optional random seed value for reproducible results.

See also

Constructors

Link copied to clipboard
constructor(seed: Int? = null)

Initializes the specification with optional parameters.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var seed: Int?
Link copied to clipboard
Link copied to clipboard
var topK: Long?
Link copied to clipboard
var topP: Double?

Functions

Link copied to clipboard

Checks if the input contains a file with the specified file ID.

Link copied to clipboard

Checks if the input contains a file with the specified filename.

Link copied to clipboard

Checks if the input includes an image with the specified URL as Base64 data URL.

Checks if the input includes an image with the specified URL.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestMatches(matcher: Matcher<CreateResponseRequest?>)
Link copied to clipboard
Link copied to clipboard
fun requestSatisfies(description: String?, call: (CreateResponseRequest?) -> Unit)
Link copied to clipboard
Link copied to clipboard
inline fun systemMessageContains(builderAction: StringBuilder.() -> Unit)
open override fun systemMessageContains(substring: String)
Link copied to clipboard
inline fun userMessageContains(builderAction: StringBuilder.() -> Unit)
open override fun userMessageContains(substring: String)