langchain 1.0.0rc1__py3-none-any.whl → 1.0.0rc2__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.
- langchain/__init__.py +1 -1
- langchain/agents/factory.py +1 -10
- langchain/tools/tool_node.py +2 -1
- {langchain-1.0.0rc1.dist-info → langchain-1.0.0rc2.dist-info}/METADATA +2 -2
- {langchain-1.0.0rc1.dist-info → langchain-1.0.0rc2.dist-info}/RECORD +7 -7
- {langchain-1.0.0rc1.dist-info → langchain-1.0.0rc2.dist-info}/WHEEL +0 -0
- {langchain-1.0.0rc1.dist-info → langchain-1.0.0rc2.dist-info}/licenses/LICENSE +0 -0
langchain/__init__.py
CHANGED
langchain/agents/factory.py
CHANGED
|
@@ -1225,15 +1225,6 @@ def create_agent( # noqa: PLR0915
|
|
|
1225
1225
|
graph.add_edge(START, entry_node)
|
|
1226
1226
|
# add conditional edges only if tools exist
|
|
1227
1227
|
if tool_node is not None:
|
|
1228
|
-
# Only include exit_node in destinations if any tool has return_direct=True
|
|
1229
|
-
# or if there are structured output tools
|
|
1230
|
-
tools_to_model_destinations = [loop_entry_node]
|
|
1231
|
-
if (
|
|
1232
|
-
any(tool.return_direct for tool in tool_node.tools_by_name.values())
|
|
1233
|
-
or structured_output_tools
|
|
1234
|
-
):
|
|
1235
|
-
tools_to_model_destinations.append(exit_node)
|
|
1236
|
-
|
|
1237
1228
|
graph.add_conditional_edges(
|
|
1238
1229
|
"tools",
|
|
1239
1230
|
_make_tools_to_model_edge(
|
|
@@ -1242,7 +1233,7 @@ def create_agent( # noqa: PLR0915
|
|
|
1242
1233
|
structured_output_tools=structured_output_tools,
|
|
1243
1234
|
end_destination=exit_node,
|
|
1244
1235
|
),
|
|
1245
|
-
|
|
1236
|
+
[loop_entry_node, exit_node],
|
|
1246
1237
|
)
|
|
1247
1238
|
|
|
1248
1239
|
# base destinations are tools and exit_node
|
langchain/tools/tool_node.py
CHANGED
|
@@ -75,6 +75,7 @@ from langchain_core.tools import tool as create_tool
|
|
|
75
75
|
from langchain_core.tools.base import (
|
|
76
76
|
TOOL_MESSAGE_BLOCK_TYPES,
|
|
77
77
|
ToolException,
|
|
78
|
+
_DirectlyInjectedToolArg,
|
|
78
79
|
get_all_basemodel_annotations,
|
|
79
80
|
)
|
|
80
81
|
from langgraph._internal._runnable import RunnableCallable
|
|
@@ -1349,7 +1350,7 @@ def tools_condition(
|
|
|
1349
1350
|
|
|
1350
1351
|
|
|
1351
1352
|
@dataclass
|
|
1352
|
-
class ToolRuntime(
|
|
1353
|
+
class ToolRuntime(_DirectlyInjectedToolArg, Generic[ContextT, StateT]):
|
|
1353
1354
|
"""Runtime context automatically injected into tools.
|
|
1354
1355
|
|
|
1355
1356
|
When a tool function has a parameter named 'tool_runtime' with type hint
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langchain
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc2
|
|
4
4
|
Summary: Building applications with LLMs through composability
|
|
5
5
|
Project-URL: homepage, https://docs.langchain.com/
|
|
6
6
|
Project-URL: repository, https://github.com/langchain-ai/langchain/tree/master/libs/langchain
|
|
@@ -11,7 +11,7 @@ Project-URL: reddit, https://www.reddit.com/r/LangChain/
|
|
|
11
11
|
License: MIT
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Requires-Python: <4.0.0,>=3.10.0
|
|
14
|
-
Requires-Dist: langchain-core<2.0.0,>=1.0.
|
|
14
|
+
Requires-Dist: langchain-core<2.0.0,>=1.0.0rc3
|
|
15
15
|
Requires-Dist: langgraph<2.0.0,>=1.0.0a4
|
|
16
16
|
Requires-Dist: pydantic<3.0.0,>=2.7.4
|
|
17
17
|
Provides-Extra: anthropic
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
langchain/__init__.py,sha256=
|
|
1
|
+
langchain/__init__.py,sha256=zTVJXeQnKRDdEeQc-ivRY9P9TV6An_dmmkgW6phY86I,64
|
|
2
2
|
langchain/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
langchain/agents/__init__.py,sha256=tDjbhFSC6XHQUZ_XvjHwmbICFfjxmE9xKFMbUVSIwfs,522
|
|
4
|
-
langchain/agents/factory.py,sha256=
|
|
4
|
+
langchain/agents/factory.py,sha256=RhClhqWInb2i0pjNJj9-0OvnB6waj0r8Qbm5bN7ofw8,62214
|
|
5
5
|
langchain/agents/structured_output.py,sha256=BDSF6PWVih41M7IGyjCHWy46jmDxZsfBt_B4llE9OOc,13764
|
|
6
6
|
langchain/agents/middleware/__init__.py,sha256=FBoTr4TAyuLJiOKV-mJN3oaLE6D6Q5ubI5sCbnsCCSs,1955
|
|
7
7
|
langchain/agents/middleware/context_editing.py,sha256=0sUpDc0FvOKMERNnEKnhBqrTjX_rCVWjIX8hH3RTG8U,8749
|
|
@@ -23,8 +23,8 @@ langchain/embeddings/base.py,sha256=1aNxDLQmS_l7RMcvjnK7Cv7rtgKrKt6Sl7mgXM2_JWI,
|
|
|
23
23
|
langchain/messages/__init__.py,sha256=p7NlF1yf8MkMgJzJ2wggXGkkA_okz1f-g63KoflL6PA,1710
|
|
24
24
|
langchain/rate_limiters/__init__.py,sha256=5490xUNhet37N2nX6kbJlDgf8u1DX-C1Cs_r7etXn8A,351
|
|
25
25
|
langchain/tools/__init__.py,sha256=hMzbaGcfHhNYfJx20uV57uMd9a-gNLbmopG4gDReeEc,628
|
|
26
|
-
langchain/tools/tool_node.py,sha256=
|
|
27
|
-
langchain-1.0.
|
|
28
|
-
langchain-1.0.
|
|
29
|
-
langchain-1.0.
|
|
30
|
-
langchain-1.0.
|
|
26
|
+
langchain/tools/tool_node.py,sha256=0rk5SZ0L80X6DJA5ohzyuqydL-S40i5LHMXJsY2t0JI,65016
|
|
27
|
+
langchain-1.0.0rc2.dist-info/METADATA,sha256=WG0BlqzPbwur0AlHyITXIE35MX7iSpzGIfqqD4dFLxc,4544
|
|
28
|
+
langchain-1.0.0rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
29
|
+
langchain-1.0.0rc2.dist-info/licenses/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
|
|
30
|
+
langchain-1.0.0rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|