langchain-google-genai 2.1.9__tar.gz → 2.1.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of langchain-google-genai might be problematic. Click here for more details.

Files changed (16) hide show
  1. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/PKG-INFO +2 -2
  2. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/chat_models.py +5 -3
  3. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/pyproject.toml +5 -5
  4. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/LICENSE +0 -0
  5. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/README.md +0 -0
  6. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/__init__.py +0 -0
  7. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/_common.py +0 -0
  8. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/_enums.py +0 -0
  9. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/_function_utils.py +0 -0
  10. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/_genai_extension.py +0 -0
  11. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/_image_utils.py +0 -0
  12. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/embeddings.py +0 -0
  13. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/genai_aqa.py +0 -0
  14. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/google_vector_store.py +0 -0
  15. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/llms.py +0 -0
  16. {langchain_google_genai-2.1.9 → langchain_google_genai-2.1.10}/langchain_google_genai/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langchain-google-genai
3
- Version: 2.1.9
3
+ Version: 2.1.10
4
4
  Summary: An integration package connecting Google's genai package and LangChain
5
5
  Home-page: https://github.com/langchain-ai/langchain-google
6
6
  License: MIT
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Requires-Dist: filetype (>=1.2.0,<2.0.0)
15
15
  Requires-Dist: google-ai-generativelanguage (>=0.6.18,<0.7.0)
16
- Requires-Dist: langchain-core (>=0.3.68,<0.4.0)
16
+ Requires-Dist: langchain-core (>=0.3.75,<0.4.0)
17
17
  Requires-Dist: pydantic (>=2,<3)
18
18
  Project-URL: Repository, https://github.com/langchain-ai/langchain-google
19
19
  Project-URL: Source Code, https://github.com/langchain-ai/langchain-google/tree/main/libs/genai
@@ -698,7 +698,9 @@ def _parse_response_candidate(
698
698
  )
699
699
  if content is None:
700
700
  content = ""
701
- if any(isinstance(item, dict) and "executable_code" in item for item in content):
701
+ if isinstance(content, list) and any(
702
+ isinstance(item, dict) and "executable_code" in item for item in content
703
+ ):
702
704
  warnings.warn(
703
705
  """
704
706
  ⚠️ Warning: Output may vary each run.
@@ -1281,8 +1283,8 @@ class ChatGoogleGenerativeAI(_BaseGoogleGenerativeAI, BaseChatModel):
1281
1283
 
1282
1284
  client: Any = Field(default=None, exclude=True) #: :meta private:
1283
1285
  async_client_running: Any = Field(default=None, exclude=True) #: :meta private:
1284
- default_metadata: Sequence[Tuple[str, str]] = Field(
1285
- default_factory=list
1286
+ default_metadata: Optional[Sequence[Tuple[str, str]]] = Field(
1287
+ default=None, alias="default_metadata_input"
1286
1288
  ) #: :meta private:
1287
1289
 
1288
1290
  convert_system_message_to_human: bool = False
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "langchain-google-genai"
3
- version = "2.1.9"
3
+ version = "2.1.10"
4
4
  description = "An integration package connecting Google's genai package and LangChain"
5
5
  authors = []
6
6
  readme = "README.md"
@@ -12,7 +12,7 @@ license = "MIT"
12
12
 
13
13
  [tool.poetry.dependencies]
14
14
  python = ">=3.9,<4.0"
15
- langchain-core = "^0.3.68"
15
+ langchain-core = "^0.3.75"
16
16
  google-ai-generativelanguage = "^0.6.18"
17
17
  pydantic = ">=2,<3"
18
18
  filetype = "^1.2.0"
@@ -23,7 +23,7 @@ optional = true
23
23
  [tool.poetry.group.test.dependencies]
24
24
  pytest = "^7.3.0"
25
25
  freezegun = "^1.2.2"
26
- pytest-mock = "^3.10.0"
26
+ pytest-mock = "^3.14.1"
27
27
  syrupy = "^4.0.2"
28
28
  pytest-watcher = "^0.3.4"
29
29
  pytest-asyncio = "^0.21.1"
@@ -53,11 +53,11 @@ pytest = "^7.3.0"
53
53
  optional = true
54
54
 
55
55
  [tool.poetry.group.lint.dependencies]
56
- ruff = "^0.1.5"
56
+ ruff = "^0.12.10"
57
57
 
58
58
 
59
59
  [tool.poetry.group.typing.dependencies]
60
- mypy = "^1.10"
60
+ mypy = "^1.17.1"
61
61
  types-requests = "^2.31.0"
62
62
  types-google-cloud-ndb = "^2.2.0.1"
63
63
  types-protobuf = "^4.24.0.20240302"