CreateInteractionRequest constructor

CreateInteractionRequest({
  1. required Object input,
  2. String? previousInteractionId,
  3. String? model,
  4. String? agent,
  5. Object? environment,
  6. String? systemInstruction,
  7. List<InteractionTool>? tools,
  8. Object? responseFormat,
  9. List<ResponseModality>? responseModalities,
  10. bool? stream,
  11. bool? store,
  12. ModelGenerationConfig? generationConfig,
  13. InteractionsAgentConfig? agentConfig,
  14. ServiceTier? serviceTier,
  15. List<InteractionSafetySetting>? safetySettings,
  16. Map<String, String>? labels,
})

Implementation

CreateInteractionRequest({
  required Object input,
  String? previousInteractionId,
  String? model,
  String? agent,
  Object? environment,
  String? systemInstruction,
  List<InteractionTool>? tools,
  Object? responseFormat,
  List<ResponseModality>? responseModalities,
  bool? stream,
  bool? store,
  ModelGenerationConfig? generationConfig,
  InteractionsAgentConfig? agentConfig,
  ServiceTier? serviceTier,
  List<InteractionSafetySetting>? safetySettings,
  Map<String, String>? labels,
}) : this.fromJson({
       'previous_interaction_id': ?previousInteractionId,
       'model': ?model,
       'agent': ?agent,
       'environment': ?environment,
       'input': input,
       'system_instruction': ?systemInstruction,
       'tools': ?tools,
       'response_format': ?responseFormat,
       'response_modalities': ?responseModalities,
       'stream': ?stream,
       'store': ?store,
       'generation_config': ?generationConfig,
       'agent_config': ?agentConfig,
       'service_tier': ?serviceTier,
       'safety_settings': ?safetySettings,
       'labels': ?labels,
     });