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.4.tar.gz (32.1 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.4-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minions_sdk-0.2.4.tar.gz
  • Upload date:
  • Size: 32.1 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.4.tar.gz
Algorithm Hash digest
SHA256 242894ed7f1c652ada87e1a85d53aba9800c8d974518756abce763a78acac9ad
MD5 5bcf2a0fa7f2b08f2f38d80c81853aba
BLAKE2b-256 78309de3dbc4f0d165b4e3556d9be3d21e21effdffe99a4b9f93bd62894ccc5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minions_sdk-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 27.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 917b60d9a2f36f872152f81007303f6e918dd97a8712add7fef72de415efccd9
MD5 4a648025056f5a26cde8be9d2d7f451b
BLAKE2b-256 2a11562869bc34959d94c1658b2a7ed97ca02ab1aabe27c744cffd5ffe4263d1

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