Reasoning

data class Reasoning @JvmOverloads constructor(val content: List<String>, val summary: List<String>? = null, val encrypted: String? = null, val id: String? = null, val cacheControl: CacheControl? = null) : MessagePart.ResponsePart(source)

Represents a reasoning message exchanged in a chat system, encapsulating the content, role, and associated metadata, with an optional reference to the original thinking process.

Constructors

Link copied to clipboard
constructor(content: List<String>, summary: List<String>? = null, encrypted: String? = null, id: String? = null, cacheControl: CacheControl? = null)
constructor(content: String, summary: List<String>? = null, encrypted: String? = null, id: String? = null, cacheControl: CacheControl? = null)

Convenience constructor for a single reasoning string.

Properties

Link copied to clipboard
open override val cacheControl: CacheControl?

Optional cache-control directive for the provider's prompt-caching feature.

Link copied to clipboard

The content of the reasoning message.

Link copied to clipboard

The encrypted content of the reasoning message.

Link copied to clipboard
val id: String?

An optional identifier for the reasoning process.

Link copied to clipboard

An optional summary of the reasoning process.