CachedContent constructor

CachedContent({
  1. Timestamp? expireTime,
  2. Duration? ttl,
  3. String name = '',
  4. String displayName = '',
  5. String model = '',
  6. Content? systemInstruction,
  7. List<Content> contents = const [],
  8. List<Tool> tools = const [],
  9. ToolConfig? toolConfig,
  10. Timestamp? createTime,
  11. Timestamp? updateTime,
  12. CachedContent_UsageMetadata? usageMetadata,
  13. EncryptionSpec? encryptionSpec,
})

Implementation

CachedContent({
  this.expireTime,
  this.ttl,
  this.name = '',
  this.displayName = '',
  this.model = '',
  this.systemInstruction,
  this.contents = const [],
  this.tools = const [],
  this.toolConfig,
  this.createTime,
  this.updateTime,
  this.usageMetadata,
  this.encryptionSpec,
}) : super(fullyQualifiedName);