All skills
google avatar

/bigquery-ai-ml

@435f7c7
by googlegoogle/adk-python22k stars
4,084

Skill for BigQuery AI and Machine Learning queries using standard SQL and `AI.*` functions (preferred over dedicated tools).

Use this Skill: https://skilld.dev/gh/google/adk-python/bigquery-ai-ml

This session only. Nothing lands on disk.

referencesbigquery_ai_if.md

≈513 tokens on demand. Your agent reads this file only when SKILL.md points to it.

BigQuery AI.If

AI.IF is a semantic boolean function used to evaluate a condition described in natural language.

The function can be used to filter and join data based on conditions described in natural language or multimodal input. The following are common use cases:

  • Sentiment analysis: Find customer reviews with negative sentiment.
  • Topic analysis: Identify news articles related to a specific subject.
  • Image analysis: Select images that contain a specific item.
  • Security: Identify suspicious emails.

Syntax Reference

AI.IF(
  [ prompt => ] 'PROMPT'
  [, connection_id => 'CONNECTION_ID' ]
  [, endpoint => 'ENDPOINT' ]
)

Input Arguments

Argument Requirement Type Description
prompt Required String/Struct The prompt text or a
: : : : struct/tuple of :
: : : : (data, instruction). :
connection_id Optional String The connection ID to
: : : : use for the LLM. :
endpoint Optional String The model endpoint
: : : : (e.g. :
: : : : 'gemini-2.5-flash'). :

Output Schema

Column Name Type Description
(Scalar Result) BOOL TRUE if the condition is met, FALSE
: : : otherwise. Returns NULL on error/safety :
: : : filter. :

Examples

Filter rows based on semantic meaning

SELECT *
FROM `dataset.table`
WHERE AI.IF(
  (content_column, 'Is this review positive?')
);

Source: SKILL.md on GitHub

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a comprehensive interface for BigQuery AI and Machine Learning functions using standard SQL. It includes security considerations regarding the handling of untrusted data within AI-driven queries, which is standard for this type of functionality. Users should apply appropriate data validation when using these features.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 435f7c7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 6 months ago
metadata
{
  "author": "google-adk",
  "version": "1.0"
}

README badge

README badge for google/adk-python/bigquery-ai-ml