langchain 1.0.0a1__py3-none-any.whl → 1.0.0a3__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.
- langchain/agents/__init__.py +2 -2
- langchain/agents/react_agent.py +6 -6
- {langchain-1.0.0a1.dist-info → langchain-1.0.0a3.dist-info}/METADATA +3 -3
- {langchain-1.0.0a1.dist-info → langchain-1.0.0a3.dist-info}/RECORD +7 -7
- {langchain-1.0.0a1.dist-info → langchain-1.0.0a3.dist-info}/WHEEL +0 -0
- {langchain-1.0.0a1.dist-info → langchain-1.0.0a3.dist-info}/entry_points.txt +0 -0
- {langchain-1.0.0a1.dist-info → langchain-1.0.0a3.dist-info}/licenses/LICENSE +0 -0
langchain/agents/__init__.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"""langgraph.prebuilt exposes a higher-level API for creating and executing agents and tools."""
|
|
2
2
|
|
|
3
|
-
from langchain.agents.react_agent import AgentState,
|
|
3
|
+
from langchain.agents.react_agent import AgentState, create_agent
|
|
4
4
|
from langchain.agents.tool_node import ToolNode
|
|
5
5
|
|
|
6
6
|
__all__ = [
|
|
7
7
|
"AgentState",
|
|
8
8
|
"ToolNode",
|
|
9
|
-
"
|
|
9
|
+
"create_agent",
|
|
10
10
|
]
|
langchain/agents/react_agent.py
CHANGED
|
@@ -898,7 +898,7 @@ def _supports_native_structured_output(
|
|
|
898
898
|
)
|
|
899
899
|
|
|
900
900
|
|
|
901
|
-
def
|
|
901
|
+
def create_agent( # noqa: D417
|
|
902
902
|
model: Union[
|
|
903
903
|
str,
|
|
904
904
|
BaseChatModel,
|
|
@@ -928,7 +928,7 @@ def create_react_agent( # noqa: D417
|
|
|
928
928
|
) -> CompiledStateGraph[StateT, ContextT]:
|
|
929
929
|
"""Creates an agent graph that calls tools in a loop until a stopping condition is met.
|
|
930
930
|
|
|
931
|
-
For more details on using `
|
|
931
|
+
For more details on using `create_agent`, visit [Agents](https://langchain-ai.github.io/langgraph/agents/overview/) documentation.
|
|
932
932
|
|
|
933
933
|
Args:
|
|
934
934
|
model: The language model for the agent. Supports static and dynamic
|
|
@@ -1096,13 +1096,13 @@ def create_react_agent( # noqa: D417
|
|
|
1096
1096
|
|
|
1097
1097
|
Example:
|
|
1098
1098
|
```python
|
|
1099
|
-
from langchain.agents import
|
|
1099
|
+
from langchain.agents import create_agent
|
|
1100
1100
|
|
|
1101
1101
|
def check_weather(location: str) -> str:
|
|
1102
1102
|
'''Return the weather forecast for the specified location.'''
|
|
1103
1103
|
return f"It's always sunny in {location}"
|
|
1104
1104
|
|
|
1105
|
-
graph =
|
|
1105
|
+
graph = create_agent(
|
|
1106
1106
|
"anthropic:claude-3-7-sonnet-latest",
|
|
1107
1107
|
tools=[check_weather],
|
|
1108
1108
|
prompt="You are a helpful assistant",
|
|
@@ -1123,7 +1123,7 @@ def create_react_agent( # noqa: D417
|
|
|
1123
1123
|
context_schema = config_schema
|
|
1124
1124
|
|
|
1125
1125
|
if len(deprecated_kwargs) > 0:
|
|
1126
|
-
msg = f"
|
|
1126
|
+
msg = f"create_agent() got unexpected keyword arguments: {deprecated_kwargs}"
|
|
1127
1127
|
raise TypeError(msg)
|
|
1128
1128
|
|
|
1129
1129
|
if response_format and not isinstance(response_format, (ToolStrategy, ProviderStrategy)):
|
|
@@ -1171,5 +1171,5 @@ __all__ = [
|
|
|
1171
1171
|
"AgentStatePydantic",
|
|
1172
1172
|
"AgentStateWithStructuredResponse",
|
|
1173
1173
|
"AgentStateWithStructuredResponsePydantic",
|
|
1174
|
-
"
|
|
1174
|
+
"create_agent",
|
|
1175
1175
|
]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: langchain
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a3
|
|
4
4
|
Summary: Building applications with LLMs through composability
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/langchain
|
|
7
7
|
Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain%3D%3D0%22&expanded=true
|
|
8
8
|
Project-URL: repository, https://github.com/langchain-ai/langchain
|
|
9
9
|
Requires-Python: >=3.10
|
|
10
|
-
Requires-Dist: langchain-core<
|
|
11
|
-
Requires-Dist: langchain-text-splitters<1.0.0,>=0.3.
|
|
10
|
+
Requires-Dist: langchain-core<2.0.0,>=0.3.75
|
|
11
|
+
Requires-Dist: langchain-text-splitters<1.0.0,>=0.3.11
|
|
12
12
|
Requires-Dist: langgraph>=0.6.0
|
|
13
13
|
Requires-Dist: pydantic>=2.7.4
|
|
14
14
|
Provides-Extra: anthropic
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
langchain-1.0.
|
|
2
|
-
langchain-1.0.
|
|
3
|
-
langchain-1.0.
|
|
4
|
-
langchain-1.0.
|
|
1
|
+
langchain-1.0.0a3.dist-info/METADATA,sha256=7FrDorI_AGxr9mNHcmqcz21yjtiDVSa5iPVXQpB5Bzg,6731
|
|
2
|
+
langchain-1.0.0a3.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
langchain-1.0.0a3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
+
langchain-1.0.0a3.dist-info/licenses/LICENSE,sha256=TsZ-TKbmch26hJssqCJhWXyGph7iFLvyFBYAa3stBHg,1067
|
|
5
5
|
langchain/__init__.py,sha256=ISYSSsweDINkqsfffWO_bLHCgohQqoMvZAs_5WYxA1U,604
|
|
6
6
|
langchain/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
langchain/_internal/_documents.py,sha256=z9wAPukoASOMw4WTFFBKCCZYsvsKbo-Cq6CeHjdq9eE,1045
|
|
@@ -9,11 +9,11 @@ langchain/_internal/_lazy_import.py,sha256=N52tzaTdeae9XqFhLWIsfE0Am-2P4y-6v7m6n
|
|
|
9
9
|
langchain/_internal/_prompts.py,sha256=BW0PZlMoaW4jFG77-_FPHCd8NSLLg2FgF1ihG9l200M,6027
|
|
10
10
|
langchain/_internal/_typing.py,sha256=pVioGzy4zB2SxB_SyegZ7liAN1yqNHSvMviUZ47dAik,1674
|
|
11
11
|
langchain/_internal/_utils.py,sha256=lG8X9muiRAWtQjRPudq-1x-wHbk0J3spu_rYZckVdYs,251
|
|
12
|
-
langchain/agents/__init__.py,sha256=
|
|
12
|
+
langchain/agents/__init__.py,sha256=NG2S3dic9L3i4sAD9mpgaTv6Dl4L3u45xxK6jn-I4W8,281
|
|
13
13
|
langchain/agents/_internal/__init__.py,sha256=5nNBeaeQIvv9IOQjY4_aNW8pffWzMXQgi0b6Nx-WghM,37
|
|
14
14
|
langchain/agents/_internal/_typing.py,sha256=Jm3ogPZjGGgM-kz46RwxpsbBYHMnY8_bY74Vw8PLdAU,283
|
|
15
15
|
langchain/agents/interrupt.py,sha256=8A6xV3Vjm8DEO7W9mlKJKRmpl89Q0cXfDzRsz8VjJeE,3309
|
|
16
|
-
langchain/agents/react_agent.py,sha256=
|
|
16
|
+
langchain/agents/react_agent.py,sha256=z22IrQNDti0vMDD5WaaMiv5ZOZKTgdxB-4E9n01arQM,48374
|
|
17
17
|
langchain/agents/structured_output.py,sha256=8D7U-HXRm1-WnMX3SLUz4wpNNwbYtkq5WSpjgOWrBpk,13289
|
|
18
18
|
langchain/agents/tool_node.py,sha256=IXNX8CNxeGWln7lUfObnlQDvz3XBmz2KND_THxen1AQ,46637
|
|
19
19
|
langchain/chat_models/__init__.py,sha256=LlKLVCO4FTYyQawC6du1YJxQbeBvYdtYEntPowy28aA,161
|
|
@@ -30,4 +30,4 @@ langchain/storage/exceptions.py,sha256=P5FiMbxsTA0bLbc96i_DgWmQGOUEc1snGBtxn7sOj
|
|
|
30
30
|
langchain/storage/in_memory.py,sha256=ozrmu0EtaJJVSAzK_u7nzxWpr9OOscWkANHSg-qIVYQ,369
|
|
31
31
|
langchain/text_splitter.py,sha256=yxWs4secpnkfK6VZDiNJNdlYOrRZ18RQZj1S3xNQ73A,1554
|
|
32
32
|
langchain/tools/__init__.py,sha256=Fhohmkn63aAN66tqfuTVN9p5Kb1kauXVOkrvpl0x-RQ,238
|
|
33
|
-
langchain-1.0.
|
|
33
|
+
langchain-1.0.0a3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|