# AsyncBigQueryCallbackHandler

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler)

Callback handler for logging LangChain events to Google BigQuery.

## Signature

```python
AsyncBigQueryCallbackHandler(
    self,
    project_id: str,
    dataset_id: str,
    table_id: str | None = None,
    config: BigQueryLoggerConfig | None = None,
    *,
    graph_name: str | None = None,
)
```

## Extends

- `AsyncCallbackHandler`

## Constructors

```python
__init__(
    self,
    project_id: str,
    dataset_id: str,
    table_id: str | None = None,
    config: BigQueryLoggerConfig | None = None,
    *,
    graph_name: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `project_id` | `str` |
| `dataset_id` | `str` |
| `table_id` | `str \| None` |
| `config` | `BigQueryLoggerConfig \| None` |
| `graph_name` | `str \| None` |


## Properties

- `project_id`
- `dataset_id`
- `config`
- `graph_name`
- `client`
- `write_client`
- `async_batch_processor`
- `offloader`
- `trace_registry`

## Methods

- [`shutdown()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/shutdown)
- [`on_llm_start()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_llm_start)
- [`on_chat_model_start()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_chat_model_start)
- [`on_llm_end()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_llm_end)
- [`on_llm_error()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_llm_error)
- [`on_chain_start()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_chain_start)
- [`on_chain_end()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_chain_end)
- [`on_tool_start()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_tool_start)
- [`on_tool_end()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_tool_end)
- [`on_tool_error()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_tool_error)
- [`on_retriever_start()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_retriever_start)
- [`on_retriever_end()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_retriever_end)
- [`on_retriever_error()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_retriever_error)
- [`on_text()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_text)
- [`on_agent_action()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_agent_action)
- [`on_agent_finish()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_agent_finish)
- [`on_chain_error()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/on_chain_error)
- [`graph_context()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/graph_context)
- [`close()`](https://reference.langchain.com/python/langchain-google-community/callbacks/bigquery_callback/AsyncBigQueryCallbackHandler/close)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/callbacks/bigquery_callback.py#L1634)