diff --git a/kfinance/CHANGELOG.md b/kfinance/CHANGELOG.md index 8a6d80f..8b0f41c 100644 --- a/kfinance/CHANGELOG.md +++ b/kfinance/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v5.1.3 +- Bump fastmcp and langchain dependencies + ## v5.1.2 - Update tools to more gracefully handle errors diff --git a/kfinance/client/kfinance.py b/kfinance/client/kfinance.py index ffcab74..4862386 100644 --- a/kfinance/client/kfinance.py +++ b/kfinance/client/kfinance.py @@ -11,7 +11,7 @@ from urllib.parse import urljoin import webbrowser -import google.ai.generativelanguage_v1beta.types as gapic +from google.genai import types as gapic from langchain_core.utils.function_calling import convert_to_openai_tool from langchain_google_genai._function_utils import convert_to_genai_function_declarations from PIL.Image import Image, open as image_open @@ -1846,7 +1846,7 @@ def anthropic_tool_descriptions(self) -> list[dict[str, Any]]: return anthropic_tool_descriptions @property - def gemini_tool_descriptions(self) -> gapic.Tool: + def gemini_tool_descriptions(self) -> list[gapic.Tool]: """Return tool descriptions for gemini. The conversion from BaseTool -> openai tool description -> google tool mirrors the diff --git a/pyproject.toml b/pyproject.toml index 1411217..17eed1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,9 +21,9 @@ dependencies = [ "asyncer==0.0.14", "cachetools>=6,<7", "click>=8.2.1,<=9", - "fastmcp>=2.13.1,<2.14", - "langchain-core>=0.3.15", - "langchain-google-genai>=2.1.5,<3", + "fastmcp>=2.14.2,<2.15", + "langchain-core>=1.2.22,<2", + "langchain-google-genai>=4.2.1,<5", "numpy>=1.22.4", "pandas>=2.0.0", "pillow>=10", @@ -41,7 +41,7 @@ dependencies = [ dev = [ "coverage>=7.6.10,<8", "ipykernel>=6.29,<7", - "langchain-anthropic>=0.3.10, <1", + "langchain-anthropic>=1.4.0,<2", "mypy>=1.16.0,<2", "nbconvert>=7.16,<8", "nbformat>5.10,<6",