Skip to content

PromptPack Python

Parse and use PromptPacks in your Python applications

PromptPack Parser

Parse PromptPack JSON files with full type safety and validation.

LangChain Integration

Seamlessly convert PromptPacks to LangChain prompt templates.

Tool Support

Convert PromptPack tools to LangChain-compatible tool definitions.

Output Validation

Validate LLM outputs with banned words, length limits, and regex patterns.

Fragment Support

Use reusable prompt fragments across your templates.

Multimodal Content

Support for multimodal content including images and structured data.

This monorepo contains two packages:

  • promptpack - Base library for parsing PromptPack JSON files
  • promptpack-langchain - LangChain integration for PromptPacks