GenerateContentRequest constructor

GenerateContentRequest({
  1. required String model,
  2. required List<Content> contents,
  3. Content? systemInstruction,
  4. String cachedContent = '',
  5. List<Tool> tools = const [],
  6. ToolConfig? toolConfig,
  7. Map<String, String> labels = const {},
  8. List<SafetySetting> safetySettings = const [],
  9. ModelArmorConfig? modelArmorConfig,
  10. GenerationConfig? generationConfig,
})

Implementation

GenerateContentRequest({
  required this.model,
  required this.contents,
  this.systemInstruction,
  this.cachedContent = '',
  this.tools = const [],
  this.toolConfig,
  this.labels = const {},
  this.safetySettings = const [],
  this.modelArmorConfig,
  this.generationConfig,
}) : super(fullyQualifiedName);