- 資源:DataAgent
- DataAnalyticsAgent
- 背景資訊
- DatasourceReferences
- BigQueryTableReferences
- BigQueryTableReference
- StudioDatasourceReferences
- StudioDatasourceReference
- LookerExploreReferences
- LookerExploreReference
- PrivateLookerInstanceInfo
- 結構定義
- 欄位
- 憑證
- OAuthCredentials
- SecretBased
- TokenBased
- ConversationOptions
- ChartOptions
- ImageOptions
- NoImage
- SvgOptions
- AnalysisOptions
- Python
- 方法
資源:DataAgent
說明 DataAgent 物件的訊息。
JSON 表示法 |
---|
{ "name": string, "displayName": string, "description": string, "labels": { string: string, ... }, "createTime": string, "updateTime": string, // Union field |
欄位 | |
---|---|
name |
(選用步驟) ID。代理程式的專屬資源名稱。格式:「projects/{project}/locations/{location}/dataAgents/{dataAgentId}」 例如:「projects/1234567890/locations/us-central1/dataAgents/my-agent」 |
displayName |
(選用步驟) 使用者容易閱讀的顯示名稱。
|
description |
(選用步驟) 代理程式的說明。
|
labels |
(選用步驟) 標籤可協助使用者篩選相關的服務專員。例如「銷售」、「業務」、「etl」等。請注意,標籤只用於篩選,不適用於政策。如要進一步瞭解標籤用途,請參閱標籤總覽。 包含 |
createTime |
僅供輸出。建立資料代理人的時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 小數位數。系統也接受「Z」以外的偏移值。例如: |
updateTime |
僅供輸出。資料代理人上次更新的時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 小數位數。系統也接受「Z」以外的偏移值。例如: |
dataAnalyticsAgent |
資料分析代理程式。 |
DataAnalyticsAgent
說明 DataAnalyticsAgent 物件的訊息。
JSON 表示法 |
---|
{ "stagingContext": { object ( |
欄位 | |
---|---|
stagingContext |
(選用步驟) 代理程式的前置作業情境。這個上下文會在發布前測試及驗證變更。 |
publishedContext |
(選用步驟) 代理程式的已發布情境。Chat API 會在實際執行環境中使用這個內容。 |
背景資訊
要套用至此對話的一系列情境
JSON 表示法 |
---|
{ "systemInstruction": string, "datasourceReferences": { object ( |
欄位 | |
---|---|
systemInstruction |
(選用步驟) 資料擁有者為 Agent 建立領域知識時的基本入口。 |
datasourceReferences |
這是必要旗標,可用於回答問題的資料來源。 |
options |
(選用步驟) 對話的其他選項。 |
DatasourceReferences
資料來源參照項目集合。
JSON 表示法 |
---|
{ // Union field |
欄位 | |
---|---|
聯集欄位 references 。要使用的資料來源。references 只能是下列其中一項: |
|
bq |
BigQuery 資料表的參照。 |
studio |
Looker Studio 資料來源的參照。 |
looker |
Looker 探索的參照。 |
BigQueryTableReferences
代表 BigQuery 資料表參照的訊息。
JSON 表示法 |
---|
{
"tableReferences": [
{
object ( |
欄位 | |
---|---|
tableReferences[] |
這是必要旗標,BigQuery 資料表的參照。 |
BigQueryTableReference
代表單一 BigQuery 資料表參照的訊息。
JSON 表示法 |
---|
{ "projectId": string, "datasetId": string, "tableId": string } |
欄位 | |
---|---|
projectId |
這是必要旗標,資料表所屬的專案。 |
datasetId |
這是必要旗標,資料表所屬的資料集。 |
tableId |
這是必要旗標,資料表 ID。 |
StudioDatasourceReferences
代表 Looker Studio 資料來源參照的訊息。
JSON 表示法 |
---|
{
"studioReferences": [
{
object ( |
欄位 | |
---|---|
studioReferences[] |
工作室資料來源的參照。 |
StudioDatasourceReference
代表單一 Looker Studio 資料來源參照的訊息。
JSON 表示法 |
---|
{ "datasourceId": string } |
欄位 | |
---|---|
datasourceId |
這是必要旗標,資料來源的 ID。 |
LookerExploreReferences
代表 Looker 探索參照的訊息。
JSON 表示法 |
---|
{ "exploreReferences": [ { object ( |
欄位 | |
---|---|
exploreReferences[] |
這是必要旗標,Looker 探索的參照項目。 |
credentials |
(選用步驟) 呼叫 Looker API 時要使用的憑證。 目前支援 OAuth 權杖和 API 金鑰憑證,如「使用 SDK 進行驗證」一文所述。 |
LookerExploreReference
代表單一 Looker Explore 參照的訊息。
JSON 表示法 |
---|
{ "lookmlModel": string, "explore": string, "schema": { object ( |
欄位 | |
---|---|
lookmlModel |
這是必要旗標,LookML 模型的名稱,請參閱「主要的 LookML 結構」一節。 |
explore |
這是必要旗標,Looker Explore 的名稱,請參閱「主要 LookML 結構」一節。 |
schema |
(選用步驟) 資料來源的結構定義。 |
聯集欄位 instance 。Looker 探索的執行個體。instance 只能是下列其中一項: |
|
lookerInstanceUri |
這是必要旗標,Looker 執行個體的基礎網址。 |
privateLookerInstanceInfo |
私人 Looker 執行個體資訊。 |
PrivateLookerInstanceInfo
代表私人 Looker 執行個體資訊的訊息,如果 Looker 執行個體位於私人網路後方,就必須提供這項資訊。
JSON 表示法 |
---|
{ "lookerInstanceId": string, "serviceDirectoryName": string } |
欄位 | |
---|---|
lookerInstanceId |
Looker 執行個體 ID。 |
serviceDirectoryName |
Looker 執行個體的服務目錄名稱。 |
結構定義
Datasource 或 QueryResult 例項的結構定義。
JSON 表示法 |
---|
{
"fields": [
{
object ( |
欄位 | |
---|---|
fields[] |
僅供輸出。結構定義中的欄位。 |
欄位
結構定義中的欄位。
JSON 表示法 |
---|
{
"name": string,
"type": string,
"description": string,
"mode": string,
"displayName": string,
"subfields": [
{
object ( |
欄位 | |
---|---|
name |
僅供輸出。欄位的名稱。 |
type |
僅供輸出。欄位的類型。 |
description |
僅供輸出。欄位的簡短說明。 |
mode |
僅供輸出。欄位模式 (例如NULLABLE、REPEATED)。 |
displayName |
(選用步驟) 欄位顯示名稱 (與 |
subfields[] |
(選用步驟) 巢狀結構定義的遞迴屬性。 |
憑證
代表不同形式的憑證規格。
JSON 表示法 |
---|
{ // Union field |
欄位 | |
---|---|
oauth |
OAuth 憑證。 |
OAuthCredentials
代表 OAuth 憑證。
JSON 表示法 |
---|
{ // Union field |
欄位 | |
---|---|
聯集欄位 kind 。OAuth 憑證的類型。kind 只能是下列其中一項: |
|
secret |
以密鑰為基礎的 OAuth 憑證。 |
token |
以符記為基礎的 OAuth 憑證。 |
SecretBased
包含存取權杖的密鑰名稱。代表以密鑰為基礎的 OAuth 憑證。
JSON 表示法 |
---|
{ "clientId": string, "clientSecret": string } |
欄位 | |
---|---|
clientId |
這是必要旗標,OAuth 用戶端 ID。 |
clientSecret |
這是必要旗標,OAuth 用戶端密鑰。 |
TokenBased
如要進一步瞭解 Looker 存取權杖,請參閱「Looker API 驗證」。
JSON 表示法 |
---|
{ "accessToken": string } |
欄位 | |
---|---|
accessToken |
這是必要旗標,包含存取權杖的密鑰名稱。 |
ConversationOptions
對話選項。
JSON 表示法 |
---|
{ "chart": { object ( |
欄位 | |
---|---|
chart |
(選用步驟) 產生圖表的選項。 |
analysis |
(選用步驟) 分析選項。 |
ChartOptions
產生圖表的選項。
JSON 表示法 |
---|
{
"image": {
object ( |
欄位 | |
---|---|
image |
(選用步驟) 如果指定此選項,代理程式會使用提供的格式轉譯產生的圖表。預設為無圖片。 |
ImageOptions
顯示已產生圖表的圖片選項。
JSON 表示法 |
---|
{ // Union field |
欄位 | |
---|---|
聯集欄位 kind 。要轉譯的圖片類型。kind 只能是下列其中一項: |
|
noImage |
沒有圖片。 |
svg |
SVG 格式。 |
NoImage
這個類型沒有任何欄位。
沒有圖片。
SvgOptions
這個類型沒有任何欄位。
SVG 選項。
AnalysisOptions
分析選項。
JSON 表示法 |
---|
{
"python": {
object ( |
欄位 | |
---|---|
python |
(選用步驟) Python 分析的選項。 |
Python
Python 分析的選項。
JSON 表示法 |
---|
{ "enabled": boolean } |
欄位 | |
---|---|
enabled |
(選用步驟) 是否啟用 Python 分析。預設值為 false。 |
方法 |
|
---|---|
|
在指定的專案和位置中建立新的 DataAgent。 |
|
刪除單一 DataAgent。 |
|
取得單一 DataAgent 的詳細資料。 |
|
列出指定專案和位置中的 DataAgent。 |
|
更新單一 DataAgent 的參數。 |