deepagents 0.0.8__tar.gz → 0.0.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.
- {deepagents-0.0.8 → deepagents-0.0.10}/PKG-INFO +4 -4
- {deepagents-0.0.8 → deepagents-0.0.10}/README.md +2 -2
- {deepagents-0.0.8 → deepagents-0.0.10}/deepagents.egg-info/PKG-INFO +4 -4
- {deepagents-0.0.8 → deepagents-0.0.10}/deepagents.egg-info/requires.txt +1 -1
- {deepagents-0.0.8 → deepagents-0.0.10}/pyproject.toml +2 -2
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/middleware.py +4 -4
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/tools.py +1 -1
- {deepagents-0.0.8 → deepagents-0.0.10}/LICENSE +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/deepagents.egg-info/SOURCES.txt +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/deepagents.egg-info/dependency_links.txt +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/deepagents.egg-info/top_level.txt +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/setup.cfg +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/__init__.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/graph.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/model.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/prompts.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/state.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/src/deepagents/types.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/tests/test_deepagents.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/tests/test_hitl.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/tests/test_middleware.py +0 -0
- {deepagents-0.0.8 → deepagents-0.0.10}/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deepagents
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: General purpose 'deep agent' with sub-agent spawning, todo list capabilities, and mock file system. Built on LangGraph.
|
|
5
5
|
License: MIT
|
|
6
6
|
Requires-Python: <4.0,>=3.11
|
|
@@ -8,7 +8,7 @@ Description-Content-Type: text/markdown
|
|
|
8
8
|
License-File: LICENSE
|
|
9
9
|
Requires-Dist: langgraph>=1.0.0a3
|
|
10
10
|
Requires-Dist: langchain-anthropic>=0.1.23
|
|
11
|
-
Requires-Dist: langchain>=1.0.
|
|
11
|
+
Requires-Dist: langchain>=1.0.0a10
|
|
12
12
|
Requires-Dist: langgraph-prebuilt>=0.7.0a2
|
|
13
13
|
Provides-Extra: dev
|
|
14
14
|
Requires-Dist: pytest; extra == "dev"
|
|
@@ -163,10 +163,10 @@ agent = create_deep_agent(
|
|
|
163
163
|
For more complex use cases, you can provide your own pre-built LangGraph graph as a subagent:
|
|
164
164
|
|
|
165
165
|
```python
|
|
166
|
-
from
|
|
166
|
+
from langchain.agents import create_agent
|
|
167
167
|
|
|
168
168
|
# Create a custom agent graph
|
|
169
|
-
custom_graph =
|
|
169
|
+
custom_graph = create_agent(
|
|
170
170
|
model=your_model,
|
|
171
171
|
tools=specialized_tools,
|
|
172
172
|
prompt="You are a specialized agent for data analysis..."
|
|
@@ -144,10 +144,10 @@ agent = create_deep_agent(
|
|
|
144
144
|
For more complex use cases, you can provide your own pre-built LangGraph graph as a subagent:
|
|
145
145
|
|
|
146
146
|
```python
|
|
147
|
-
from
|
|
147
|
+
from langchain.agents import create_agent
|
|
148
148
|
|
|
149
149
|
# Create a custom agent graph
|
|
150
|
-
custom_graph =
|
|
150
|
+
custom_graph = create_agent(
|
|
151
151
|
model=your_model,
|
|
152
152
|
tools=specialized_tools,
|
|
153
153
|
prompt="You are a specialized agent for data analysis..."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deepagents
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: General purpose 'deep agent' with sub-agent spawning, todo list capabilities, and mock file system. Built on LangGraph.
|
|
5
5
|
License: MIT
|
|
6
6
|
Requires-Python: <4.0,>=3.11
|
|
@@ -8,7 +8,7 @@ Description-Content-Type: text/markdown
|
|
|
8
8
|
License-File: LICENSE
|
|
9
9
|
Requires-Dist: langgraph>=1.0.0a3
|
|
10
10
|
Requires-Dist: langchain-anthropic>=0.1.23
|
|
11
|
-
Requires-Dist: langchain>=1.0.
|
|
11
|
+
Requires-Dist: langchain>=1.0.0a10
|
|
12
12
|
Requires-Dist: langgraph-prebuilt>=0.7.0a2
|
|
13
13
|
Provides-Extra: dev
|
|
14
14
|
Requires-Dist: pytest; extra == "dev"
|
|
@@ -163,10 +163,10 @@ agent = create_deep_agent(
|
|
|
163
163
|
For more complex use cases, you can provide your own pre-built LangGraph graph as a subagent:
|
|
164
164
|
|
|
165
165
|
```python
|
|
166
|
-
from
|
|
166
|
+
from langchain.agents import create_agent
|
|
167
167
|
|
|
168
168
|
# Create a custom agent graph
|
|
169
|
-
custom_graph =
|
|
169
|
+
custom_graph = create_agent(
|
|
170
170
|
model=your_model,
|
|
171
171
|
tools=specialized_tools,
|
|
172
172
|
prompt="You are a specialized agent for data analysis..."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "deepagents"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.10"
|
|
4
4
|
description = "General purpose 'deep agent' with sub-agent spawning, todo list capabilities, and mock file system. Built on LangGraph."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { text = "MIT" }
|
|
@@ -8,7 +8,7 @@ requires-python = ">=3.11,<4.0"
|
|
|
8
8
|
dependencies = [
|
|
9
9
|
"langgraph>=1.0.0a3",
|
|
10
10
|
"langchain-anthropic>=0.1.23",
|
|
11
|
-
"langchain>=1.0.
|
|
11
|
+
"langchain>=1.0.0a10",
|
|
12
12
|
"langgraph-prebuilt>=0.7.0a2",
|
|
13
13
|
]
|
|
14
14
|
|
|
@@ -7,8 +7,8 @@ from langchain_core.tools import BaseTool, tool, InjectedToolCallId
|
|
|
7
7
|
from langchain_core.messages import ToolMessage
|
|
8
8
|
from langchain.chat_models import init_chat_model
|
|
9
9
|
from langgraph.types import Command
|
|
10
|
-
from langchain.
|
|
11
|
-
from typing import Annotated
|
|
10
|
+
from langchain.tools.tool_node import InjectedState
|
|
11
|
+
from typing import Annotated
|
|
12
12
|
from deepagents.state import PlanningState, FilesystemState
|
|
13
13
|
from deepagents.tools import write_todos, ls, read_file, write_file, edit_file
|
|
14
14
|
from deepagents.prompts import WRITE_TODOS_SYSTEM_PROMPT, TASK_SYSTEM_PROMPT, FILESYSTEM_SYSTEM_PROMPT, TASK_TOOL_DESCRIPTION, BASE_AGENT_PROMPT
|
|
@@ -144,7 +144,7 @@ def create_task_tool(
|
|
|
144
144
|
async def task(
|
|
145
145
|
description: str,
|
|
146
146
|
subagent_type: str,
|
|
147
|
-
state: Annotated[
|
|
147
|
+
state: Annotated[dict, InjectedState],
|
|
148
148
|
tool_call_id: Annotated[str, InjectedToolCallId],
|
|
149
149
|
):
|
|
150
150
|
if subagent_type not in agents:
|
|
@@ -173,7 +173,7 @@ def create_task_tool(
|
|
|
173
173
|
def task(
|
|
174
174
|
description: str,
|
|
175
175
|
subagent_type: str,
|
|
176
|
-
state: Annotated[
|
|
176
|
+
state: Annotated[dict, InjectedState],
|
|
177
177
|
tool_call_id: Annotated[str, InjectedToolCallId],
|
|
178
178
|
):
|
|
179
179
|
if subagent_type not in agents:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from langchain_core.tools import tool, InjectedToolCallId
|
|
2
2
|
from langchain_core.messages import ToolMessage
|
|
3
3
|
from langgraph.types import Command
|
|
4
|
-
from langchain.
|
|
4
|
+
from langchain.tools.tool_node import InjectedState
|
|
5
5
|
from typing import Annotated, Union
|
|
6
6
|
from deepagents.state import Todo, FilesystemState
|
|
7
7
|
from deepagents.prompts import (
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|