ResponseCompactRequest

@Serializable
data class ResponseCompactRequest(val model: ModelId, val input: ResponseInput? = null, val instructions: String? = null, val previousResponseId: ResponseId? = null, val promptCacheKey: String? = null, val promptCacheOptions: ResponsePromptCacheOptions? = null, val serviceTier: String? = null)

Input for compacting accumulated conversation context.

Constructors

Link copied to clipboard
constructor(model: ModelId, input: ResponseInput? = null, instructions: String? = null, previousResponseId: ResponseId? = null, promptCacheKey: String? = null, promptCacheOptions: ResponsePromptCacheOptions? = null, serviceTier: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "input")
val input: ResponseInput? = null

Context to compact.

Link copied to clipboard
@SerialName(value = "instructions")
val instructions: String? = null

System instructions applied while compacting.

Link copied to clipboard
@SerialName(value = "model")
val model: ModelId

Model used to compact the context.

Link copied to clipboard
@SerialName(value = "previous_response_id")
val previousResponseId: ResponseId? = null

Stored response providing preceding context.

Link copied to clipboard
@SerialName(value = "prompt_cache_key")
val promptCacheKey: String? = null

Cache routing key.

Link copied to clipboard
@SerialName(value = "prompt_cache_options")
val promptCacheOptions: ResponsePromptCacheOptions? = null

Cache configuration.

Link copied to clipboard
@SerialName(value = "service_tier")
val serviceTier: String? = null

Requested processing tier.