Skip to main content

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

multiagent_inspect-0.0.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multiagent_inspect-0.0.3-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file multiagent_inspect-0.0.3.tar.gz.

File metadata

  • Download URL: multiagent_inspect-0.0.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for multiagent_inspect-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b4a65850c6480c27289924d760190c72844f7ece5d6896caebc10b4cb0d20c90
MD5 d0de5cf89877b76adf8775c2234cd0fe
BLAKE2b-256 cd779fe65be1af2cf3ca982dd920f74d888244a7877e780d36b70dfc888868cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for multiagent_inspect-0.0.3.tar.gz:

Publisher: publish.yml on AndonLabs/multiagent-inspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file multiagent_inspect-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for multiagent_inspect-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2964f455bf9eb76f4f2439d31a212fcb25acd965d2c7d4f33e85efec50cd8c69
MD5 2fc0c20dd0adeeb05430d8a51352c829
BLAKE2b-256 aa6eaa796c704cce2b2e12a3c2f2a02f0a245065fd13c26e9d8082550eef16be

See more details on using hashes here.

Provenance

The following attestation bundles were made for multiagent_inspect-0.0.3-py2.py3-none-any.whl:

Publisher: publish.yml on AndonLabs/multiagent-inspect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page