Skip to main content

Below is a concise README.md:


bigquery_agent

bigquery_agent creates a Gemini Agents Toolkit-based agent with built-in functions to query a specified BigQuery table.

Requirements

  • Python 3.8+
  • Gemini Agents Toolkit
  • Google Cloud credentials with BigQuery access
  • Vertex AI enabled for your GCP project

Installation

pip install bigquery_agent

Usage

import vertexai
from bigquery_agent import create_bigquery_agent

vertexai.init(project="YOUR_GCP_PROJECT", location="us-west1")

agent = create_bigquery_agent(
    bigquery_project_id="YOUR_BQ_PROJECT",
    dataset_id="YOUR_DATASET",
    table_id="YOUR_TABLE",
    model_name="gemini-2.0-flash-exp",
    system_instruction="Query the todos table as needed."
)

response = agent.send_message("Show me all todos from the database")[0]
print(response)

This agent can inspect the schema (get_schema), run queries (run_query), and get table references (get_table_ref) using the provided BigQuery credentials and Vertex AI model.

For more details on creating and using agents, refer to the Gemini Agents Toolkit README.

Release files for bigquery-agent 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bigquery-agent 1.3.0
File Size Uploaded
bigquery_agent-1.3.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bigquery-agent 1.3.0
File Interpreter ABI Platform
bigquery_agent-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / bigquery_agent-1.3.0.tar.gz

Download URL bigquery_agent-1.3.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
481b68b284cd5217fa63dce68646e9ebb4808d99c8581cdd1ad5781ff9b1a7ea
BLAKE2b-256 checksum
How to use checksums
8098f768c0ed2d31f26927aaca1c3b766e584e5f4c98ff6770c09ac74836dc0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / bigquery_agent-1.3.0-py3-none-any.whl

Download URL bigquery_agent-1.3.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57d855b38722cfe80293ada89f3e6217587ed50040b41db0bac3245faa6624f4
BLAKE2b-256 checksum
How to use checksums
790f66376040b1d0799eb54f2cfd36681960f0b10ed0f896440b11ee489f4a8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page