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.0.tar.gz (19.7 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.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minions_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 19.7 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.0.tar.gz
Algorithm Hash digest
SHA256 268b700a02ae136eb2ffc0630ab53d18fa33d54e6f524c7b26880b15bd91d0a3
MD5 fa214ca5b3febb8602d5a1be730cc41d
BLAKE2b-256 9a1724a0c615ebcf8515ca091f147c2aa3601aca820129fef46b29a1a8a03d23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minions_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4cf1034508fac7d115b2ed9e3b1cfb989bebb5021d6594666fdbb083d4a1772
MD5 16673fbe4725287e78c1c025c932f9d7
BLAKE2b-256 2740e63a7537248962af46feb87f563dd95496c8d98136d437682a2e0049a55e

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