Class ContextWindowBudget
- Namespace
- Oscova.Agents.Llm
- Assembly
- Oscova.Agents.dll
Centralizes context-window budgeting decisions shared by reducers and chat preflight checks.
public static class ContextWindowBudgetInheritance
Inherited Members
Fields
- DefaultHistoryBudget
-
Historical default history budget used when the provider context window is unknown.
- MaximumOutputReserve
-
Maximum automatic output reserve used when a model does not declare an output token limit.
- MinimumHistoryBudget
-
Lowest derived history budget allowed for small-context models.
Methods
- DeriveHistoryBudget(int, int?)
-
Derives the history token budget from a model's context window.
- DeriveOutputReserve(int, int?)
-
Derives the output token reserve for a context-window fit check.