Class CreateAgentInteraction
java.lang.Object
com.google.genai.gaos.models.interactions.CreateAgentInteraction
CreateAgentInteraction
Parameters for creating agent interactions
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateAgentInteraction(AgentOption agent, CreateAgentInteractionAgentConfig agentConfig, Boolean background, CreateAgentInteractionEnvironment environment, InteractionsInput input, Map<String, String> labels, String previousInteractionId, CreateAgentInteractionResponseFormat responseFormat, String responseMimeType, List<ResponseModality> responseModalities, List<SafetySetting> safetySettings, ServiceTier serviceTier, Boolean store, Boolean stream, String systemInstruction, List<Tool> tools, WebhookConfig webhookConfig) CreateAgentInteraction(AgentOption agent, InteractionsInput input) -
Method Summary
Modifier and TypeMethodDescriptionagent()The agent to interact with.Configuration parameters for the agent interaction.Input only.builder()The environment configuration for the interaction.booleaninthashCode()input()The input for the interaction.labels()The labels with user-defined metadata for the request.The ID of the previous interaction, if any.Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.Safety settings for the interaction.store()Input only.stream()Input only.System instruction for the interaction.tools()A list of tool declarations the model may call during interaction.toString()Message for configuring webhook events for a request.withAgent(AgentOption agent) The agent to interact with.withAgentConfig(CreateAgentInteractionAgentConfig agentConfig) Configuration parameters for the agent interaction.withBackground(Boolean background) Input only.withEnvironment(CreateAgentInteractionEnvironment environment) The environment configuration for the interaction.withInput(InteractionsInput input) The input for the interaction.withLabels(Map<String, String> labels) The labels with user-defined metadata for the request.withPreviousInteractionId(String previousInteractionId) The ID of the previous interaction, if any.withResponseFormat(CreateAgentInteractionResponseFormat responseFormat) Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.withResponseMimeType(String responseMimeType) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withResponseModalities(List<ResponseModality> responseModalities) Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.withSafetySettings(List<SafetySetting> safetySettings) Safety settings for the interaction.withServiceTier(ServiceTier serviceTier) Input only.withStream(Boolean stream) Input only.withSystemInstruction(String systemInstruction) System instruction for the interaction.A list of tool declarations the model may call during interaction.withWebhookConfig(WebhookConfig webhookConfig) Message for configuring webhook events for a request.
-
Constructor Details
-
CreateAgentInteraction
public CreateAgentInteraction(@Nonnull AgentOption agent, @Nullable CreateAgentInteractionAgentConfig agentConfig, @Nullable Boolean background, @Nullable CreateAgentInteractionEnvironment environment, @Nonnull InteractionsInput input, @Nullable Map<String, String> labels, @Nullable String previousInteractionId, @Nullable CreateAgentInteractionResponseFormat responseFormat, @Nullable String responseMimeType, @Nullable List<ResponseModality> responseModalities, @Nullable List<SafetySetting> safetySettings, @Nullable ServiceTier serviceTier, @Nullable Boolean store, @Nullable Boolean stream, @Nullable String systemInstruction, @Nullable List<Tool> tools, @Nullable WebhookConfig webhookConfig) -
CreateAgentInteraction
-
-
Method Details
-
agent
The agent to interact with. -
agentConfig
Configuration parameters for the agent interaction. -
background
Input only. Whether to run the model interaction in the background. -
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
Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. -
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.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. -
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. -
builder
-
withAgent
The agent to interact with. -
withAgentConfig
public CreateAgentInteraction withAgentConfig(@Nullable CreateAgentInteractionAgentConfig agentConfig) Configuration parameters for the agent interaction. -
withBackground
Input only. Whether to run the model interaction in the background. -
withEnvironment
public CreateAgentInteraction withEnvironment(@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. -
withInput
The input for the interaction. -
withLabels
The labels with user-defined metadata for the request. -
withPreviousInteractionId
The ID of the previous interaction, if any. -
withResponseFormat
public CreateAgentInteraction withResponseFormat(@Nullable CreateAgentInteractionResponseFormat responseFormat) Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field. -
withResponseMimeType
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. -
withResponseModalities
@Deprecated public CreateAgentInteraction withResponseModalities(@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). -
withSafetySettings
Safety settings for the interaction. -
withServiceTier
-
withStore
Input only. Whether to store the response and request for later retrieval. -
withStream
Input only. Whether the interaction will be streamed. -
withSystemInstruction
System instruction for the interaction. -
withTools
A list of tool declarations the model may call during interaction. -
withWebhookConfig
Message for configuring webhook events for a request. -
equals
-
hashCode
public int hashCode() -
toString
-