Package-level declarations

Types

Link copied to clipboard
typealias Attributes = @Serializable(with = AttributesSerializer::class) Map<String, AttributeValue>?
Link copied to clipboard
sealed interface AttributeValue
Link copied to clipboard
@Serializable
value class OpenAIDetail(val value: String)
Link copied to clipboard
@Serializable
value class OpenAIMetadata

Metadata attached to an OpenAI request.

Link copied to clipboard

OpenAI reasoning effort levels.

Link copied to clipboard
sealed interface OpenAIResponseFormat

Specifies the format that the model must output.

Link copied to clipboard
@Serializable
value class OpenAIServiceTier(val value: String)

Processing tier used for serving an OpenAI chat completion request.

Link copied to clipboard
@Serializable
enum OpenAIStatus : Enum<OpenAIStatus>
Link copied to clipboard
@Serializable(with = OpenAIStopSerializer::class)
sealed interface OpenAIStop

Stop sequences for an OpenAI chat completion request.

Link copied to clipboard
@Serializable
data class OpenAIStreamOptions(val includeUsage: Boolean? = null)

Options for a streaming chat completion response.

Link copied to clipboard
@Serializable
enum OpenAIVerbosity : Enum<OpenAIVerbosity>

Constrains the verbosity of the model's response.

Functions

Link copied to clipboard
fun openAIStop(sequence: String): OpenAIStop

Creates a single-sequence OpenAIStop.

fun openAIStop(sequences: List<String>): OpenAIStop

Creates a multi-sequence OpenAIStop.