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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_key": "<client_key>",
"prefix": "<prefix>",
"dynamic_tail": "<dynamic_tail>"
},
"name": "cache_align_prompt"
}
}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 |