- Resource: DataAgent
- DataAnalyticsAgent
- Context
- DatasourceReferences
- BigQueryTableReferences
- BigQueryTableReference
- Schema
- Field
- DataFilter
- DataFilterType
- StudioDatasourceReferences
- StudioDatasourceReference
- LookerExploreReferences
- LookerExploreReference
- PrivateLookerInstanceInfo
- Credentials
- OAuthCredentials
- SecretBased
- TokenBased
- ConversationOptions
- ChartOptions
- ImageOptions
- NoImage
- SvgOptions
- AnalysisOptions
- Python
- ExampleQuery
- Methods
Resource: DataAgent
Message describing a DataAgent object.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "labels": { string: string, ... }, "createTime": string, "updateTime": string, "deleteTime": string, "purgeTime": string, // Union field |
Fields | |
---|---|
name |
Optional. Identifier. The unique resource name of a DataAgent. Format: Example: It is recommended to skip setting this field during agent creation as it will be inferred automatically and overwritten with the {parent}/dataAgents/{dataAgentId}. |
displayName |
Optional. User friendly display name.
|
description |
Optional. Description of the agent.
|
labels |
Optional. Labels to help users filter related agents. For example, "sales", "business", "etl", and so on. Note labels are used only for filtering and not for policies. See the labels documentation for more details on label usage. An object containing a list of |
createTime |
Output only. The time when the data agent was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time when the data agent was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
deleteTime |
Output only. [Output only] The time the data agent was soft deleted. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
purgeTime |
Output only. Timestamp in UTC of when this data agent is considered expired. This is always provided on output, regardless of what was sent on input. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union field type . The type of the agent. Can be one of the following: * Data analytics agent. * Data engineering agent type can be only one of the following: |
|
dataAnalyticsAgent |
Data analytics agent. |
DataAnalyticsAgent
Message describing a DataAnalyticsAgent object.
JSON representation |
---|
{ "stagingContext": { object ( |
Fields | |
---|---|
stagingContext |
Optional. The staging context for the agent. This context is used to test and validate changes before publishing. |
publishedContext |
Optional. The published context for the agent. This context is used by the Chat API in production. |
lastPublishedContext |
Output only. The last published context for the agent. This is an output-only field populated by the system when the published context is updated. It is used to restore the agent to a previous state. |
Context
A collection of context to apply to this conversation
JSON representation |
---|
{ "systemInstruction": string, "datasourceReferences": { object ( |
Fields | |
---|---|
systemInstruction |
Optional. The basic entry point for data owners creating domain knowledge for Agent. Why: Business jargon (e.g., YTD revenue is calculated as…, Retirement Age is 65 in the USA, etc) and system instructions (e.g., answer like a Pirate) can help the model understand the business context around a user question. |
datasourceReferences |
Required. Data sources that are available for answering the question. |
options |
Optional. Additional options for the conversation. |
exampleQueries[] |
Optional. A list of example queries, providing examples of relevant and commonly used SQL queries and their corresponding natural language queries optionally present. Currently only used for BigQuery data sources. |
DatasourceReferences
A collection of references to datasources.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field references . The datasources to use. references can be only one of the following: |
|
bq |
References to BigQuery tables. |
studio |
References to Looker Studio datasources. |
looker |
References to Looker Explores. |
BigQueryTableReferences
Message representing references to BigQuery tables.
JSON representation |
---|
{
"tableReferences": [
{
object ( |
Fields | |
---|---|
tableReferences[] |
Required. References to BigQuery tables. |
BigQueryTableReference
Message representing a reference to a single BigQuery table.
JSON representation |
---|
{
"projectId": string,
"datasetId": string,
"tableId": string,
"schema": {
object ( |
Fields | |
---|---|
projectId |
Required. The project that the table belongs to. |
datasetId |
Required. The dataset that the table belongs to. |
tableId |
Required. The table id. |
schema |
Optional. The schema of the datasource. |
Schema
The schema of a Datasource or QueryResult instance.
JSON representation |
---|
{ "fields": [ { object ( |
Fields | |
---|---|
fields[] |
Optional. The fields in the schema. |
description |
Optional. A textual description of the table's content and purpose. For example: "Contains information about customer orders in our e-commerce store." Currently only used for BigQuery data sources. |
synonyms[] |
Optional. A list of alternative names or synonyms that can be used to refer to the table. For example: ["sales", "orders", "purchases"]. Currently only used for BigQuery data sources. |
tags[] |
Optional. A list of tags or keywords associated with the table, used for categorization. For example: ["transaction", "revenue", "customer_data"]. Currently only used for BigQuery data sources. |
displayName |
Optional. Table displayName (same as label in cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not required, currently only Looker has this field. |
filters[] |
Optional. The filters on the datasource's underlying data. Currently only used for Looker data sources. |
Field
A field in a schema.
JSON representation |
---|
{
"name": string,
"type": string,
"description": string,
"mode": string,
"synonyms": [
string
],
"tags": [
string
],
"displayName": string,
"subfields": [
{
object ( |
Fields | |
---|---|
name |
Optional. The name of the field. |
type |
Optional. The type of the field. |
description |
Optional. A brief description of the field. |
mode |
Optional. The mode of the field (e.g., NULLABLE, REPEATED). |
synonyms[] |
Optional. A list of alternative names or synonyms that can be used to refer to this field. For example: ["id", "customerid", "cust_id"]. Currently only used for BigQuery data sources. |
tags[] |
Optional. A list of tags or keywords associated with the field, used for categorization. For example: ["identifier", "customer", "pii"]. Currently only used for BigQuery data sources. |
displayName |
Optional. Field displayName (same as label in |
subfields[] |
Optional. Recursive property for nested schema structures. |
category |
Optional. Field category, not required, currently only useful for Looker. We are using a string to avoid depending on an external package and keep this package self-contained. |
valueFormat |
Optional. Looker only. Value format of the field. Ref: https://cloud.google.com/looker/docs/reference/param-field-value-format |
DataFilter
A filter on a datasource's underlying data. Filter syntax documentation: https://cloud.google.com/looker/docs/filter-expressions
JSON representation |
---|
{
"field": string,
"value": string,
"type": enum ( |
Fields | |
---|---|
field |
Optional. The field to filter on. For example: ["event_date", "customer_id", "product_category"] |
value |
Optional. The default value used for this filter if the filter is not overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"] |
type |
Optional. The type of filter present on a datasource, such as ALWAYS_FILTER. |
DataFilterType
The type of filter present on a datasource, such as ALWAYS_FILTER.
Enums | |
---|---|
DATA_FILTER_TYPE_UNSPECIFIED |
The filter type was not specified. |
ALWAYS_FILTER |
A filter that the user configures, and any queries to the Explore will always apply this filter by default. Currently only used for Looker data sources. |
StudioDatasourceReferences
Message representing references to Looker Studio datasources.
JSON representation |
---|
{
"studioReferences": [
{
object ( |
Fields | |
---|---|
studioReferences[] |
The references to the studio datasources. |
StudioDatasourceReference
Message representing a reference to a single Looker Studio datasource.
JSON representation |
---|
{ "datasourceId": string } |
Fields | |
---|---|
datasourceId |
Required. The id of the datasource. |
LookerExploreReferences
Message representing references to Looker explores.
JSON representation |
---|
{ "exploreReferences": [ { object ( |
Fields | |
---|---|
exploreReferences[] |
Required. References to Looker explores. |
credentials |
Optional. The credentials to use when calling the Looker API. Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK. |
LookerExploreReference
Message representing a reference to a single Looker explore.
JSON representation |
---|
{ "lookmlModel": string, "explore": string, "schema": { object ( |
Fields | |
---|---|
lookmlModel |
Required. Looker model, as outlined in Major LookML structures. Name of the LookML model. |
explore |
Required. Looker Explore, as outlined in Major LookML structures. Name of the LookML Explore. |
schema |
Optional. The schema of the datasource. |
Union field instance . The instance of the Looker explore. instance can be only one of the following: |
|
lookerInstanceUri |
Required. The base url of the Looker instance. |
privateLookerInstanceInfo |
Private Looker instance info. |
PrivateLookerInstanceInfo
Message representing a private Looker instance info required if the Looker instance is behind a private network.
JSON representation |
---|
{ "lookerInstanceId": string, "serviceDirectoryName": string } |
Fields | |
---|---|
lookerInstanceId |
The Looker instance id. |
serviceDirectoryName |
The service directory name of the Looker instance. |
Credentials
Represents different forms of credential specification.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field kind . The kind of credentials. } kind can be only one of the following: |
|
oauth |
OAuth credentials. |
OAuthCredentials
Represents OAuth credentials.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field kind . The kind of OAuth credentials. kind can be only one of the following: |
|
secret |
Secret-based OAuth credentials. |
token |
Token-based OAuth credentials. |
SecretBased
The name of the secret containing the access token. Represents secret-based OAuth credentials.
JSON representation |
---|
{ "clientId": string, "clientSecret": string } |
Fields | |
---|---|
clientId |
Required. An OAuth client ID. |
clientSecret |
Required. An OAuth client secret. |
TokenBased
Read more about Looker access tokens here: https://developers.looker.com/api/advanced-usage/looker-api-oauth
JSON representation |
---|
{ "accessToken": string } |
Fields | |
---|---|
accessToken |
Required. The name of the secret containing the access token. |
ConversationOptions
Options for the conversation.
JSON representation |
---|
{ "chart": { object ( |
Fields | |
---|---|
chart |
Optional. Options for chart generation. |
analysis |
Optional. Options for analysis. |
ChartOptions
Options for chart generation.
JSON representation |
---|
{
"image": {
object ( |
Fields | |
---|---|
image |
Optional. When specified, the agent will render generated charts using the provided format. Defaults to no image. |
ImageOptions
Options for rendering images of generated charts.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field kind . The kind of image to render. kind can be only one of the following: |
|
noImage |
No image. |
svg |
SVG format. |
NoImage
This type has no fields.
No image.
SvgOptions
This type has no fields.
SVG options.
AnalysisOptions
Options for analysis.
JSON representation |
---|
{
"python": {
object ( |
Fields | |
---|---|
python |
Optional. Options for Python analysis. |
Python
Options for Python analysis.
JSON representation |
---|
{ "enabled": boolean } |
Fields | |
---|---|
enabled |
Optional. Whether to enable Python analysis. Defaults to false. |
ExampleQuery
Example of relevant and commonly used SQL query and its corresponding natural language queries optionally present. Currently only used for BigQuery data sources.
JSON representation |
---|
{ "naturalLanguageQuestion": string, // Union field |
Fields | |
---|---|
naturalLanguageQuestion |
Optional. A natural language question that a user might ask. For example: "How many orders were placed last month?" |
Union field query . The SQL or Looker query that should be generated to answer the natural language query. query can be only one of the following: |
|
sqlQuery |
Optional. The SQL query that should be generated to answer the natural language question. For example: "SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2024-01-01' AND '2024-01-31'" |
Methods |
|
---|---|
|
Creates a new DataAgent in a given project and location. |
|
Deletes a single DataAgent. |
|
Gets details of a single DataAgent. |
|
Gets the IAM policy for DataAgent |
|
Lists DataAgents in a given project and location. |
|
Lists DataAgents that are accessible to the caller in a given project and location. |
|
Updates the parameters of a single DataAgent. |
|
Sets the IAM policy for a DataAgent. |