spl_agentic_context
Shrink LLM context extractively before a run: BM25-lite filtering, cross-encoder reranking, and dedup, verified by construction, with a quote on input bytes. Read-only computation; the text is not stored. Use to fit a long context into a run's budget; use spl_agentic_plan to shape the run itself.
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": {
"text": "<text>"
},
"name": "spl_agentic_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | SKU to quote the context work against. | |
| text | Yes | Full text to compress. Required. | |
| query | No | Query the kept context must answer; guides the reranker. Omit to keep the most central passages. | |
| reranker | No | Reranker tier: MiniLM-L-6-v2 by default, bge-reranker-v2-gemma as the opt-in quality tier. | |
| maxTokens | No | Maximum tokens per chunk and in the compressed output. | |
| rerankTopK | No | How many top BM25 candidates the reranker rescores. Omit to rescore every candidate. | |
| used_bytes | No | Bytes already consumed, counted toward the quote. | |
| targetRatio | No | Target compression ratio between 0.01 and 1, e.g. 0.25 keeps roughly a quarter of the input. Omit for the default. |