Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant_settings: Show JSON schema for profile settings (#27855)
Marshall Bowers0ad46564894b
diff --git a/crates/assistant_settings/src/assistant_settings.rs b/crates/assistant_settings/src/assistant_settings.rsindex 0a5af98ab57..1f27b9f1fc5 100644--- a/crates/assistant_settings/src/assistant_settings.rs+++ b/crates/assistant_settings/src/assistant_settings.rs@@ -433,9 +433,11 @@ pub struct AssistantSettingsContentV2 {////// Default: falseenable_experimental_live_diffs: Option<bool>,- #[schemars(skip)]+ /// The default profile to use in the Agent.+ ///+ /// Default: writedefault_profile: Option<Arc<str>>,- #[schemars(skip)]+ /// The available agent profiles.pub profiles: Option<IndexMap<Arc<str>, AgentProfileContent>>,/// Whenever a tool action would normally wait for your confirmation/// that you allow it, always choose to allow it.@@ -485,6 +487,7 @@ impl Default for LanguageModelSelection {#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, JsonSchema)]pub struct AgentProfileContent {pub name: Arc<str>,+ #[serde(default)]pub tools: IndexMap<Arc<str>, bool>,/// Whether all context servers are enabled by default.pub enable_all_context_servers: Option<bool>,