Skip to main content

Python SDK for the Minions structured object system

Project description

minions-sdk (Python)

Python SDK for the Minions structured object system — queryable, nestable, evolvable, and AI-readable.

Install

pip install minions-sdk

Quick Start

from minions import TypeRegistry, create_minion, RelationGraph

# 1. Get the built-in agent type
registry = TypeRegistry()
agent_type = registry.get_by_slug("agent")

# 2. Create an agent
minion, validation = create_minion(
    {"title": "Research Assistant", "fields": {"role": "researcher", "model": "gpt-4"}},
    agent_type,
)

# 3. Link minions together
graph = RelationGraph()
graph.add({"source_id": minion.id, "target_id": "skill-001", "type": "parent_of"})

Cross-SDK Interop

Minions created in Python can be serialized to JSON and read by the TypeScript SDK:

import json
data = minion.to_dict()          # camelCase keys
json_str = json.dumps(data)      # → valid JSON, TS-compatible

Documentation

License

MIT

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

minions_sdk-0.2.2.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

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

minions_sdk-0.2.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file minions_sdk-0.2.2.tar.gz.

File metadata

  • Download URL: minions_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for minions_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3c947a9e836604a2edf1d9d96df02731e925fd2f249b4889ee504bbbb97c167f
MD5 20279ced15121485a59ec555a8bd0520
BLAKE2b-256 823f1ca55a2ce7b3f8ee9f17d3177c2323d3a1f94ae6b1ea80619e4ddbd659f1

See more details on using hashes here.

File details

Details for the file minions_sdk-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: minions_sdk-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for minions_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1aaab71bd48f5e72eb4758b8e9ed41d5d11e1d35c9556c4b228a01943ff3ed1a
MD5 bdcaf7a9d7b400d78a4881969ed6645d
BLAKE2b-256 81ec548e3ad2a94b2807238fb48326af5478aee1576301a656db5b93870bf0e9

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