GenerateContentRequest constructor

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

Implementation

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