Class CreateAgentInteraction.Builder
java.lang.Object
com.google.genai.gaos.models.interactions.CreateAgentInteraction.Builder
- Enclosing class:
- CreateAgentInteraction
-
Method Summary
Modifier and TypeMethodDescriptionagent(AgentOption agent) The agent to interact with.agentConfig(CreateAgentInteractionAgentConfig agentConfig) Configuration parameters for the agent interaction.background(Boolean background) Input only.build()environment(CreateAgentInteractionEnvironment environment) The environment configuration for the interaction.input(InteractionsInput input) The input for the interaction.The labels with user-defined metadata for the request.previousInteractionId(String previousInteractionId) The ID of the previous interaction, if any.responseFormat(CreateAgentInteractionResponseFormat responseFormat) Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.responseMimeType(String responseMimeType) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.responseModalities(List<ResponseModality> responseModalities) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.safetySettings(List<SafetySetting> safetySettings) Safety settings for the interaction.serviceTier(ServiceTier serviceTier) Input only.Input only.systemInstruction(String systemInstruction) System instruction for the interaction.A list of tool declarations the model may call during interaction.webhookConfig(WebhookConfig webhookConfig) Message for configuring webhook events for a request.
-
Method Details
-
agent
The agent to interact with. -
agentConfig
public CreateAgentInteraction.Builder agentConfig(@Nullable CreateAgentInteractionAgentConfig agentConfig) Configuration parameters for the agent interaction. -
background
Input only. Whether to run the model interaction in the background. -
environment
public CreateAgentInteraction.Builder environment(@Nullable CreateAgentInteractionEnvironment environment) The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID. -
input
The input for the interaction. -
labels
The labels with user-defined metadata for the request. -
previousInteractionId
The ID of the previous interaction, if any. -
responseFormat
public CreateAgentInteraction.Builder responseFormat(@Nullable CreateAgentInteractionResponseFormat responseFormat) Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. -
responseMimeType
@Deprecated public CreateAgentInteraction.Builder responseMimeType(@Nullable String responseMimeType) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The mime type of the response. This is required if response_format is set. -
responseModalities
@Deprecated public CreateAgentInteraction.Builder responseModalities(@Nullable List<ResponseModality> responseModalities) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The requested modalities of the response (TEXT, IMAGE, AUDIO). -
safetySettings
Safety settings for the interaction. -
serviceTier
-
store
Input only. Whether to store the response and request for later retrieval. -
agent
-
stream
Input only. Whether the interaction will be streamed. -
systemInstruction
System instruction for the interaction. -
tools
A list of tool declarations the model may call during interaction. -
webhookConfig
Message for configuring webhook events for a request. -
build
-