langchain 0.3.12__py3-none-any.whl → 0.3.14__py3-none-any.whl

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 might be problematic. Click here for more details.

@@ -11,11 +11,13 @@ AGENT_DEPRECATION_WARNING = (
11
11
  "LangChain agents will continue to be supported, but it is recommended for new "
12
12
  "use cases to be built with LangGraph. LangGraph offers a more flexible and "
13
13
  "full-featured framework for building agents, including support for "
14
- "tool-calling, persistence of state, and human-in-the-loop workflows. See "
15
- "LangGraph documentation for more details: "
16
- "https://langchain-ai.github.io/langgraph/. Refer here for its pre-built "
17
- "ReAct agent: "
18
- "https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/"
14
+ "tool-calling, persistence of state, and human-in-the-loop workflows. For "
15
+ "details, refer to the "
16
+ "`LangGraph documentation <https://langchain-ai.github.io/langgraph/>`_"
17
+ " as well as guides for "
18
+ "`Migrating from AgentExecutor <https://python.langchain.com/docs/how_to/migrate_agent/>`_" # noqa: E501
19
+ " and LangGraph's "
20
+ "`Pre-built ReAct agent <https://langchain-ai.github.io/langgraph/how-tos/create-react-agent/>`_." # noqa: E501
19
21
  )
20
22
 
21
23
 
@@ -116,6 +116,7 @@ def init_chat_model(
116
116
  - 'huggingface' -> langchain-huggingface
117
117
  - 'groq' -> langchain-groq
118
118
  - 'ollama' -> langchain-ollama
119
+ - 'google_anthropic_vertex' -> langchain-google-vertexai
119
120
 
120
121
  Will attempt to infer model_provider from model if not specified. The
121
122
  following providers will be inferred based on these model prefixes:
@@ -410,6 +411,11 @@ def _init_chat_model_helper(
410
411
  from langchain_aws import ChatBedrockConverse
411
412
 
412
413
  return ChatBedrockConverse(model=model, **kwargs)
414
+ elif model_provider == "google_anthropic_vertex":
415
+ _check_pkg("langchain_google_vertexai")
416
+ from langchain_google_vertexai.model_garden import ChatAnthropicVertex
417
+
418
+ return ChatAnthropicVertex(model=model, **kwargs)
413
419
  else:
414
420
  supported = ", ".join(_SUPPORTED_PROVIDERS)
415
421
  raise ValueError(
@@ -433,6 +439,7 @@ _SUPPORTED_PROVIDERS = {
433
439
  "groq",
434
440
  "bedrock",
435
441
  "bedrock_converse",
442
+ "google_anthropic_vertex",
436
443
  }
437
444
 
438
445
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langchain
3
- Version: 0.3.12
3
+ Version: 0.3.14
4
4
  Summary: Building applications with LLMs through composability
5
5
  Home-page: https://github.com/langchain-ai/langchain
6
6
  License: MIT
@@ -16,7 +16,7 @@ Requires-Dist: PyYAML (>=5.3)
16
16
  Requires-Dist: SQLAlchemy (>=1.4,<3)
17
17
  Requires-Dist: aiohttp (>=3.8.3,<4.0.0)
18
18
  Requires-Dist: async-timeout (>=4.0.0,<5.0.0) ; python_version < "3.11"
19
- Requires-Dist: langchain-core (>=0.3.25,<0.4.0)
19
+ Requires-Dist: langchain-core (>=0.3.29,<0.4.0)
20
20
  Requires-Dist: langchain-text-splitters (>=0.3.3,<0.4.0)
21
21
  Requires-Dist: langsmith (>=0.1.17,<0.3)
22
22
  Requires-Dist: numpy (>=1.22.4,<2) ; python_version < "3.12"
@@ -1,6 +1,6 @@
1
1
  langchain/__init__.py,sha256=4cqV-N_QJnfjk52DqtR2e72vsmJC1R6PkflvRdLjZQI,13709
2
2
  langchain/_api/__init__.py,sha256=0FuHuMNUBMrst1Y1nm5yZzQr2xbLmb7rxMsimqKBXhs,733
3
- langchain/_api/deprecation.py,sha256=GuafNmTTzxJ8eveGcVrPx9pmeu1Oe_d2cTrvOIZYuvo,1082
3
+ langchain/_api/deprecation.py,sha256=K9VCkmMs_ebfd_wCJppKq4Ahw-mlXkukbsQ69iQVxT0,1246
4
4
  langchain/_api/interactive_env.py,sha256=NlnXizhm1TG3l_qKNI0qHJiHkh9q2jRjt5zGJsg_BCA,139
5
5
  langchain/_api/module_import.py,sha256=q6UZ1WadWx7curQq8HV8nGwt9WmKd7tJ0mipUyG7ll0,6347
6
6
  langchain/_api/path.py,sha256=ovJP6Pcf7L_KaKvMMet9G9OzfLTb-sZV2pEw3Tp7o3I,122
@@ -360,7 +360,7 @@ langchain/chat_models/azure_openai.py,sha256=aRNol2PNC49PmvdZnwjhQeMFRDOOelPNAXz
360
360
  langchain/chat_models/azureml_endpoint.py,sha256=6mxXm8UFXataLp0NYRGA88V3DpiNKPo095u_JGj7XGE,863
361
361
  langchain/chat_models/baichuan.py,sha256=3-GveFoF5ZNyLdRNK6V4i3EDDjdseOTFWbCMhDbtO9w,643
362
362
  langchain/chat_models/baidu_qianfan_endpoint.py,sha256=CZrX2SMpbE9H7wBXNC6rGvw-YqQl9zjuJrClYQxEzuI,715
363
- langchain/chat_models/base.py,sha256=DL0OTo4ro35oyrVLGzRcce5bF34k32C788mUZ4lFEcE,32616
363
+ langchain/chat_models/base.py,sha256=sIK9Jhk472AlSBJEiF4-002DcDC0w8-Z56FvASjT3dY,32959
364
364
  langchain/chat_models/bedrock.py,sha256=HRV3T_0mEnZ8LvJJqAA_UVpt-_03G715oIgomRJw55M,757
365
365
  langchain/chat_models/cohere.py,sha256=EYOECHX-nKRhZVfCfmFGZ2lr51PzaB5OvOEqmBCu1fI,633
366
366
  langchain/chat_models/databricks.py,sha256=5_QkC5lG4OldaHC2FS0XylirJouyZx1YT95SKwc12M0,653
@@ -1335,8 +1335,8 @@ langchain/vectorstores/xata.py,sha256=HW_Oi5Hz8rH2JaUhRNWQ-3hLYmNzD8eAz6K5YqPArm
1335
1335
  langchain/vectorstores/yellowbrick.py,sha256=-lnjGcRE8Q1nEPOTdbKYTw5noS2cy2ce1ePOU804-_o,624
1336
1336
  langchain/vectorstores/zep.py,sha256=RJ2auxoA6uHHLEZknw3_jeFmYJYVt-PWKMBcNMGV6TM,798
1337
1337
  langchain/vectorstores/zilliz.py,sha256=XhPPIUfKPFJw0_svCoBgCnNkkBLoRVVcyuMfOnE5IxU,609
1338
- langchain-0.3.12.dist-info/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
1339
- langchain-0.3.12.dist-info/METADATA,sha256=8K4-mACxE_CX5Rb1HEDUfy031WRA0LzYznnFMUL5AyY,7127
1340
- langchain-0.3.12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1341
- langchain-0.3.12.dist-info/entry_points.txt,sha256=IgKjoXnkkVC8Nm7ggiFMCNAk01ua6RVTb9cmZTVNm5w,58
1342
- langchain-0.3.12.dist-info/RECORD,,
1338
+ langchain-0.3.14.dist-info/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
1339
+ langchain-0.3.14.dist-info/METADATA,sha256=52UAIirwNLJ5FYEfHuFwoC8FpBgk6jQuQazGXM1z9Sk,7127
1340
+ langchain-0.3.14.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1341
+ langchain-0.3.14.dist-info/entry_points.txt,sha256=IgKjoXnkkVC8Nm7ggiFMCNAk01ua6RVTb9cmZTVNm5w,58
1342
+ langchain-0.3.14.dist-info/RECORD,,