Remove unnecessary graph_context usage in BigQuery#4116
Open
Yash (yashupadhyayy1) wants to merge 1 commit into
Open
Remove unnecessary graph_context usage in BigQuery#4116Yash (yashupadhyayy1) wants to merge 1 commit into
Yash (yashupadhyayy1) wants to merge 1 commit into
Conversation
Contributor
|
Thanks for opening a docs PR, Yash (@yashupadhyayy1)! When it's ready for review, please add the relevant reviewers:
|
Author
|
mdrx, please take a review on this error with potential solution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 Agentsection raises two errors:
Error 1 —
graph_nameis 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_nameandgraph_context()which werenever part of the
BigQueryCallbackHandlerAPI in v3.0.5.Actual constructor signature:
BigQueryCallbackHandler(project_id, dataset_id, table_id=None, config=None)
Fix
graph_nameargument from constructorgraph_context()context manager