inspect-swarm 0.0.1__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.
@@ -0,0 +1,222 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # Jupyter Notebook
75
+ .ipynb_checkpoints
76
+
77
+ # IPython
78
+ profile_default/
79
+ ipython_config.py
80
+
81
+ # pyenv
82
+ # For a library or package, you might want to ignore these files since the code is
83
+ # intended to run in multiple environments; otherwise, check them in:
84
+ # .python-version
85
+
86
+ # pipenv
87
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
88
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
89
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
90
+ # install all needed dependencies.
91
+ #Pipfile.lock
92
+
93
+ # UV
94
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
95
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
96
+ # commonly ignored for libraries.
97
+ #uv.lock
98
+
99
+ # poetry
100
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
101
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
102
+ # commonly ignored for libraries.
103
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
104
+ #poetry.lock
105
+ #poetry.toml
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
110
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
111
+ #pdm.lock
112
+ #pdm.toml
113
+ .pdm-python
114
+ .pdm-build/
115
+
116
+ # pixi
117
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
118
+ #pixi.lock
119
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
120
+ # in the .venv directory. It is recommended not to include this directory in version control.
121
+ .pixi
122
+
123
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
124
+ __pypackages__/
125
+
126
+ # Celery stuff
127
+ celerybeat-schedule
128
+ celerybeat.pid
129
+
130
+ # SageMath parsed files
131
+ *.sage.py
132
+
133
+ # Environments
134
+ .env
135
+ .envrc
136
+ .venv*
137
+ env/
138
+ venv/
139
+ ENV/
140
+ env.bak/
141
+ venv.bak/
142
+
143
+ # Spyder project settings
144
+ .spyderproject
145
+ .spyproject
146
+
147
+ # Rope project settings
148
+ .ropeproject
149
+
150
+ # mkdocs documentation
151
+ /site
152
+
153
+ # pyright
154
+ .pyright/
155
+
156
+ # Pyre type checker
157
+ .pyre/
158
+
159
+ # pytype static type analyzer
160
+ .pytype/
161
+
162
+ # mypy type checker
163
+ .mypy_cache/
164
+
165
+ # Cython debug symbols
166
+ cython_debug/
167
+
168
+ # PyCharm
169
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
170
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
171
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
172
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
173
+ #.idea/
174
+
175
+ # Abstra
176
+ # Abstra is an AI-powered process automation framework.
177
+ # Ignore directories containing user credentials, local state, and settings.
178
+ # Learn more at https://abstra.io/docs
179
+ .abstra/
180
+
181
+ # Visual Studio Code
182
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
183
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
184
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
185
+ # you could uncomment the following to ignore the entire vscode folder
186
+ # .vscode/
187
+
188
+ # Ruff stuff:
189
+ .ruff_cache/
190
+
191
+ # PyPI configuration file
192
+ .pypirc
193
+
194
+ # Cursor
195
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
196
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
197
+ # refer to https://docs.cursor.com/context/ignore-files
198
+ .cursorignore
199
+ .cursorindexingignore
200
+
201
+ # Marimo
202
+ marimo/_static/
203
+ marimo/_lsp/
204
+ __marimo__/
205
+
206
+ # Dynamic version
207
+ src/inspect_swarm/_version.py
208
+
209
+ # Inspect logs and scans
210
+ /logs/
211
+ /logs-*/
212
+
213
+ # MacOS
214
+ .DS_Store
215
+
216
+ # Claude Code
217
+ **/.claude/settings.local.json
218
+ .claude
219
+
220
+ # Quarto Docs
221
+ /.luarc.json
222
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Meridian Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.5
2
+ Name: inspect_swarm
3
+ Version: 0.0.1
4
+ Summary: Evals with multi-agent swarms (experimental).
5
+ Project-URL: Source Code, https://github.com/meridianlabs-ai/inspect_swarm
6
+ Project-URL: Issue Tracker, https://github.com/meridianlabs-ai/inspect_swarm/issues
7
+ Author: Meridian Labs
8
+ License: MIT License
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 1 - Planning
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Requires-Python: >=3.11
15
+ Requires-Dist: inspect-ai>=0.3.281
16
+ Description-Content-Type: text/markdown
17
+
18
+ # Inspect Swarm
19
+
20
+ > [!WARNING]
21
+ > **Experimental.** Inspect Swarm is under active development. It has no stable API, no releases, and may change or be withdrawn without notice.
22
+
23
+ Inspect Swarm will support evals that use multi-agent swarms with [Inspect](https://inspect.aisi.org.uk).
24
+
25
+ More to come.
@@ -0,0 +1,8 @@
1
+ # Inspect Swarm
2
+
3
+ > [!WARNING]
4
+ > **Experimental.** Inspect Swarm is under active development. It has no stable API, no releases, and may change or be withdrawn without notice.
5
+
6
+ Inspect Swarm will support evals that use multi-agent swarms with [Inspect](https://inspect.aisi.org.uk).
7
+
8
+ More to come.
@@ -0,0 +1,103 @@
1
+ [project]
2
+ name = "inspect_swarm"
3
+ dynamic = ["version"]
4
+ description = "Evals with multi-agent swarms (experimental)."
5
+ authors = [{ name = "Meridian Labs" }]
6
+ readme = "README.md"
7
+ # Above inspect-ai's 3.10 floor: the swarm runtime uses native ExceptionGroup
8
+ # and except*, which are new in 3.11.
9
+ requires-python = ">=3.11"
10
+ license = { text = "MIT License" }
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ "License :: OSI Approved :: MIT License",
14
+ "Operating System :: OS Independent",
15
+ "Development Status :: 1 - Planning",
16
+ ]
17
+ dependencies = [
18
+ # A released inspect_ai, never a git ref. Raise the floor only when src/
19
+ # needs a newer release; a newer version needed only by tests goes in
20
+ # uv.lock. 0.3.281 adds the swarm registry types (_registry.py).
21
+ "inspect-ai>=0.3.281",
22
+ ]
23
+
24
+ [project.urls]
25
+ "Source Code" = "https://github.com/meridianlabs-ai/inspect_swarm"
26
+ "Issue Tracker" = "https://github.com/meridianlabs-ai/inspect_swarm/issues"
27
+
28
+ # lets inspect_ai resolve `inspect_swarm/<name>` without importing the package first
29
+ [project.entry-points.inspect_ai]
30
+ inspect_swarm = "inspect_swarm._entrypoint"
31
+
32
+ [build-system]
33
+ requires = ["hatchling", "hatch-vcs"]
34
+ build-backend = "hatchling.build"
35
+
36
+ [dependency-groups]
37
+ dev = [
38
+ "ruff",
39
+ "pytest",
40
+ "pyright",
41
+ "pytest-xdist",
42
+ "pytest-timeout>=2.4.0",
43
+ # tests import anyio directly; inspect-ai depends on it too, but a
44
+ # transitive dependency is not a promise
45
+ "anyio>=4.0",
46
+ # async tests run on both anyio backends (tests/conftest.py)
47
+ "trio",
48
+ ]
49
+ dist = ["twine", "build"]
50
+
51
+ [tool.hatch.build]
52
+ only-packages = true
53
+ exclude = ["docs/", "tests/", "design/"]
54
+ artifacts = ["src/**/py.typed"]
55
+
56
+ [tool.hatch.version]
57
+ source = "vcs"
58
+
59
+ [tool.hatch.build.hooks.vcs]
60
+ version-file = "src/inspect_swarm/_version.py"
61
+
62
+ [tool.hatch.version.raw-options]
63
+ local_scheme = "no-local-version" # Important for PyPI compatibility
64
+
65
+ [tool.uv]
66
+ managed = true
67
+
68
+ [tool.ruff]
69
+ extend-exclude = ["docs", "design"]
70
+ src = [".", "src"]
71
+
72
+ [tool.ruff.lint]
73
+ select = [
74
+ "E", # pycodestyle errors
75
+ "W", # pycodestyle warnings
76
+ "F", # flake8
77
+ "D", # pydocstyle
78
+ "I", # isort
79
+ "B", # flake8-bugbear
80
+ "SIM101", # duplicate isinstance
81
+ ]
82
+ ignore = ["E203", "E501", "D10", "D212", "D415"]
83
+
84
+ [tool.ruff.lint.pydocstyle]
85
+ convention = "google"
86
+
87
+ [tool.pytest.ini_options]
88
+ pythonpath = ["src"]
89
+ testpaths = ["tests"]
90
+ addopts = "-n auto"
91
+ timeout = 120
92
+
93
+ [tool.pyright]
94
+ include = ["src", "tests"]
95
+ typeCheckingMode = "strict"
96
+ pythonPlatform = "All"
97
+ pythonVersion = "3.11"
98
+
99
+ # tests may exercise private helpers directly
100
+ [[tool.pyright.executionEnvironments]]
101
+ root = "tests"
102
+ reportPrivateUsage = false
103
+ extraPaths = ["."]
@@ -0,0 +1,37 @@
1
+ """Evals with multi-agent swarms.
2
+
3
+ Experimental and under development; the API may change.
4
+ """
5
+
6
+ from ._budget import Budget
7
+ from ._channel._channel import Channel, swarm_channel
8
+ from ._controller._control import SwarmControl
9
+ from ._controller._controller import (
10
+ Controller,
11
+ MemberInfo,
12
+ StopReason,
13
+ swarm_controller,
14
+ )
15
+ from ._member import Member, member
16
+ from ._swarm import swarm
17
+
18
+ try:
19
+ from ._version import __version__
20
+ except ImportError:
21
+ __version__ = "unknown"
22
+
23
+
24
+ __all__ = [
25
+ "Budget",
26
+ "Channel",
27
+ "Controller",
28
+ "Member",
29
+ "MemberInfo",
30
+ "StopReason",
31
+ "SwarmControl",
32
+ "__version__",
33
+ "member",
34
+ "swarm",
35
+ "swarm_channel",
36
+ "swarm_controller",
37
+ ]