qualia_core_db/inference/conditioning/budget.rs
1//! Budget scalars.
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
4pub struct ConditioningBudget {
5 pub input_tokens: u32,
6 pub output_tokens: u32,
7 pub tool_rounds: u16,
8 pub max_bytes: u32,
9 /// Reserved deliberation (`<think>`) tokens for thinking-model decode.
10 /// `None` means the model is not deliberation-capable or no reservation
11 /// was requested; the value is added to `output_tokens` when checking the
12 /// total context envelope.
13 #[serde(default)]
14 pub thinking_token_budget: Option<u32>,
15}