ResponseCompaction

@Serializable
data class ResponseCompaction(val id: String, val output: List<JsonObject>, val objectType: String? = null, val createdAt: Long? = null, val usage: ResponseUsage? = null)

Compacted context items that can be supplied on subsequent turns.

Constructors

Link copied to clipboard
constructor(id: String, output: List<JsonObject>, objectType: String? = null, createdAt: Long? = null, usage: ResponseUsage? = null)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long? = null

Creation timestamp.

Link copied to clipboard
@SerialName(value = "id")
val id: String

Compaction identifier.

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

Object discriminator.

Link copied to clipboard
@SerialName(value = "output")
val output: List<JsonObject>

Unmodified compacted context, including tool fields and encrypted compaction items.

Link copied to clipboard
@SerialName(value = "usage")
val usage: ResponseUsage? = null

Compaction token usage.