mirror of
https://github.com/katanemo/plano.git
synced 2026-05-27 14:17:15 +02:00
replace enable_token_counting bool with token_counting_strategy enum (estimate|auto)
This commit is contained in:
parent
e5f3039924
commit
20e8e0c51e
3 changed files with 37 additions and 13 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue