[PR #4116] Remove unnecessary graph_context usage in BigQuery #4115

Open
opened 2026-06-05 19:12:48 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/4116
Author: @yashupadhyayy1
Created: 5/21/2026
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 603f97e Remove unnecessary graph_context usage in BigQuery

📊 Changes

1 file changed (+0 additions, -1 deletions)

View changed files

📝 src/oss/python/integrations/callbacks/google_bigquery.mdx (+0 -1)

📄 Description

Summary

Fixes broken code example in the BigQuery callback handler integration docs.

Closes #3509

Problem

With langchain-google-community==3.0.5, the Use with LangGraph Agent
section raises two errors:

Error 1graph_name is not a valid constructor parameter:
TypeError: BigQueryCallbackHandler.init() got an unexpected keyword argument 'graph_name'

Error 2graph_context() method does not exist:
AttributeError: 'BigQueryCallbackHandler' object has no attribute 'graph_context'

[screenshot attached below]

Root Cause

The docs example references graph_name and graph_context() which were
never part of the BigQueryCallbackHandler API in v3.0.5.

Actual constructor signature:
BigQueryCallbackHandler(project_id, dataset_id, table_id=None, config=None)

Fix

  • Removed non-existent graph_name argument from constructor
  • Removed non-existent graph_context() context manager
  • Handler is passed directly via config={"callbacks": [handler]}
Screenshot 2026-05-21 095315

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/4116 **Author:** [@yashupadhyayy1](https://github.com/yashupadhyayy1) **Created:** 5/21/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`603f97e`](https://github.com/langchain-ai/docs/commit/603f97eeb040d040fb80e0c26866cfe035bbf915) Remove unnecessary graph_context usage in BigQuery ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/python/integrations/callbacks/google_bigquery.mdx` (+0 -1) </details> ### 📄 Description ## Summary Fixes broken code example in the BigQuery callback handler integration docs. Closes #3509 ## Problem With `langchain-google-community==3.0.5`, the **Use with LangGraph Agent** section raises two errors: **Error 1** — `graph_name` is not a valid constructor parameter: TypeError: BigQueryCallbackHandler.__init__() got an unexpected keyword argument 'graph_name' **Error 2** — `graph_context()` method does not exist: AttributeError: 'BigQueryCallbackHandler' object has no attribute 'graph_context' [screenshot attached below] ## Root Cause The docs example references `graph_name` and `graph_context()` which were never part of the `BigQueryCallbackHandler` API in v3.0.5. Actual constructor signature: BigQueryCallbackHandler(project_id, dataset_id, table_id=None, config=None) ## Fix - Removed non-existent `graph_name` argument from constructor - Removed non-existent `graph_context()` context manager - Handler is passed directly via config={"callbacks": [handler]} <img width="1468" height="606" alt="Screenshot 2026-05-21 095315" src="https://github.com/user-attachments/assets/adcfeff7-e156-4c7d-8436-adb9561cf53c" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 19:12:48 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#4115