-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
230 lines (208 loc) · 5.77 KB
/
pyproject.toml
File metadata and controls
230 lines (208 loc) · 5.77 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
[project]
name = "agent-lifecycle-toolkit"
requires-python = ">=3.10"
version = "0.10.1"
classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
readme = "README.md"
license-files = ["LICENSE*"]
dependencies = [
"ibm-watsonx-ai>=1.0.0",
"jinja2>=3.1.6",
"jsonschema>=4.0.0",
"langchain-core>=0.3.72",
"litellm<2.0.0",
"openai>=1.0.0",
"pydantic>=2.0.0",
"smolagents>=1.21.3",
"typing-extensions>=4.0.0",
"tomli==2.2.1",
"aiofiles==24.1.0",
"black>=25.1.0",
"docstring_parser>=0.16",
"numpy>=2.2.6",
"genson>=1.3.0",
"langchain-chroma>=0.1.4",
"langchain-community>=0.3.21",
"langchain-huggingface>=0.3.0",
"llm-sandbox[docker,podman]>=0.2.5",
"langchain-text-splitters>=1.0.0",
"nltk>=3.9.1",
"scipy>=1.15.3",
"onnxruntime==1.23.2 ; python_version == '3.10'", # last version that supports python3.10
]
description = "The Agent Lifecycle Toolkit (ALTK) is a library of components to help agent builders improve their agent with minimal integration effort and setup."
keywords = [
"LLM",
"NLP",
"RAG",
"data",
"devtools",
"index",
"retrieval",
"generation",
"agent",
]
[project.urls]
homepage = "https://altk.ai/"
documentation = "https://agenttoolkit.github.io/agent-lifecycle-toolkit/"
source = "https://github.com/AgentToolkit/agent-lifecycle-toolkit"
download = "https://pypi.org/project/agent-lifecycle-toolkit/#files"
tracker = "https://github.com/AgentToolkit/agent-lifecycle-toolkit/issues"
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["altk"]
exclude = [
"*.md",
"**/docs",
"**/tests/",
"**/*examples/",
".pre-commit-config.yaml",
"MAINTAINERS",
"pytest.ini",
"**/site/",
"*.jsonl",
"*.png",
"*.jpg",
"*.jpeg"
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"pytest>=8.2.1",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.14.1",
"ruff>=0.13.2",
"mypy>=1.18.2",
"langchain_ibm>=0.3.6",
"langgraph>=0.2.74",
"python-semantic-release~=10.4.1",
"pandas-stubs>=2.3.2.250926",
"types-pysocks>=1.7.1.20251001",
"types-pyyaml>=6.0.12.20250915",
"types-pygments>=2.19.0.20250809",
"types-cachetools>=6.2.0.20250827",
"types-cffi>=1.17.0.20250915",
"types-grpcio>=1.0.0.20251009",
"types-jsonschema>=4.25.1.20251009",
"types-objgraph>=3.6.0.20240907",
"types-protobuf>=6.32.1.20250918",
"types-psutil>=7.0.0.20251001",
"types-pyasn1>=0.6.0.20250914",
"types-regex>=2025.9.18.20250921",
"types-ujson>=5.10.0.20250822",
]
[project.optional-dependencies]
docs = [
"mkdocs-material",
"mkdocs-jupyter",
"mkdocs-click",
"mkdocstrings[python]",
"griffe_inherited_docstrings",
"griffe-pydantic",
"mkdocs-awesome-nav",
"mkdocs-include-markdown-plugin>=7.1.8",
"mkdocs-enumerate-headings-plugin"
]
build = ["uv~=0.8.22"]
spotlight = [
"torch==2.2.2 ; sys_platform == 'darwin' and platform_machine == 'x86_64'",
"torch>=2.5.1 ; sys_platform != 'darwin' or platform_machine != 'x86_64'",
"transformers>=4.53.3",
]
toolguard = [
"toolguard>=0.2.9",
]
refraction = [
"nl2flow>=0.1.2; sys_platform != 'win32'",
"sentence-transformers>=5.0.0",
"nestful-wrapper>=0.1.4"
]
routing = [
"pymilvus[milvus-lite,model]>=2.6.2",
"milvus-lite>=2.5.2rc1", # necessary due to pkg_resources being removed
"pydash>=8.0.5",
"bertopic>=0.17.3",
"scikit-learn>=1.7.1",
"sentence-transformers>=5.0.0",
"docling>=2.38.1",
]
[[tool.uv.index]]
name = "pytorch-cu118"
url = "https://download.pytorch.org/whl/cu118"
explicit = true
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9",
"F", # pyflakes
"B", # flake8-bugbear
]
ignore = [
"B905" # ignore requiring `strict` to be specified when using `zip`
]
unfixable = [
"B" # don't attempt to fix bugbear issues
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"E402", # ignore import violations
"F401", # ignore unused import violations
]
"**/tests/*" = [
"E402", # ignore import violations
"F401", # ignore unused import violations
]
[tool.pytest.ini_options]
log_cli = true
addopts = "--ignore=test-case-generation-toolkit/test_case_generation_toolkit/utils/test_case_generation.py -m \"not llm and not refract_extra\""
markers = [
"llm: marks tests as LLM provider tests (expensive, run only with -m llm)",
"refract_extra: extra tests from refraction"
]
[tool.mypy]
ignore_errors = true
[tool.semantic_release]
allow_zero_version = true
major_on_zero = false
version_toml = ["pyproject.toml:project.version"]
commit_parser = "conventional"
build_command = """
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv build
"""
tag_format = "v{version}"
commit_message = "chore: bump version to {version} [skip ci]"
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
parse_squash_commits = true
ignore_merge_commits = true
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
exclude_commit_patterns = [
'''chore(?:\([^)]*?\))?: .+''',
'''ci(?:\([^)]*?\))?: .+''',
'''refactor(?:\([^)]*?\))?: .+''',
'''style(?:\([^)]*?\))?: .+''',
'''test(?:\([^)]*?\))?: .+''',
'''build\((?!deps\): .+)''',
'''Initial [Cc]ommit.*''',
]
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"