keep the order of keys in config.yaml (#5468)

This commit is contained in:
Jack Amadeo
2025-10-30 17:58:44 -04:00
committed by GitHub
parent e586e13d9d
commit 65644ed81f
9 changed files with 141 additions and 166 deletions
+14
View File
@@ -215,6 +215,8 @@ pub enum ExtensionConfig {
Sse {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
uri: String,
#[serde(default)]
@@ -234,6 +236,8 @@ pub enum ExtensionConfig {
Stdio {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
cmd: String,
args: Vec<String>,
@@ -252,6 +256,8 @@ pub enum ExtensionConfig {
Builtin {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
display_name: Option<String>, // needed for the UI
timeout: Option<u64>,
@@ -265,6 +271,8 @@ pub enum ExtensionConfig {
Platform {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
#[serde(default)]
bundled: Option<bool>,
@@ -276,6 +284,8 @@ pub enum ExtensionConfig {
StreamableHttp {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
uri: String,
#[serde(default)]
@@ -297,6 +307,8 @@ pub enum ExtensionConfig {
Frontend {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
/// The tools provided by the frontend
tools: Vec<Tool>,
@@ -312,6 +324,8 @@ pub enum ExtensionConfig {
InlinePython {
/// The name used to identify this extension
name: String,
#[serde(default)]
#[schema(required)]
description: String,
/// The Python code to execute
code: String,