Skip to content

Concepts

Fundamental concepts that apply across all PromptKit components.

These concepts are building blocks used throughout PromptKit. Understanding them helps you work effectively with Runtime, SDK, PromptArena, and PackC.

Learn about prompts, prompt engineering, and how PromptKit handles prompts across components.

Understand template systems, variable substitution, and template management with PackC.

Learn about LLM providers, how PromptKit abstracts them, and multi-provider strategies.

Understand content validation, guardrails, and safety measures across the platform.

Learn about conversation state, session management, and persistence strategies.

Understand function calling, tool integration, and the Model Context Protocol.

User Input
[Prompt Template] → Combine system prompt + user message
[Validation] → Check content safety
[State Management] → Load conversation history
[Provider] → Send to LLM (with Tools if needed)
[Validation] → Check response safety
[State Management] → Save conversation
Response

Understanding these concepts helps you:

  • Make better design decisions - Know when to use each feature
  • Debug effectively - Understand what’s happening under the hood
  • Build efficiently - Leverage existing patterns and best practices
  • Extend PromptKit - Create custom components that fit the architecture

Some concepts are universal across PromptKit:

  • Prompts - Used by all components
  • Providers - Abstracted consistently
  • Validation - Available everywhere

Some concepts are component-specific:

  • Templates - Mainly Runtime and PackC
  • State Management - Mainly Runtime and SDK
  • Tools/MCP - Mainly Runtime

If you’re new to PromptKit:

  1. Start with Prompts - The foundation
  2. Read Providers - How LLMs work
  3. Explore Templates - Organizing prompts
  4. Learn State Management - Multi-turn conversations

If you’re building production apps:

  1. Validation - Safety and guardrails
  2. State Management - Scalable conversations
  3. Tools & MCP - Extended capabilities
  4. Providers - Multi-provider strategies

Concepts explain what things are and why they exist.

Reference shows how to use APIs.

How-To Guides show how to accomplish tasks.

Tutorials provide step-by-step learning.