BigQueryAI LangChain Deprecation Error

オープン
#112 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@leejw51crypto がすでに取り組んでいます。

2025年7月30日 から。

評価

この issue はまだ評価されていません。

説明

good first issue
Issue

When interacting with bigquery.py using input help, the following error occurs:

LangChainDeprecationWarning: The method `BaseTool.__call__` was deprecated in langchain-core 0.1.47 and will be removed in 1.0. Use :meth:`~invoke` instead.
  print(tools.explain_bigquery_usage())
[ERROR] Failed to initialize agent: BaseTool.__call__() missing 1 required positional argument: 'tool_input'

When interacting with bigquery.py using inputs like limits, cost or info, the following error occurs:

LangChainDeprecationWarning: The method `BaseTool.__call__` was deprecated in langchain-core 0.1.47 and will be removed in 1.0. Use :meth:`~invoke` instead.
  print(tools.get_bigquery_cost_info())
[ERROR] Failed to initialize agent: BaseTool.__call__() missing 1 required positional argument: 'tool_input'

When interacting with bigquery.py using inputs like dataset, data, or tables, the following error occurs:

LangChainDeprecationWarning: The method `BaseTool.__call__` was deprecated in langchain-core 0.1.47 and will be removed in 1.0. Use :meth:`~invoke` instead.
  print(tools.get_bigquery_dataset_info())
[ERROR] Failed to initialize agent: BaseTool.__call__() missing 1 required positional argument: 'tool_input'
Verified Fix

https://github.com/crypto-com/developer-platform-sdk-examples/blob/393ae23338e7ca289a068127b9507afe4ab4bcd2/integrations/bigqueryai/bigquery.py#L145
Update to:

print(tools.explain_bigquery_usage.invoke(""))

https://github.com/crypto-com/developer-platform-sdk-examples/blob/393ae23338e7ca289a068127b9507afe4ab4bcd2/integrations/bigqueryai/bigquery.py#L149
Update to:

print(tools.get_bigquery_cost_info.invoke(""))

https://github.com/crypto-com/developer-platform-sdk-examples/blob/393ae23338e7ca289a068127b9507afe4ab4bcd2/integrations/bigqueryai/bigquery.py#L153
Update to:

print(tools.get_bigquery_dataset_info.invoke(""))
主要言語
TypeScript
スター
7
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

crypto-com/developer-platform-sdk-examples のほかの issue

crypto-com/developer-platform-sdk-examples の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。