Skip to main content

🐝 Swarm Intelligence Framework (V1)

Swarm is a lightweight Python framework designed to orchestrate multiple independent AI agents (or simple scripts) to solve a single problem. It uses Swarm Intelligence principles to aggregate the results of these agents, reducing error and increasing confidence.

We belive in swarm principle so we thought to make it easier for people to use. Train lot of small model and combine the results rather than buildind a large model.

🚀 Key Features

  • Parallel Execution: Runs all agents simultaneously using a high-performance thread pool.
  • Agnostic Loader: Can load any Python script as an agent dynamically.
  • Auto-Strategy: Automatically detects if your agents are returning numbers (Regression) or text/classes (Classification) and applies the correct math.
  • Deep Analytics: Returns not just the answer, but the confidence, entropy (confusion), and outlier data. (this is expandable)

🛠️ Usage Guide

I.Setup: Your script should have a function which executes the model and returns the output, then all set. II.Execution: 1.if the name of the fuction in the script is predict or run, then all good just pass the script's path,

b1 = "model_1/pred.py"
but is anyother name, then you have to pass the function name also and wrap it up in parenthesis,
b2 = ( "model_h52/pred.py", "dano")

2.After that initialize the object like,

swarm = Swarm(b1, b2)

3.Once initialized just call the run function,

results = swarm.run(input, priorities=[0.6, 0.1, 0.1,0.1,0.1], mode="numeric", sensitivity=1.5)
-priorities, sensitivity and mode are all optional.
-mode is automatically detected if doesn't specified.
-if sensitivity value is lower then the outlier filtering will be strict, default value is 1.5.

Metadata

Release files for swarmpython 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmpython 1.0.2
File Size Uploaded
swarmpython-1.0.2.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmpython 1.0.2
File Interpreter ABI Platform
swarmpython-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / swarmpython-1.0.2.tar.gz

Download URL swarmpython-1.0.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b2d16b8f92d886d14acbf33ba70a2497c14ff2f37ea955a07ebf481c5e12fdcb
BLAKE2b-256 checksum
How to use checksums
8f31822c98ed9113910a417b2557ddca51387c04db9cb1bb3dedc2008e7a103b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / swarmpython-1.0.2-py3-none-any.whl

Download URL swarmpython-1.0.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e35bb5c671aebdb21355497044e0e54e0ffdd061f72d5be88faa4617984ecb63
BLAKE2b-256 checksum
How to use checksums
84473798e178771d592d22aa4fd4a591be7783651ff92b26d6b988196068fb5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page