Skip to main content

Version-controlled prompt engineering system built on the Minions SDK

Project description

minions-prompts (Python)

Python SDK for the minions-prompts version-controlled prompt engineering system.

Installation

pip install minions-prompts

Quick Start

from minions import create_minion
from minions_prompts import (
    prompt_template_type, prompt_version_type,
    PromptRenderer, PromptChain, PromptDiff,
    InMemoryStorage, register_prompt_types,
)

storage = InMemoryStorage()

# Create a prompt template
minion, _ = create_minion(
    {"title": "Summarizer", "fields": {"content": "Summarize {{topic}} for {{audience}}."}},
    prompt_template_type,
)
storage.save_minion(minion)

# Render it
renderer = PromptRenderer()
rendered = renderer.render(
    minion.fields["content"],
    {"topic": "AI agents", "audience": "developers"},
)
print(rendered)

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_prompts-0.1.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

minions_prompts-0.1.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file minions_prompts-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for minions_prompts-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6ca981f29525bcdc67556212063c6bfd1f958445c8d6ee3d606a4bf831f77085
MD5 994bf64f54625e197172eaa344f39203
BLAKE2b-256 1ad2eafe9403a16bef45e2a76b5c4679c19bbf787d533515fb3a37972d0a4821

See more details on using hashes here.

File details

Details for the file minions_prompts-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for minions_prompts-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c91e00751ca034b15d75b3676c30cc0c8abbac7538170a3a2ccecb9af525e88
MD5 ceb31141aad2a874602c28731a10132b
BLAKE2b-256 92a161a72ce54c5b5e0fa37eae8d9e202bb003dc662cfb8a78ed012e2b66ff03

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