> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autoblocks.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Learn about Autoblocks Prompt Management and how it helps you manage and version your prompts with type safety and autocomplete.

## Key Features

Autoblocks Prompt Management provides a robust system for managing, versioning, and executing your prompts with full type safety and autocomplete support. It enables you to maintain a single source of truth for your prompts while supporting multiple environments and deployment strategies.

### Type-Safe Prompt Management

* Autogenerated prompt classes with full type safety
* IDE autocomplete for templates and parameters
* Runtime validation of prompt inputs
* Support for both TypeScript and Python

### Version Control

* Semantic versioning for prompts (major.minor)
* Support for latest version tracking
* Undeployed revision support for local development
* Automatic background refresh of latest versions

### Integration Flexibility

* TypeScript and Python SDK support
* CLI for prompt generation
* CI/CD integration
* Local development support

## Getting Started

Choose your preferred language to begin:

<CodeGroup>
  <CodeGroupItem title="TypeScript">
    ```typescript
    import { AutoblocksPromptManager } from '@autoblocks/client/prompts';

    // Initialize the prompt manager
    const mgr = new AutoblocksPromptManager({
      appName: 'my-app',
      id: 'text-summarization',
      version: {
        major: '1',
        minor: 'latest',
      },
    });

    // Execute a prompt with type safety
    const response = await mgr.exec(async ({ prompt }) => {
      const params = {
        model: prompt.params.model,
        messages: [
          {
            role: 'system',
            content: prompt.renderTemplate({
              template: 'system',
              params: {
                language: 'Spanish',
              },
            }),
          },
        ],
      };
      return await openai.chat.completions.create(params);
    });
    ```
  </CodeGroupItem>

  <CodeGroupItem title="Python">
    ```python
    from my_project.autoblocks_prompts import my_app

    # Initialize the prompt manager
    mgr = my_app.text_summarization_prompt_manager(
      major_version="1",
      minor_version="latest",
    )

    # Execute a prompt with type safety
    with mgr.exec() as prompt:
        params = {
            "model": prompt.params.model,
            "messages": [
                {
                    "role": "system",
                    "content": prompt.render_template.system(
                        language="Spanish",
                    ),
                },
            ],
        }
        response = openai.chat.completions.create(**params)
    ```
  </CodeGroupItem>
</CodeGroup>

## Core Concepts

### Prompt Managers

The interface for working with prompts:

* Initialize with version specifications
* Support for latest version tracking
* Background refresh capabilities
* Type-safe prompt execution

### Prompt Execution

Safe and type-checked prompt usage:

* Context managers for execution
* Template rendering with validation
* Parameter access with type safety
* Error handling and logging

### Version Management

Flexible version control:

* Major version pinning
* Latest minor version support
* Undeployed revision access
* Background refresh options

## Next Steps

* [TypeScript Quick Start](/v2/guides/prompt-management/typescript/quick-start)
* [Python Quick Start](/v2/guides/prompt-management/python/quick-start)
