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 TelemetryInstallationId,
58 Theme,
60}
61
62impl SettingName {
63 pub fn as_str(self) -> &'static str {
65 match self {
66 Self::ActiveProjectId => "ActiveProjectId",
67 Self::ActiveTab => "ActiveTab",
68 Self::AutoApproveOrchestrationResearch => "AutoApproveOrchestrationResearch",
69 Self::DefaultFastAgent => "DefaultFastAgent",
70 Self::DefaultFastModel => "DefaultFastModel",
71 Self::DefaultFastReasoningLevel => "DefaultFastReasoningLevel",
72 Self::DefaultFastSpeedMode => "DefaultFastSpeedMode",
73 Self::DefaultReviewAgent => "DefaultReviewAgent",
74 Self::DefaultReviewModel => "DefaultReviewModel",
75 Self::DefaultReviewReasoningLevel => "DefaultReviewReasoningLevel",
76 Self::DefaultReviewSpeedMode => "DefaultReviewSpeedMode",
77 Self::DefaultResponseStyle => "DefaultResponseStyle",
78 Self::DefaultSmartAgent => "DefaultSmartAgent",
79 Self::DefaultSmartModel => "DefaultSmartModel",
80 Self::DefaultSmartReasoningLevel => "DefaultSmartReasoningLevel",
81 Self::DefaultSmartSpeedMode => "DefaultSmartSpeedMode",
82 Self::IncludeCoauthoredByAgentty => "IncludeCoauthoredByAgentty",
83 Self::LaunchConfiguration => "LaunchConfiguration",
84 Self::LastUsedModelAsDefault => "LastUsedModelAsDefault",
85 Self::OrchestrationParallelism => "OrchestrationParallelism",
86 Self::TelemetryInstallationId => "TelemetryInstallationId",
87 Self::Theme => "Theme",
88 }
89 }
90}
91
92impl fmt::Display for SettingName {
93 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
94 formatter.write_str(self.as_str())
95 }
96}
97
98#[cfg(test)]
99#[path = "setting_test.rs"]
100mod tests;