assistant_settings: Show JSON schema for profile settings (#27855)
This PR makes it so we include the `default_profile` and `profiles` settings in the JSON schema. This provides completions when editing the `settings.json`. Release Notes: - N/A
This commit is contained in:
parent
992831ceb6
commit
0ad4656489
1 changed files with 5 additions and 2 deletions
|
@ -433,9 +433,11 @@ pub struct AssistantSettingsContentV2 {
|
|||
///
|
||||
/// Default: false
|
||||
enable_experimental_live_diffs: Option<bool>,
|
||||
#[schemars(skip)]
|
||||
/// The default profile to use in the Agent.
|
||||
///
|
||||
/// Default: write
|
||||
default_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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue