-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathpyproject.toml
More file actions
268 lines (237 loc) · 9.79 KB
/
pyproject.toml
File metadata and controls
268 lines (237 loc) · 9.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "deepagents-cli"
version = "0.0.34"
description = "Terminal interface for Deep Agents - interactive AI agent with file operations, shell access, and sub-agent capabilities."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11,<4.0"
keywords = ["agents", "ai", "cli", "terminal", "llm", "langgraph", "langchain", "deep-agent"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Terminals",
]
dependencies = [
# Framework
"deepagents==0.4.11",
"langchain>=1.2.10,<2.0.0",
"langgraph>=1.1.2,<2.0.0",
"langgraph-checkpoint-sqlite>=3.0.0,<4.0.0",
# Client-server architecture
"langgraph-sdk>=0.3.11,<1.0.0",
"langgraph-cli[inmem]>=0.4.15,<1.0.0",
"httpx>=0.28.1,<1.0.0",
# Core model providers - others are added as optional
"langchain-anthropic>=1.3.5,<2.0.0",
"langchain-google-genai>=4.2.1,<5.0.0",
"langchain-openai>=1.1.8,<2.0.0",
# UI/Terminal
"textual>=8.0.0,<9.0.0",
"textual-autocomplete>=3.0.0,<5.0.0",
"textual-speedups>=0.2.1,<1.0.0",
"prompt-toolkit>=3.0.52,<4.0.0",
"rich>=14.0.0,<15.0.0",
"markdownify>=0.13.0,<2.0.0",
# Sandbox integrations
"langsmith[sandbox]>=0.7.7",
# Tools
"tavily-python>=0.7.21,<1.0.0",
# Clipboard
"pyperclip>=1.11.0,<2.0.0",
# Utilities
"uuid-utils>=0.10.0,<1.0.0",
"python-dotenv>=1.0.0,<2.0.0",
"requests>=2.0.0,<3.0.0",
"pillow>=10.0.0,<13.0.0",
"pyyaml>=6.0.0",
"aiosqlite>=0.19.0,<1.0.0",
"tomli-w>=1.0.0,<2.0.0",
# MCP
"langchain-mcp-adapters>=0.2.0,<1.0.0",
# ACP
"deepagents-acp>=0.0.4",
]
[project.optional-dependencies]
# Model providers
anthropic = ["langchain-anthropic>=1.3.5,<2.0.0"]
baseten = ["langchain-baseten>=0.1.9,<1.0.0"]
bedrock = ["langchain-aws>=1.0.0,<2.0.0"]
cohere = ["langchain-cohere>=0.5.0,<1.0.0"]
deepseek = ["langchain-deepseek>=1.0.0,<2.0.0"]
fireworks = ["langchain-fireworks>=1.0.0,<2.0.0"]
google-genai = ["langchain-google-genai>=4.2.1,<5.0.0"]
groq = ["langchain-groq>=1.0.0,<2.0.0"]
huggingface = ["langchain-huggingface>=1.0.0,<2.0.0"]
ibm = ["langchain-ibm>=1.0.0,<2.0.0"]
litellm = ["langchain-litellm>=0.6.1,<2.0.0"]
mistralai = ["langchain-mistralai>=1.0.0,<2.0.0"]
nvidia = ["langchain-nvidia-ai-endpoints>=1.0.0,<2.0.0"]
ollama = ["langchain-ollama>=1.0.0,<2.0.0"]
openai = ["langchain-openai>=1.1.8,<2.0.0"]
openrouter = ["langchain-openrouter>=0.1.0,<2.0.0"]
perplexity = ["langchain-perplexity>=1.0.0,<2.0.0"]
vertexai = ["langchain-google-vertexai>=3.0.0,<4.0.0"]
xai = ["langchain-xai>=1.0.0,<2.0.0"]
# Sandbox providers
daytona = ["langchain-daytona>=0.0.4"]
modal = ["langchain-modal>=0.0.2"]
runloop = ["langchain-runloop>=0.0.3"]
all-sandboxes = [
"deepagents-cli[daytona,modal,runloop]",
]
all-providers = [
"deepagents-cli[anthropic,baseten,bedrock,cohere,deepseek,fireworks,google-genai,groq,huggingface,ibm,litellm,mistralai,nvidia,ollama,openai,openrouter,perplexity,vertexai,xai]",
]
[project.scripts]
deepagents = "deepagents_cli:cli_main"
deepagents-cli = "deepagents_cli:cli_main"
[project.urls]
Homepage = "https://docs.langchain.com/oss/python/deepagents/overview"
Documentation = "https://reference.langchain.com/python/deepagents/"
Repository = "https://github.com/langchain-ai/deepagents"
Issues = "https://github.com/langchain-ai/deepagents/issues"
Changelog = "https://github.com/langchain-ai/deepagents/blob/main/libs/cli/CHANGELOG.md"
Twitter = "https://x.com/LangChain"
[dependency-groups]
test = [
"build>=1.0.0,<2.0.0",
"ruff>=0.14.0,<1.0.0",
"ty>=0.0.1,<1.0.0",
"pytest>=8.3.4,<10.0.0",
"pytest-asyncio>=0.25.3,<2.0.0",
"pytest-cov>=6.0.0,<8.0.0",
"pytest-mock>=3.14.0,<4.0.0",
"pytest-socket>=0.7.0,<1.0.0",
"pytest-timeout>=2.3.1,<3.0.0",
"pytest-watcher>=0.3.4,<1.0.0",
"pytest-xdist>=3.8.0,<4.0.0",
"responses>=0.25.0,<1.0.0",
"twine>=6.0.0,<7.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["deepagents_cli"]
[tool.hatch.build.targets.wheel.shared-data]
"deepagents_cli/default_agent_prompt.md" = "deepagents_cli/default_agent_prompt.md"
"deepagents_cli/*.tcss" = "deepagents_cli/"
[tool.uv.sources]
deepagents = { path = "../deepagents", editable = true }
langchain-daytona = { path = "../partners/daytona", editable = true }
langchain-modal = { path = "../partners/modal", editable = true }
langchain-runloop = { path = "../partners/runloop", editable = true }
[tool.ty.environment]
python-version = "3.11"
extra-paths = [
"../deepagents",
"../partners/daytona",
"../partners/modal",
"../partners/runloop",
]
[tool.ty.rules]
# https://docs.astral.sh/ty/rules/
division-by-zero = "error"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 100
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"C90", # McCabe complexity
"COM812", # Messes with the formatter
"CPY", # No copyright
"FBT", # Boolean positional arguments (too pedantic)
"FIX002", # Line contains TODO
"ISC001", # Messes with the formatter
"PERF203", # Rarely useful
"PLC0414", # Inconsistent with how type checkers expect to be notified of intentional re-exports
"PLC0415", # Lazy imports are used extensively throughout the CLI for startup performance (deferred heavy imports)
"PLR09", # Too many something (args, branches, returns, statements, etc)
"PLR1702", # Too many nested blocks
"SLF001", # Private member access
"TD002", # Missing author in TODO
"TD003", # Missing issue link in TODO
]
unfixable = ["B028"] # People should intentionally tune the stacklevel
flake8-annotations.allow-star-arg-any = true
flake8-annotations.mypy-init-return = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = false
combine-as-imports = true
known-first-party = ["deepagents_cli"]
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-var-parameters = true
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"ANN001", # Missing type annotation for function argument — not needed in tests
"ANN201", # Missing return type annotation — not needed in tests
"D1", # Missing docstrings — not needed in tests
"DOC", # Docstring conventions — not needed in tests
"F401", # Imported but unused — test fixtures may appear unused
"PLC0415", # Lazy imports — test organization patterns
"PLC1901", # Comparison to empty string — fine in test assertions
"PLC2701", # Private name import — tests need access to internals
"PLR2004", # Magic value used in comparison — fine in test assertions
"PLR6201", # Literal membership test — fine in tests
"PLR6301", # Method could be a function — test class organization
"PLW0108", # Lambda may be unnecessary — fine in test mocks
"RUF001", # Ambiguous characters — fine in test strings
"S", # Security warnings — not applicable to tests
"SLF", # Private member access — tests need access to internals
]
"scripts/**" = [
"BLE001", # Blind exception catch — resilience in standalone scripts
"INP", # Missing `__init__.py` — scripts are standalone
"S", # Security warnings — not applicable to scripts
"T201", # `print` found — scripts use print for output
]
"examples/**" = [
"ANN001", # Missing type annotation for function argument — examples prioritize clarity
"ANN201", # Missing return type annotation — examples prioritize clarity
"BLE001", # Blind exception catch — resilience in example scripts
"INP001", # Missing `__init__.py` — examples are standalone
"N806", # Variable in function should be lowercase — example naming conventions
"PLC0415", # Lazy import — example organization patterns
"PLR2004", # Magic value used in comparison — fine in examples
"T201", # `print` found — examples use print for output
"TRY300", # Consider moving to `else` block — examples prioritize readability
]
"deepagents_cli/built_in_skills/**/scripts/**" = [
"ANN001", # Missing type annotation for function argument — standalone scripts
"ANN201", # Missing return type annotation — standalone scripts
"BLE001", # Blind exception catch — resilience in standalone scripts
"INP001", # Missing `__init__.py` — scripts are standalone
"N806", # Variable in function should be lowercase — script naming conventions
"PLR2004", # Magic value used in comparison — fine in scripts
"T201", # `print` found — scripts use print for output
]
[tool.coverage.run]
omit = ["tests/*"]
[tool.pytest.ini_options]
timeout = 30 # Default timeout for all tests (can be overridden per-test)
addopts = "--strict-markers --strict-config --durations=5"
markers = ["benchmark: marks tests as benchmarks (select with '-m benchmark')"]
# pytest-benchmark warns once per xdist worker that benchmarks are disabled
# under parallel execution. Both plugins are needed: xdist for `make test`,
# benchmark for `make benchmark`. Suppress the noise here.
# Use a message-match filter so the import of pytest_benchmark isn't required
# when the plugin is not installed.
filterwarnings = [
"ignore:.*pytest.benchmark.*:pytest.PytestConfigWarning",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"