CachedContent

io.cequence.openaiscala.gemini.domain.CachedContent
case class CachedContent(contents: Seq[Content], tools: Seq[Tool], expireTime: Expiration, name: Option[String], displayName: Option[String], model: String, systemInstruction: Option[Content], toolConfig: Option[ToolConfig])

The request body contains an instance of CachedContent.

Attributes

contents

Optional. Input only. Immutable. The content to cache.

displayName

Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.

expiration

Specifies when this resource will expire. Can be either expireTime or ttl.

  • Timestamp in UTC of when this resource is considered expired. Uses RFC 3339 format.
  • New TTL for this resource, input only. A duration in seconds with up to nine fractional digits, ending with 's'.
model

Required. Immutable. The name of the Model to use for cached content. Format: models/{model}.

name

Optional. Identifier. The resource name referring to the cached content. Format: cachedContents/{id}.

systemInstruction

Optional. Input only. Immutable. Developer set system instruction. Currently text only.

toolConfig

Optional. Input only. Immutable. Tool config. This config is shared for all tools.

tools

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product