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

Uploaded Python 3

File details

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

File metadata

  • Download URL: minions_prompts-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ac13aad9c388dcb4c819d9611f3f2dc5de20319dbf0469154d598048e4eeb3d1
MD5 81dcb9395a3d106eee81f232d8e0b9de
BLAKE2b-256 a683cab59acc92f1bd516e0ffd2b7c0874cae3477c671f9248fb481954fad02f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for minions_prompts-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 176d5c71c58e2c15fdf6b63db7b67b8e067d75c638c865b3a8a2eaf626ebe25b
MD5 6d6b94a5600689f4e45286b5a3f458d7
BLAKE2b-256 ee1d6056222c62e24a2b6aee5625c2d3477b37fabd984b3187666a5e0f375584

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