GenerateContentRequest constructor
GenerateContentRequest({
- required String model,
- required List<
Content> contents, - Content? systemInstruction,
- String cachedContent = '',
- List<
Tool> tools = const [], - ToolConfig? toolConfig,
- Map<
String, String> labels = const {}, - List<
SafetySetting> safetySettings = const [], - ModelArmorConfig? modelArmorConfig,
- 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);