BigQuery agent#


To install the BigQuery agent, run the following command:

pip install flytekitplugins-bigquery

This agent is purely a spec. Since SQL is completely portable, there is no need to build a Docker container.

Example usage#

For an example query, see BigQuery agent example usage.

Local testing#

To test the BigQuery agent locally, create a class for the agent task that inherits from AsyncAgentExecutorMixin. This mixin can handle asynchronous tasks and allows flytekit to mimic FlytePropeller’s behavior in calling the agent. For more information, see “Testing agents locally”.


In some cases, you will need to store credentials in your local environment when testing locally.

Flyte deployment configuration#


If you are using a managed deployment of Flyte, you will need to contact your deployment administrator to configure agents in your deployment.

To enable the BigQuery agent in your Flyte deployment, see the BigQuery agent deployment guide.