BigQueryAI LangChain Deprecation Error

未关闭
#112 2 条评论 0 个 reaction 已指派 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 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

crypto-com/developer-platform-sdk-examples 的其他 Issue

查看 crypto-com/developer-platform-sdk-examples 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。