forked from camel-ai/camel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
283 lines (255 loc) · 6.1 KB
/
pyproject.toml
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "camel-ai"
version = "0.1.5"
authors = ["CAMEL-AI.org"]
description = "Communicative Agents for AI Society Study"
readme = "README.md"
keywords = [
"communicative-ai",
"ai-societies",
"artificial-intelligence",
"deep-learning",
"multi-agent-systems",
"cooperative-ai",
"natural-language-processing",
"large-language-models",
]
packages = [
{ include = "camel" },
]
license = "Apache License 2.0"
homepage = "https://www.camel-ai.org/"
repository = "https://github.com/camel-ai/camel"
documentation = "https://docs.camel-ai.org"
[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
numpy = "^1"
openai = "^1.2.3"
tiktoken = "^0.7.0"
colorama = "^0"
jsonschema = "^4"
protobuf = "^4"
pathlib = "^1.0.1"
anthropic = "^0.21.3"
docstring-parser = "^0.15"
pydantic = ">=1.9,<3"
# huggingface-agent
transformers = { version = "^4", optional = true }
diffusers = { version = "^0", optional = true }
accelerate = { version = "^0", optional = true }
datasets = { version = "^2", optional = true }
torch = { version = "^1", optional = true }
soundfile = { version = "^0", optional = true }
sentencepiece = { version = "^0", optional = true }
opencv-python = { version = "^4", optional = true }
# tools
beautifulsoup4 = { version = "^4", optional = true }
docx2txt = { version = "^0.8", optional = true }
PyMuPDF = { version = "^1.22.5", optional = true }
wikipedia = { version = "^1", optional = true }
wolframalpha = { version = "^5.0.0", optional = true }
pyowm = { version = "^3.3.0", optional = true }
googlemaps = { version = "^4.10.0", optional = true }
requests_oauthlib = { version = "^1.3.1", optional = true }
prance = { version = "^23.6.21.0", optional = true }
openapi-spec-validator = { version = "^0.7.1", optional = true }
unstructured = { extras = ["all-docs"], version = "^0.10.30", optional = true }
slack-sdk = { version = "^3.27.2", optional = true }
pydub = { version = "^0.25.1", optional = true }
pygithub = { version = "^2.3.0", optional = true }
# encoders
sentence-transformers = { version = "^2.2.2", optional = true }
# vector-databases
qdrant-client = { version = "^1.9.0", optional = true }
pymilvus = { version = "^2.4.0", optional = true }
# graph-storages
neo4j = { version = "^5.18.0", optional = true }
# retrievers
rank-bm25 = { version = "^0.2.2", optional = true }
cohere = { version = "^4.56", optional = true }
# test
pytest = { version = "^7", optional = true}
mock = { version = "^5", optional = true}
[tool.poetry.extras]
test = ["pytest", "mock"]
huggingface-agent = [
"transformers",
"diffusers",
"accelerate",
"datasets",
"torch",
"soundfile",
"sentencepiece",
"opencv-python",
]
encoders = [
"sentence-transformers",
]
tools = [
"beautifulsoup4",
"docx2txt",
"PyMuPDF",
"wikipedia",
"wolframalpha",
"pyowm",
"googlemaps",
"requests_oauthlib",
"prance",
"openapi-spec-validator",
"unstructured",
"slack-sdk",
"pydub",
"pygithub",
]
vector-databases = [
"qdrant-client",
"pymilvus",
]
graph-storages = [
"neo4j",
]
retrievers = [
"rank-bm25",
"cohere",
]
all = [
# huggingface-agent
"transformers",
"diffusers",
"accelerate",
"datasets",
"torch",
"soundfile",
"sentencepiece",
"opencv-python",
# tools
"beautifulsoup4",
"docx2txt",
"pygithub",
"PyMuPDF",
"wikipedia",
"wolframalpha",
"pyowm",
"googlemaps",
"requests_oauthlib",
"prance",
"openapi-spec-validator",
"unstructured",
"slack-sdk",
"pydub",
# vector-database
"qdrant-client",
"pymilvus",
# retrievers
"cohere",
# encoders
"sentence-transformers",
# graph-storages
"neo4j",
# retrievers
"rank-bm25",
]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
ruff = "^0.4.1"
mypy = "^1.5.1"
toml = ">=0.10.2"
pre-commit = "^3"
pytest = "^7"
pytest-cov = "^4"
gradio = "^3"
mock = "^5"
# types
types-Pillow = "*"
types-Pygments = "*"
types-mock = "*"
types-regex = "*"
types-setuptools = "*"
types-tqdm = "*"
types-colorama = "^0"
types-requests = "^2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^6"
sphinx_book_theme = "*"
recommonmark = "*"
docutils = "<0.20.0"
[tool.ruff]
line-length = 80
fix = true
target-version = "py39"
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
]
ignore = [
"B028", # Warning without stacklevel
"B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()'
"N818", # Exception name should be named with an Error suffix
"C416", # I think comprehension is more clear https://docs.astral.sh/ruff/rules/unnecessary-comprehension/
"C408", # we have used lots of dict(...) instead of literal
]
[tool.ruff.lint.isort]
known-first-party = ["camel"]
[tool.pytest.ini_options]
pythonpath = ["."]
addopts = ["--strict-markers"]
markers = [
"very_slow: mark a very slow test to run only in full test mode",
"model_backend: for tests that require OpenAI API key or a local LLM",
]
[tool.coverage.report]
include_namespace_packages = true
[[tool.mypy.overrides]]
module = [
"transformers.*",
"packaging.*",
"tiktoken",
"openai",
"openai.error",
"pytest",
"_pytest.config",
"_pytest.nodes",
"numpy",
"torch",
"sqlalchemy",
"google.cloud.sql.connector",
"gradio",
"database_connection",
"huggingface_hub",
"huggingface_hub.utils._errors",
"wikipedia",
"wolframalpha",
"pyowm",
"googlemaps",
"requests_oauthlib",
"prance",
"openapi-spec-validator",
"jsonschema.*",
"bs4.*",
"docx2txt",
"PyMuPDF",
"fitz",
"qdrant_client.*",
"unstructured.*",
"rank_bm25",
"cohere",
"sentence_transformers.*",
"pymilvus",
"slack-sdk",
"pydub",
"pygithub"
]
ignore_missing_imports = true