CreateInteractionRequest constructor
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,
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,
});