Back to Adk Python

Skill: bigquery-ai-ml

src/google/adk/tools/bigquery/skills/bigquery-ai-ml/SKILL.md

2.0.0b12.1 KB
Original Source

Skill: bigquery-ai-ml

This skill defines the usage and rules for BigQuery AI/ML functions, preferring SQL-based Skills over dedicated BigQuery tools.

1. Skill vs Tool Preference (BigQuery AI/ML)

Agents should prefer using the Skill (SQL via execute_sql()) over dedicated BigQuery tools for functionalities like Forecasting and Anomaly Detection.

Use execute_sql() with the standard BigQuery AI.* functions for these tasks instead of the corresponding high-level tools.

2. Mandatory Reference Routing

This skill file does not contain the syntax for these functions. You MUST read the associated reference file before generating SQL.

CRITICAL: DO NOT GUESS filenames. You MUST only use the exact paths provided below.

FunctionDescriptionRequired Reference File to Retrieve
AI.FORECASTTime-series forecasting via the pre-trained TimesFM modelreferences/bigquery_ai_forecast.md
AI.CLASSIFYCategorize unstructured data into predefined labelsreferences/bigquery_ai_classify.md
AI.DETECT_ANOMALIESIdentify deviations in time-series data via the pre-trained TimesFM modelreferences/bigquery_ai_detect_anomalies.md
AI.GENERATEGeneral-purpose text and content generationreferences/bigquery_ai_generate.md
AI.GENERATE_BOOLGenerate a boolean value (TRUE/FALSE) based on a promptreferences/bigquery_ai_generate_bool.md
AI.GENERATE_DOUBLEGenerate a floating-point number based on a promptreferences/bigquery_ai_generate_double.md
AI.GENERATE_INTGenerate an integer value based on a promptreferences/bigquery_ai_generate_int.md
AI.IFEvaluate a natural-language boolean conditionreferences/bigquery_ai_if.md
AI.SCORERank items by semantic relevance (use with ORDER BY)references/bigquery_ai_score.md
AI.SIMILARITYCompute cosine similarity between two inputsreferences/bigquery_ai_similarity.md
AI.SEARCHSemantic search on tables with autonomous embedding generationreferences/bigquery_ai_search.md