replace enable_token_counting bool with token_counting_strategy enum (estimate|auto)

This commit is contained in:
Adil Hafeez 2026-03-25 05:35:27 +00:00
parent e5f3039924
commit 20e8e0c51e
3 changed files with 37 additions and 13 deletions

View file

@ -124,6 +124,15 @@ pub struct Configuration {
pub state_storage: Option<StateStorageConfig>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
pub enum TokenCountingStrategy {
#[default]
#[serde(rename = "estimate")]
Estimate,
#[serde(rename = "auto")]
Auto,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct Overrides {
pub prompt_target_intent_matching_threshold: Option<f64>,
@ -131,7 +140,7 @@ pub struct Overrides {
pub use_agent_orchestrator: Option<bool>,
pub llm_routing_model: Option<String>,
pub agent_orchestration_model: Option<String>,
pub enable_token_counting: Option<bool>,
pub token_counting_strategy: Option<TokenCountingStrategy>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]