Skip to main content

Task orbit assignment for agent swarms — gravity wells match agents to tasks

Project description

swarm-orbit

Task orbit assignment for agent swarms. Agents circle tasks like satellites — gravity wells attract the right agent to the right task.

How It Works

Each task is a gravity well with mass (priority) and required capabilities. Each agent has capabilities, current load, and learned affinities. Gravitational pull = priority × capability match × affinity × availability. Strongest pull wins.

Usage

from swarm_orbit import TaskOrbit, Agent, GravityWell

orbit = TaskOrbit()
orbit.add_agent(Agent(id="scout-1", capabilities=["search", "nlp"], load=0.2))
orbit.add_agent(Agent(id="builder-1", capabilities=["rust", "ml"], load=0.7))
orbit.add_well(GravityWell(task_id="t1", task_type="search", required_capabilities=["search"]))

assignments = orbit.assign()
# scout-1 orbits t1 (stronger pull — capability match + low load)

Zero deps. pip install swarm-orbit

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

swarm_orbit-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

swarm_orbit-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file swarm_orbit-0.1.0.tar.gz.

File metadata

  • Download URL: swarm_orbit-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for swarm_orbit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db76ed9cf696a2d3107672dedf50dabaab04c0668ca17798f47d9d55744c8b50
MD5 b34dcdf4a22096155b37f33c0019582f
BLAKE2b-256 4da7e9dee89f1e1a3801b8f9eebea34bb96edddd7c32ed85ff0a1cab9df6da64

See more details on using hashes here.

File details

Details for the file swarm_orbit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: swarm_orbit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for swarm_orbit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4031447c57581e067792c6ad67aa8638b0d89b59b55aa4490c85ac16bb3e59ca
MD5 e7b2a090c9570933a1067c56e3c89a91
BLAKE2b-256 6f59cbe95799296780773b0a2e9fd5b8638dc1a1be24fa4c4ed92a2eba1621e2

See more details on using hashes here.

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