Multi-agent system for AI evaluations in AISI's inspect-ai framework
Project description
multiagent-inspect
Multi-agent system for AI evaluations in AISI's inspect-ai framework
We provide a set of tools which allow agents to delegate tasks to sub-agents. Specifically, the init_sub_agents function return three tools:
sub_agent_specs: Return info about the sub-agent(s)run_sub_agent: Give string input to one sub-agent and execute it.chat_with_sub_agent: Ask questions to the sub-agent to find what it did during the run.
Installation
pip install multiagent-inspect
pip install openai
Instead of openai, you can use any other model provider. See https://inspect.ai-safety-institute.org.uk/models.html.
Usage
from inspect_ai.solver import basic_agent
from multiagent_inspect import SubAgentConfig, init_sub_agents
from my_inspect_tools import tool1, tool2, tool3, tool4
sub_agent_1 = SubAgentConfig(tools=[tool1, tool2], max_steps=5)
sub_agent_2 = SubAgentConfig(tools=[tool3], model="openai/gpt-4o")
main_agent=basic_agent(
init=init_sub_agents([sub_agent_1, sub_agent_2]),
tools=[tool4],
)
Contributions are welcome!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multiagent_inspect-0.0.6.tar.gz.
File metadata
- Download URL: multiagent_inspect-0.0.6.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cda08fab61e7b4e2be53291fc22923d2b1bdd8c0323947e1ab410d82a7856b73
|
|
| MD5 |
35dcc7daf5233fbc22e3b19df6cb537b
|
|
| BLAKE2b-256 |
bf29e3d1ab705503740354066328901f6e211962b3831a46cb2d5197904ca712
|
Provenance
The following attestation bundles were made for multiagent_inspect-0.0.6.tar.gz:
Publisher:
publish.yml on AndonLabs/multiagent-inspect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multiagent_inspect-0.0.6.tar.gz -
Subject digest:
cda08fab61e7b4e2be53291fc22923d2b1bdd8c0323947e1ab410d82a7856b73 - Sigstore transparency entry: 168529027
- Sigstore integration time:
-
Permalink:
AndonLabs/multiagent-inspect@d8c841b845b46c3316acbefba479570e76f3edef -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/AndonLabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d8c841b845b46c3316acbefba479570e76f3edef -
Trigger Event:
push
-
Statement type:
File details
Details for the file multiagent_inspect-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: multiagent_inspect-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aadbb8a5991a9d7ab975c1760daaab252510e8cfd2b70a6fbed34935691f620
|
|
| MD5 |
f17b0312e918eec3db029911325de133
|
|
| BLAKE2b-256 |
f78ba94aa168967ef3beefbd0f7f2eb6dfc02ac053851479d91d84d7d84795e7
|
Provenance
The following attestation bundles were made for multiagent_inspect-0.0.6-py2.py3-none-any.whl:
Publisher:
publish.yml on AndonLabs/multiagent-inspect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multiagent_inspect-0.0.6-py2.py3-none-any.whl -
Subject digest:
5aadbb8a5991a9d7ab975c1760daaab252510e8cfd2b70a6fbed34935691f620 - Sigstore transparency entry: 168529029
- Sigstore integration time:
-
Permalink:
AndonLabs/multiagent-inspect@d8c841b845b46c3316acbefba479570e76f3edef -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/AndonLabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d8c841b845b46c3316acbefba479570e76f3edef -
Trigger Event:
push
-
Statement type: