-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
270 lines (248 loc) · 8.15 KB
/
pyproject.toml
File metadata and controls
270 lines (248 loc) · 8.15 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
269
270
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "maseval"
version = "0.4.0"
description = "A library for multi-agent systems evaluation and benchmarking."
authors = [{ name = "Cornelius Emde", email = "cornelius@parameterlab.de" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"gitpython>=3.1.0",
"tqdm>=4.66.0",
"rich>=14.1.0",
"pydantic>=2.10.6",
]
# Enable optional dependencies for end users
[project.optional-dependencies]
# Agent frameworks
smolagents = ["smolagents>=1.21.3", "litellm>=1.0.0"]
langgraph = ["langgraph>=0.6.0", "litellm>=1.0.0"]
llamaindex = ["llama-index-core>=0.12.0", "litellm>=1.0.0"]
camel = ["camel-ai>=0.2.0", "litellm>=1.0.0"]
# Inference engines
anthropic = ["anthropic>=0.40.0"]
openai = ["openai>=1.107.2"]
google-genai = ["google-genai>=1.37.0"]
transformers = ["transformers>=4.37.0"]
litellm = ["litellm>=1.0.0"]
# Logging
wandb = ["wandb>=0.15.0"]
langfuse = ["langfuse>=3.3.4"]
# Benchmarks
are = ["meta-agents-research-environments>=1.2.0"]
gaia2 = ["meta-agents-research-environments>=1.2.0", "datasets>=3.0.0"]
macs = []
multiagentbench = [
# Core MARBLE runtime
"litellm>=1.0.0",
"pyyaml>=6.0",
"ruamel.yaml>=0.17.0",
"beartype",
"colorlog>=6.0.0",
"requests>=2.28.0",
# Research domain
"beautifulsoup4>=4.12.0",
"keybert>=0.8.0",
"arxiv>=2.1.0",
"pypdf2>=3.0.0",
"semanticscholar>=0.8.0",
# Coding domain
"levenshtein>=0.20.0",
# Database domain
"psycopg2-binary>=2.9.0",
"pymysql>=1.1.0",
# Werewolf domain
"names>=0.3.0",
# Minecraft domain
"flask>=3.0.0",
"javascript>=1!1.2.0",
"waitress>=3.0.0",
# Evaluation
"scikit-learn>=1.3.0",
# dependency of keybert. Lower versions are incompatible with huggingfacehub
"sentence-transformers>=2.3.0",
]
tau2 = ["docstring-parser>=0.16", "addict>=2.4.0"]
converse = []
# HuggingFace model + tokenizer, default dataset download; numpy for example script and anchor-point loading.
# For exact lm-evaluation-harness reproduction (--use_lmeval_batching), also install maseval[lm-eval].
mmlu = [
"torch>=2.0.0",
"transformers>=4.37.0",
"numpy>=1.20.0",
]
# LM Evaluation Harness — requires transformers 4.x (lm-eval uses APIs removed in 5.x)
lm-eval = [
"aiohttp>=3.9.0",
"transformers>=4.37.0,<5.0.0",
"lm-eval>=0.4.0",
]
# DISCO prediction (for MMLU benchmark example) — requires transformers 4.x via lm-eval
disco = [
"aiohttp>=3.9.0",
"click>=8.1.0",
"datasets==4.4.1",
"gdown>=4.6.0",
"h5py>=3.0.0",
"ipython>=8.0.0",
"jsonlines>=4.0.0",
"lm-eval>=0.4.0",
"matplotlib>=3.5.0",
"transformers>=4.37.0,<5.0.0",
"scikit-learn>=1.7.2",
"scipy>=1.11.0",
"tiktoken>=0.5.0",
"torch==2.9.1",
"torchvision>=0.15.0",
"typer>=0.9.0",
"umap-learn>=0.5.0",
]
# Dependencies for running examples (only what's actually used)
examples = [
"maseval[smolagents,langgraph,llamaindex,camel,anthropic,openai,google-genai,litellm,langfuse,gaia2,macs,tau2,disco]",
# Additional integrations used in examples
"langchain>=0.3.27",
"langchain-google-genai>=2.1.12",
"typing-extensions>=4.0.0",
"mcp>=1.22.0",
"python-dotenv>=1.0.0",
# Jupyter notebook support
"jupyter>=1.0.0",
"ipykernel>=6.0.0",
"ipywidgets>=8.0.0",
"accelerate>=1.11.0",
"RestrictedPython>=7.0",
]
# Complete installation with absolutely everything (uses self-reference for DRY)
all = ["maseval[examples,transformers,wandb,multiagentbench]"]
[project.urls]
"Homepage" = "https://github.com/parameterlab/MASEval"
"Bug Tracker" = "https://github.com/parameterlab/MASEval/issues"
"Documentation" = "https://maseval.readthedocs.io/en/stable/"
"Changelog" = "https://github.com/parameterlab/MASEval/blob/main/CHANGELOG.md"
[dependency-groups]
# Development tools (linting, testing) - for contributors only
dev = [
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"coverage>=7.0.0",
"ruff>=0.14.0",
"ty>=0.0.5",
"pre-commit>=4.0.0",
"respx>=0.22.0",
]
# Documentation building - for contributors only
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.7.0",
"mkdocstrings[python]>=1.0.0",
"pymdown-extensions>=10.0.0",
"mkdocs-jupyter>=0.24.0",
"mkdocs-git-revision-date-localized-plugin>=1.5.0",
]
[tool.uv]
# ARE (meta-agents-research-environments) pins all 22 of its runtime dependencies
# to exact versions (==), which conflicts with other extras in this project.
# Override the most problematic pins with compatible ranges until Meta relaxes
# their constraints upstream.
override-dependencies = [
# ARE pins all deps with ==. Relax every pin to a compatible range.
"click>=8.1.0",
"datasets>=3.0.0",
"docstring-parser>=0.16",
"fsspec>=2024.12.0",
# # Compromise between ARE (wants >=0.28.0) and multiagentbench (needs <0.20.0)
# # Using >=0.19 allows 0.19.x which satisfies multiagentbench's <0.20.0 requirement
# # TODO: Verify ARE actually works with huggingface-hub 0.19.x (it pins to 0.28.0 originally)
# "huggingface-hub>=0.19",
"inputimeout>=1.0.4",
"jinja2>=3.1.0",
"litellm>=1.0.0",
"mammoth>=1.8.0",
"markdownify>=0.14.1",
"mcp>=1.11.0",
"numpy>=2.2.0",
"pandas>=2.2.0",
"pdfminer-six>=20231228",
"pillow>=10.4.0",
"polars-lts-cpu>=1.33.1",
"puremagic>=1.27",
"pydantic>=2.10.6",
"python-dotenv>=1.0.0",
"python-pptx>=1.0.2",
"rapidfuzz>=3.12.1",
"termcolor>=2.5.0",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["maseval*"]
[tool.setuptools.package-data]
"*" = ["*.json", "*.jsonl", "*.toml", "*.yaml", "*.yml", "*.txt", "*.md", "*.sql"]
[tool.ruff]
line-length = 144
exclude = []
[tool.pytest.ini_options]
markers = [
"core: Core tests that don't require optional dependencies",
"interface: Tests that require optional dependencies (smolagents, langgraph, etc.)",
"contract: Cross-implementation contract tests that validate framework-agnostic abstraction",
"benchmark: Benchmark-specific tests (MACS, etc.) that test benchmark implementations, not core library",
"smolagents: Tests that specifically require smolagents",
"langgraph: Tests that specifically require langgraph",
"llamaindex: Tests that specifically require llama-index-core",
"are: Tests that specifically require ARE (Agent Research Environments)",
"gaia2: Tests that specifically require ARE (Agent Research Environments)",
"camel: Tests that specifically require camel-ai",
"mmlu: Tests that specifically require MMLU benchmark (HuggingFace + DISCO)",
"live: Tests requiring network access (downloads, external APIs)",
"credentialed: Tests requiring API keys (implies live, costs money)",
"slow: Tests taking >30 seconds (data downloads, large datasets)",
"smoke: Full end-to-end pipeline validation (pre-release only)",
]
minversion = "6.0"
addopts = "-ra -q -m 'not (slow or credentialed or smoke)'"
testpaths = ["tests"]
[tool.coverage.run]
relative_files = true
source = ["maseval"]
omit = [
"*/tests/*",
"*/examples/*",
"*/__pycache__/*",
"maseval/benchmark/multiagentbench/marble/**",
]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
"@overload",
]
precision = 2
[tool.coverage.xml]
output = "coverage.xml"
[tool.coverage.html]
directory = "htmlcov"
[tool.ty.src]
# Exclude notebooks and docs/examples from type checking
# These contain local imports that are only valid when run from their directory
exclude = ["docs/examples/", "examples/"]