1use std::fmt;
4
5pub const DEFAULT_AUTO_APPROVE_ORCHESTRATION_RESEARCH: bool = true;
7pub const DEFAULT_ORCHESTRATION_PARALLELISM: u8 = 3;
9pub const MAX_ORCHESTRATION_PARALLELISM: u8 = 8;
11
12#[derive(Clone, Copy, Debug, Eq, PartialEq)]
14pub enum SettingName {
15 ActiveProjectId,
17 ActiveTab,
19 AutoApproveOrchestrationResearch,
21 DefaultFastAgent,
23 DefaultFastModel,
25 DefaultFastReasoningLevel,
27 DefaultFastSpeedMode,
29 DefaultReviewAgent,
31 DefaultReviewModel,
33 DefaultReviewReasoningLevel,
35 DefaultReviewSpeedMode,
37 DefaultResponseStyle,
39 DefaultSmartAgent,
41 DefaultSmartModel,
43 DefaultSmartReasoningLevel,
45 DefaultSmartSpeedMode,
47 IncludeCoauthoredByAgentty,
50 LaunchConfiguration,
52 LastUsedModelAsDefault,
54 OrchestrationParallelism,
56 Theme,
58}
59
60impl SettingName {
61 pub fn as_str(self) -> &'static str {
63 match self {
64 Self::ActiveProjectId => "ActiveProjectId",
65 Self::ActiveTab => "ActiveTab",
66 Self::AutoApproveOrchestrationResearch => "AutoApproveOrchestrationResearch",
67 Self::DefaultFastAgent => "DefaultFastAgent",
68 Self::DefaultFastModel => "DefaultFastModel",
69 Self::DefaultFastReasoningLevel => "DefaultFastReasoningLevel",
70 Self::DefaultFastSpeedMode => "DefaultFastSpeedMode",
71 Self::DefaultReviewAgent => "DefaultReviewAgent",
72 Self::DefaultReviewModel => "DefaultReviewModel",
73 Self::DefaultReviewReasoningLevel => "DefaultReviewReasoningLevel",
74 Self::DefaultReviewSpeedMode => "DefaultReviewSpeedMode",
75 Self::DefaultResponseStyle => "DefaultResponseStyle",
76 Self::DefaultSmartAgent => "DefaultSmartAgent",
77 Self::DefaultSmartModel => "DefaultSmartModel",
78 Self::DefaultSmartReasoningLevel => "DefaultSmartReasoningLevel",
79 Self::DefaultSmartSpeedMode => "DefaultSmartSpeedMode",
80 Self::IncludeCoauthoredByAgentty => "IncludeCoauthoredByAgentty",
81 Self::LaunchConfiguration => "LaunchConfiguration",
82 Self::LastUsedModelAsDefault => "LastUsedModelAsDefault",
83 Self::OrchestrationParallelism => "OrchestrationParallelism",
84 Self::Theme => "Theme",
85 }
86 }
87}
88
89impl fmt::Display for SettingName {
90 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
91 formatter.write_str(self.as_str())
92 }
93}
94
95#[cfg(test)]
96#[path = "setting_test.rs"]
97mod tests;