deepagents 0.0.7__tar.gz → 0.0.9__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.7 → deepagents-0.0.9}/PKG-INFO +7 -2
- {deepagents-0.0.7 → deepagents-0.0.9}/deepagents.egg-info/PKG-INFO +7 -2
- {deepagents-0.0.7 → deepagents-0.0.9}/deepagents.egg-info/requires.txt +7 -1
- {deepagents-0.0.7 → deepagents-0.0.9}/pyproject.toml +9 -2
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/graph.py +4 -8
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/middleware.py +4 -4
- {deepagents-0.0.7 → deepagents-0.0.9}/LICENSE +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/README.md +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/deepagents.egg-info/SOURCES.txt +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/deepagents.egg-info/dependency_links.txt +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/deepagents.egg-info/top_level.txt +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/setup.cfg +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/__init__.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/model.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/prompts.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/state.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/tools.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/src/deepagents/types.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/tests/test_deepagents.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/tests/test_hitl.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/tests/test_middleware.py +0 -0
- {deepagents-0.0.7 → deepagents-0.0.9}/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.9
|
|
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,8 +8,13 @@ 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.0a9
|
|
12
12
|
Requires-Dist: langgraph-prebuilt>=0.7.0a2
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest; extra == "dev"
|
|
15
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
16
|
+
Requires-Dist: build; extra == "dev"
|
|
17
|
+
Requires-Dist: twine; extra == "dev"
|
|
13
18
|
Dynamic: license-file
|
|
14
19
|
|
|
15
20
|
# 🧠🤖Deep Agents
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deepagents
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
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,8 +8,13 @@ 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.0a9
|
|
12
12
|
Requires-Dist: langgraph-prebuilt>=0.7.0a2
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest; extra == "dev"
|
|
15
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
16
|
+
Requires-Dist: build; extra == "dev"
|
|
17
|
+
Requires-Dist: twine; extra == "dev"
|
|
13
18
|
Dynamic: license-file
|
|
14
19
|
|
|
15
20
|
# 🧠🤖Deep Agents
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "deepagents"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.9"
|
|
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,10 +8,17 @@ 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.0a9",
|
|
12
12
|
"langgraph-prebuilt>=0.7.0a2",
|
|
13
13
|
]
|
|
14
14
|
|
|
15
|
+
[project.optional-dependencies]
|
|
16
|
+
dev = [
|
|
17
|
+
"pytest",
|
|
18
|
+
"pytest-cov",
|
|
19
|
+
"build",
|
|
20
|
+
"twine",
|
|
21
|
+
]
|
|
15
22
|
|
|
16
23
|
[build-system]
|
|
17
24
|
requires = ["setuptools>=73.0.0", "wheel"]
|
|
@@ -36,18 +36,14 @@ def agent_builder(
|
|
|
36
36
|
),
|
|
37
37
|
SummarizationMiddleware(
|
|
38
38
|
model=model,
|
|
39
|
-
max_tokens_before_summary=
|
|
39
|
+
max_tokens_before_summary=120000,
|
|
40
40
|
messages_to_keep=20,
|
|
41
|
-
)
|
|
41
|
+
),
|
|
42
|
+
AnthropicPromptCachingMiddleware(ttl="5m", unsupported_model_behavior="ignore")
|
|
42
43
|
]
|
|
43
44
|
# Add tool interrupt config if provided
|
|
44
45
|
if tool_configs is not None:
|
|
45
|
-
deepagent_middleware.append(HumanInTheLoopMiddleware(
|
|
46
|
-
|
|
47
|
-
# Add Anthropic prompt caching is model is Anthropic
|
|
48
|
-
# TODO: Add this back when fixed
|
|
49
|
-
# if isinstance(model, ChatAnthropic):
|
|
50
|
-
# deepagent_middleware.append(AnthropicPromptCachingMiddleware(ttl="5m"))
|
|
46
|
+
deepagent_middleware.append(HumanInTheLoopMiddleware(interrupt_on=tool_configs))
|
|
51
47
|
|
|
52
48
|
if middleware is not None:
|
|
53
49
|
deepagent_middleware.extend(middleware)
|
|
@@ -72,12 +72,12 @@ def _get_agents(
|
|
|
72
72
|
PlanningMiddleware(),
|
|
73
73
|
FilesystemMiddleware(),
|
|
74
74
|
# TODO: Add this back when fixed
|
|
75
|
-
# AnthropicPromptCachingMiddleware(ttl="5m"),
|
|
76
75
|
SummarizationMiddleware(
|
|
77
76
|
model=model,
|
|
78
|
-
max_tokens_before_summary=
|
|
77
|
+
max_tokens_before_summary=120000,
|
|
79
78
|
messages_to_keep=20,
|
|
80
79
|
),
|
|
80
|
+
AnthropicPromptCachingMiddleware(ttl="5m", unsupported_model_behavior="ignore"),
|
|
81
81
|
]
|
|
82
82
|
agents = {
|
|
83
83
|
"general-purpose": create_agent(
|
|
@@ -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:
|
|
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
|
|
File without changes
|