Token Budgeting
CET’s Token Budget Allocator ensures your pipeline never silently overflows the model’s context limit.Budget Formula
Default Allocation Per Node
You can override the max token allocation on each node’s config panel.
Model-Aware Auto Budget
The Chat History node supports Auto Budget mode — it automatically calculates its allocation as a percentage of the selected model’s context window. Switching models recalculates instantly.Over-Budget Warning
If total allocated tokens exceed the model’s context window, the Token Budget Bar turns red and CET blocks the pipeline run until the conflict is resolved.Token Budget Bar
The bar at the top of the canvas gives a live visual breakdown:- 🔵 Blue — System Prompt
- 🟢 Green — RAG chunks
- 🟡 Yellow — Chat History
- 🔴 Red — Over budget
