Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ChatRequest.
Request for Chat.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ChatRequest
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ inline_context
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.
↳ conversation_reference
ConversationReference
Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.
↳ data_agent_context
DataAgentContext
Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
↳ client_managed_resource_context
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.
↳ looker_settings
↳ project
string
Optional. Deprecated: Use parent
field instead. The Google Cloud project to be used for quota and billing.
↳ parent
string
Required. The parent value for chat request. Pattern: projects/{project}/locations/{location}
↳ messages
↳ credentials
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
int
Optional. The thinking mode to use for the agent loop. Defaults to THINKING_MODE_UNSPECIFIED if not specified.
↳ model
int
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.
getInlineContext
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.
hasInlineContext
setInlineContext
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
getConversationReference
Optional. Reference to a persisted conversation and agent context.
Use this to chat with an Agent using managed conversation persistence.
hasConversationReference
setConversationReference
Optional. Reference to a persisted conversation and agent context.
Use this to chat with an Agent using managed conversation persistence.
$this
getDataAgentContext
Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
hasDataAgentContext
setDataAgentContext
Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.
$this
getClientManagedResourceContext
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.
hasClientManagedResourceContext
setClientManagedResourceContext
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
getLookerSettings
Optional. Looker specific settings.
hasLookerSettings
setLookerSettings
Optional. Looker specific settings.
$this
getProject
Optional. Deprecated: Use parent
field instead.
The Google Cloud project to be used for quota and billing.
string
setProject
Optional. Deprecated: Use parent
field instead.
The Google Cloud project to be used for quota and billing.
var
string
$this
getParent
Required. The parent value for chat request.
Pattern: projects/{project}/locations/{location}
string
setParent
Required. The parent value for chat request.
Pattern: projects/{project}/locations/{location}
var
string
$this
getMessages
Required. Content of current conversation.
setMessages
Required. Content of current conversation.
$this
getCredentials
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 .
hasCredentials
clearCredentials
setCredentials
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 .
$this
getThinkingMode
Optional. The thinking mode to use for the agent loop.
Defaults to THINKING_MODE_UNSPECIFIED if not specified.
setThinkingMode
Optional. The thinking mode to use for the agent loop.
Defaults to THINKING_MODE_UNSPECIFIED if not specified.
$this
getModel
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.
setModel
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.
$this
getContextProvider
string
getDatasourceSettings
string

