context-window-planner
Use when a user needs to know whether a document plus prompt plus output fits within a model's context window, or wants a strategy recommendation (truncate/summarize/rag/chunk).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_tokens | Yes | Primary document/content tokens | |
| strategy_hint | No | Preferred strategy (optional) | |
| overhead_tokens | No | System prompt + few-shot + history (default 2000) | |
| expected_out_tokens | No | Reserved output budget (default 1000) | |
| model_context_window | Yes | Target model context size |