CreateInteractionRequest extension type

Parameters for creating interactions.

on

Constructors

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})
CreateInteractionRequest.fromJson(Map<String, Object?> json)

Properties

agent → String?
The agent to use for this request (mutually exclusive with model).
no setter
agentConfig → InteractionsAgentConfig?
Configuration for the agent.
no setter
environment → Object?
The environment configuration for the sandbox: a string (e.g. remote, or an environment ID) or a configuration map.
no setter
generationConfig → ModelGenerationConfig?
Configuration parameters for the model interaction.
no setter
input → Object?
The inputs for the interaction: a string, a list of Step maps or one Step map.
no setter
json → Map<String, Object?>
final
labels → Map<String, String>?
Key-value labels for cost tracking. vertexAI only.
no setter
model → String?
The model to use for this request (mutually exclusive with agent).
no setter
previousInteractionId ↔ String?
The ID of the previous interaction, if any.
getter/setter pair
responseFormat ↔ Object?
The output types and their settings: one entry ({type: 'text' | 'image' | 'audio' | 'video', ...}) or a list of them. See toInteractionResponseFormat.
getter/setter pair
responseModalities → List<ResponseModality>?
Deprecated by the API in favor of response_format entries; the plugin doesn't send it.
no setter
safetySettings → List<InteractionSafetySetting>?
Safety settings (googleAI doesn't accept a block_none threshold).
no setter
serviceTier → ServiceTier?
no setter
store → bool?
Whether to store the response and request for later retrieval.
no setter
stream → bool?
Whether the interaction will be streamed.
no setter
systemInstruction → String?
System instruction for the interaction.
no setter
tools → List<InteractionTool>?
A list of tool declarations the model may call during interaction.
no setter