CreateCachedContextRequest

public final class CreateCachedContextRequest


A request to create a cached context.

Summary

Nested types

Builder for CreateCachedContextRequest.

Public methods

final @NonNull String

the unique name for the cached context.

final @NonNull PromptPrefix

the prefix of the prompt.

Public methods

getName

public final @NonNull String getName()

the unique name for the cached context. Required.

getPromptPrefix

public final @NonNull PromptPrefix getPromptPrefix()

the prefix of the prompt. This can be used to provide a prefix shared across multiple generation requests.