cache_align_prompt
Aligns prompt boundaries to provider KV cache page grids and evaluates break-even costs to decide whether freezing a warm prefix is cheaper than re-compression.
Instructions
PAC-KV prompt alignment and economic break-even gating.
Quantizes prompt boundary to provider KV cache page grid (Anthropic 1024, OpenAI 128, DeepSeek 64, vLLM 16, SGLang 32) and evaluates whether freezing warm prefix is cheaper than re-compression. Returns aligned text and PACReceipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | ||
| provider | No | generic | |
| client_key | Yes | ||
| dynamic_tail | Yes | ||
| target_budget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |