agent_profile.rs

 1use std::sync::Arc;
 2
 3use gpui::SharedString;
 4use indexmap::IndexMap;
 5
 6/// A profile for the Zed Agent that controls its behavior.
 7#[derive(Debug, Clone)]
 8pub struct AgentProfile {
 9    /// The name of the profile.
10    pub name: SharedString,
11    pub tools: IndexMap<Arc<str>, bool>,
12    pub enable_all_context_servers: bool,
13    pub context_servers: IndexMap<Arc<str>, ContextServerPreset>,
14}
15
16#[derive(Debug, Clone, Default)]
17pub struct ContextServerPreset {
18    pub tools: IndexMap<Arc<str>, bool>,
19}