CachingClientCreateCachedContentAsync Method
Asynchronously creates a new cached content resource.
Namespace: GenerativeAI.ClientsAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public Task<CachedContent> CreateCachedContentAsync(
CachedContent cachedContent,
CancellationToken cancellationToken = default
)
- cachedContent CachedContent
- The cached content to be created.
- cancellationToken CancellationToken (Optional)
- Optional token to monitor for cancellation requests.
TaskCachedContentThe created cached content resource.