GeminiCacheClient class abstract

Client contract for Gemini context cache operations.

Constructors

GeminiCacheClient()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCache({required String model, required List<Content> contents, required String ttl, required String displayName, String? systemInstruction, List<ToolDeclaration>? tools, LlmToolConfig? toolConfig}) → Future<GeminiCreatedCache>
Creates a context cache from contents and related request metadata.
deleteCache({required String cacheName}) → Future<void>
Deletes a cache by cacheName.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited