ChatRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)Request for Chat.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
inline_context |
google.cloud.geminidataanalytics_v1beta.types.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. This field is a member of oneof_ context_provider.
|
conversation_reference |
google.cloud.geminidataanalytics_v1beta.types.ConversationReference
Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence. This field is a member of oneof_ context_provider.
|
data_agent_context |
google.cloud.geminidataanalytics_v1beta.types.DataAgentContext
Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence. This field is a member of oneof_ context_provider.
|
client_managed_resource_context |
google.cloud.geminidataanalytics_v1beta.types.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. This field is a member of oneof_ context_provider.
|
looker_settings |
google.cloud.geminidataanalytics_v1beta.types.LookerSettings
Optional. Looker specific settings. This field is a member of oneof_ datasource_settings.
|
project |
str
Optional. Deprecated: Use parent field instead. The
Google Cloud project to be used for quota and billing.
|
parent |
str
Required. The parent value for chat request. Pattern: projects/{project}/locations/{location}
|
messages |
MutableSequence[google.cloud.geminidataanalytics_v1beta.types.Message]
Required. Content of current conversation. |
credentials |
google.cloud.geminidataanalytics_v1beta.types.Credentials
Optional. The credentials to use when calling the data source(s) specified in the context. This field can be used to provide credentials for various data sources. For example, when connecting to Looker, it currently supports both OAuth token and API key-based credentials, as described in `Authentication with an SDK |
thinking_mode |
google.cloud.geminidataanalytics_v1beta.types.ChatRequest.ThinkingMode
Optional. The thinking mode to use for the agent loop. Defaults to THINKING_MODE_UNSPECIFIED if not specified. |
model |
google.cloud.geminidataanalytics_v1beta.types.ChatRequest.Model
Optional. The model to use for the agent loop when processing the request. This setting only has an effect when context.options.model is not set. |
Classes
Model
Model(value)Model selection for the agent.
ThinkingMode
ThinkingMode(value)Mode of thinking for the agent.