Saltar a contenido

apogee-ai-prompt

Content-addressed registry for prompts with versioning, A/B comparison and golden-set replay.

This page is being expanded

The tables below are generated from the package source, so they are accurate. Narrative guides and worked examples are being written module by module.

Public API

Everything below is exported from the package root, so from apogee_ai_prompt import X works for each name.

Layer Symbols
Application · DTOs CreatePromptDTO, DiffPromptsDTO, LintPromptDTO, ListPromptsFilterDTO, PromptOutputDTO, PromptVariableDTO, PromptVersionDTO, PublishPromptDTO, RenderPromptDTO, RenderedPromptDTO, RollbackPromptDTO, UpdatePromptDTO
Application · Use cases CreatePromptUseCase, DeletePromptUseCase, DiffPromptsUseCase, GetPromptUseCase, LintPromptUseCase, ListPromptsUseCase, PublishPromptUseCase, RenderPromptUseCase, ResolveVariantUseCase, RollbackPromptUseCase, UpdatePromptUseCase
Domain CanaryConfig, CostEstimate, LintIssue, LintReport, LintSeverity, Prompt, PromptDiff, PromptStatus, PromptVariable, PromptVersion, RenderedPrompt, TokenCount, VariantSelection
Domain · Enums PromptKind, TemplateEngineKind, VariableType
Domain · Exceptions LintBlockedException, PromptAlreadyExistsException, PromptError, PromptNotFoundException, PromptValidationException, PromptVersionNotFoundException, RepositoryReadOnlyException, TemplateRenderException
Domain · Protocols (ports) ICostEstimator, IPromptLinter, IPromptRepository, ITemplateEngine, ITokenCounter, IVariantResolver
Infrastructure DefaultPromptLinter, FilePromptRepository, GitPromptRepository, HeuristicTokenCounter, InMemoryPromptRepository, JinjaTemplateEngine, PRICING_TABLE, PlainTemplateEngine, SqlPromptRepository, TableCostEstimator, TiktokenTokenCounter, WeightedHashResolver, default_engines, lookup_price

Install

Bash
pip install apogee-ai-prompt

The base install has no required third-party dependency. Each extra unlocks one adapter.

Extra Pulls in
mustache chevron>=0.14
tiktoken tiktoken>=0.7
sql sqlalchemy>=2.0, asyncpg>=0.29, aiosqlite>=0.20
git dulwich>=0.21
all chevron>=0.14, tiktoken>=0.7, sqlalchemy>=2.0, asyncpg>=0.29, aiosqlite>=0.20, dulwich>=0.21

CLI

Installed as a console script, and registered as an apogee plugin so the same subcommands work under the global binary.

Bash
apogee-prompt --help