Package-level declarations
Types
Link copied to clipboard
data class Annotation(val type: Annotation.Type, val index: Int, val fileId: String, val url: String, val title: String, val startIndex: Int, val endIndex: Int)
Link copied to clipboard
The role of the author of a message
Link copied to clipboard
Options for streaming response. Only set this when you set stream: true.
Link copied to clipboard
A citation to a file.
Link copied to clipboard
A path to a file.
Link copied to clipboard
data class OutputContent(val type: OutputContent.Type, val text: String, val annotations: List<Annotation>, val refusal: String? = null)
Link copied to clipboard
data class OutputMessage(val id: String, val type: OutputMessage.Type, val role: OutputMessage.Role, val content: List<OutputContent>, val status: OutputMessage.Status)
An output message from the model.
Link copied to clipboard
data class OutputText(val type: OutputText.Type, val text: String, val annotations: List<Annotation>)
A text output from the model.
Link copied to clipboard
data class Reasoning(val effort: ReasoningEffort? = ReasoningEffort.MEDIUM, val generateSummary: Reasoning.GenerateSummary? = null)
o-series models only Configuration options for reasoning models.
Link copied to clipboard
o-series models only Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
Link copied to clipboard
A refusal from the model.
Link copied to clipboard
An error object returned when the model fails to generate a Response.
Link copied to clipboard
The error code for the response.
Link copied to clipboard
data class UrlCitation(val url: String, val title: String, val type: UrlCitation.Type, val startIndex: Int, val endIndex: Int)
A citation for a web resource used to generate a model response.