- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - ConversationReference
 - DataAgentContext
 - ContextVersion
 - ClientManagedResourceContext
 
Answers a data question by generating a stream of Message objects.
HTTP request
POST https://geminidataanalytics.googleapis.com/v1beta/{parent=projects/*/locations/*}:chat   The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Required. The parent value for chat request. Pattern:   | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "project": string, "messages": [ { object (  | 
                
| Fields | |
|---|---|
project | 
                  
                     
 Optional. The Google Cloud project to be used for quota and billing.  | 
                
messages[] | 
                  
                     
 Required. Content of current conversation.  | 
                
Union field context_provider. Context Provider for the chat request. It can either be - inline_context, which is a context provided inline in the request. data_agent, which is a reference to a data agent resource. conversation_reference, which is a reference to a persisted conversation and context using conversation_id and agent_id. context_provider can be only one of the following: | 
                |
inlineContext | 
                  
                     
 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.  | 
                
conversationReference | 
                  
                     
 Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence.  | 
                
dataAgentContext | 
                  
                     
 Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence.  | 
                
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.  | 
                
Response body
If successful, the response body contains a stream of Message instances.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ConversationReference
Reference to a persisted conversation and agent context.
| JSON representation | 
|---|
{
  "conversation": string,
  "dataAgentContext": {
    object ( | 
              
| Fields | |
|---|---|
conversation | 
                
                   
 Required. Name of the conversation resource. Format:   | 
              
dataAgentContext | 
                
                   
 Required. Context for the chat request using a data agent.  | 
              
DataAgentContext
Context for the chat request using a data agent.
| JSON representation | 
|---|
{ "dataAgent": string, "credentials": { object (  | 
              
| Fields | |
|---|---|
dataAgent | 
                
                   
 Required. The name of the data agent resource.  | 
              
credentials | 
                
                   
 Optional. The credentials to use when calling the Looker data source. Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.  | 
              
contextVersion | 
                
                   
 Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)  | 
              
ContextVersion
List of context versions supported by DCS. There are two versions of context. This is to maintain versioning for the data agent.
| Enums | |
|---|---|
CONTEXT_VERSION_UNSPECIFIED | 
                Unspecified or unrecognized. | 
STAGING | 
                Using this version, DCS will use the latest staging context for the data agent. | 
PUBLISHED | 
                Using this version, DCS will use the latest published context for the data agent. | 
ClientManagedResourceContext
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.
| JSON representation | 
|---|
{
  "inlineContext": {
    object ( | 
              
| Fields | |
|---|---|
inlineContext | 
                
                   
 Required. Context for the chat request. Use this to chat without GDA API managed conversation and agent persistence by passing all context inline.  | 
              
conversationId | 
                
                   
 Optional. The client managed conversation id.  | 
              
agentId | 
                
                   
 Optional. The client managed agent id.  |