Cloud AI Platform v1beta1 API - Class CachedContent (1.0.0-beta03)

public sealed class CachedContent : IMessage<CachedContent>, IEquatable<CachedContent>, IDeepCloneable<CachedContent>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class CachedContent.

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

Inheritance

object > CachedContent

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

CachedContent()

public CachedContent()

CachedContent(CachedContent)

public CachedContent(CachedContent other)
Parameter
Name Description
other CachedContent

Properties

CachedContentName

public CachedContentName CachedContentName { get; set; }

CachedContentName-typed view over the Name resource name property.

Property Value
Type Description
CachedContentName

Contents

public RepeatedField<Content> Contents { get; }

Optional. Input only. Immutable. The content to cache

Property Value
Type Description
RepeatedFieldContent

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Creatation time of the cache entry.

Property Value
Type Description
Timestamp

DisplayName

public string DisplayName { get; set; }

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

Property Value
Type Description
string

ExpirationCase

public CachedContent.ExpirationOneofCase ExpirationCase { get; }
Property Value
Type Description
CachedContentExpirationOneofCase

ExpireTime

public Timestamp ExpireTime { get; set; }

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

Property Value
Type Description
Timestamp

Model

public string Model { get; set; }

Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

Property Value
Type Description
string

Name

public string Name { get; set; }

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

Property Value
Type Description
string

SystemInstruction

public Content SystemInstruction { get; set; }

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

Property Value
Type Description
Content

ToolConfig

public ToolConfig ToolConfig { get; set; }

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

Property Value
Type Description
ToolConfig

Tools

public RepeatedField<Tool> Tools { get; }

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

Property Value
Type Description
RepeatedFieldTool

Ttl

public Duration Ttl { get; set; }

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

Property Value
Type Description
Duration

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. When the cache entry was last updated in UTC time.

Property Value
Type Description
Timestamp

UsageMetadata

public CachedContent.Types.UsageMetadata UsageMetadata { get; set; }

Output only. Metadata on the usage of the cached content.

Property Value
Type Description
CachedContentTypesUsageMetadata