Python

Using PDK in Python

Installation

bash
pip install echo-pdk

Basic Usage

python
from echo_pdk import create_echo

echo = create_echo()

# Load your prompt template
with open("prompts/support-agent.echo") as f:
    template = f.read()

# Render with context
prompt = echo.render(template, {
    "company": "Acme Inc",
    "customer": {"tier": "Premium", "name": "Alice"},
    "issue": {"type": "Refund"}
})

# Send to your LLM
response = openai.chat.completions.create(
    messages=[{"role": "system", "content": prompt}]
)