crypto-com / crypto-com/developer-platform-sdk-examples

BigQueryAI LangChain Deprecation Error

オープン
#112 コメント 2 件 リアクション 0 件 担当者 1 名 @leejw51crypto が担当を希望しています GitHub で見る
good first issue
主要言語
TypeScript
スター
7
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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(""))
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

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

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

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