Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::ChatRequest.
Request for Chat.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#client_managed_resource_context
def client_managed_resource_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext- (::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext) — Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
Note: The following fields are mutually exclusive:
client_managed_resource_context,inline_context,conversation_reference,data_agent_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#client_managed_resource_context=
def client_managed_resource_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext- value (::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext) — Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
Note: The following fields are mutually exclusive:
client_managed_resource_context,inline_context,conversation_reference,data_agent_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext) — Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
Note: The following fields are mutually exclusive:
client_managed_resource_context,inline_context,conversation_reference,data_agent_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#conversation_reference
def conversation_reference() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference- (::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference) — Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
Note: The following fields are mutually exclusive:
conversation_reference,inline_context,data_agent_context,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#conversation_reference=
def conversation_reference=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference- value (::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference) — Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
Note: The following fields are mutually exclusive:
conversation_reference,inline_context,data_agent_context,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference) — Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
Note: The following fields are mutually exclusive:
conversation_reference,inline_context,data_agent_context,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#data_agent_context
def data_agent_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext- (::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext) — Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
Note: The following fields are mutually exclusive:
data_agent_context,inline_context,conversation_reference,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#data_agent_context=
def data_agent_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext- value (::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext) — Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
Note: The following fields are mutually exclusive:
data_agent_context,inline_context,conversation_reference,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext) — Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
Note: The following fields are mutually exclusive:
data_agent_context,inline_context,conversation_reference,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#inline_context
def inline_context() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Context- (::Google::Cloud::GeminiDataAnalytics::V1beta::Context) — Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
Note: The following fields are mutually exclusive:
inline_context,conversation_reference,data_agent_context,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#inline_context=
def inline_context=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Context- value (::Google::Cloud::GeminiDataAnalytics::V1beta::Context) — Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
Note: The following fields are mutually exclusive:
inline_context,conversation_reference,data_agent_context,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::GeminiDataAnalytics::V1beta::Context) — Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline.
Note: The following fields are mutually exclusive:
inline_context,conversation_reference,data_agent_context,client_managed_resource_context. If a field in that set is populated, all other fields in the set will automatically be cleared.
#messages
def messages() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>) — Required. Content of current conversation.
#messages=
def messages=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>- value (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>) — Required. Content of current conversation.
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Message>) — Required. Content of current conversation.
#parent
def parent() -> ::String- (::String) — Required. The parent value for chat request. Pattern:
projects/{project}/locations/{location}
#parent=
def parent=(value) -> ::String- value (::String) — Required. The parent value for chat request. Pattern:
projects/{project}/locations/{location}
- (::String) — Required. The parent value for chat request. Pattern:
projects/{project}/locations/{location}
#project
def project() -> ::String- (::String) — Optional. The Google Cloud project to be used for quota and billing.
#project=
def project=(value) -> ::String- value (::String) — Optional. The Google Cloud project to be used for quota and billing.
- (::String) — Optional. The Google Cloud project to be used for quota and billing.