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.2.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.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minions_prompts-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 15c0b16bea246419aaf10887dbc7d6f820e30b85f2094f163039239ec7e45caf
MD5 02c24a3c37ef96d76002e605ede3e509
BLAKE2b-256 43e97d4aae6c9a1306a811c332f8cfc882c2f2428819c7993d3cfa66cd250c4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for minions_prompts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 929329127167e3db6cdc908c1bdcc7ebd1dc42594ffe4255a15fb66e7a825fc0
MD5 41f9136ca11e9d69626355d393495f63
BLAKE2b-256 c61ab70b4d7e671aa802b89bb0cb97f0b476b9b689c7109e124af1c68562364e

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