CachedContent

@Serializable
data class CachedContent(val name: String? = null, val displayName: String? = null, val model: String? = null, val createTime: Instant? = null, val updateTime: Instant? = null, val expireTime: Instant? = null, val usageMetadata: CachedContentUsageMetadata? = null)

A resource used in LLM queries for users to explicitly specify what to cache.

Constructors

Link copied to clipboard
constructor(name: String? = null, displayName: String? = null, model: String? = null, createTime: Instant? = null, updateTime: Instant? = null, expireTime: Instant? = null, usageMetadata: CachedContentUsageMetadata? = null)

Properties

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val createTime: Instant? = null

Creation time of the cache entry.

Link copied to clipboard
val displayName: String? = null

The user-generated meaningful display name of the cached content.

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val expireTime: Instant? = null

Expiration time of the cached content.

Link copied to clipboard
val model: String? = null

The name of the publisher model to use for cached content.

Link copied to clipboard
val name: String? = null

The server-generated resource name of the cached content.

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val updateTime: Instant? = null

When the cache entry was last updated in UTC time.

Link copied to clipboard

Metadata on the usage of the cached content.