Remove skill model delegation support (#39068)

## What changed

- Stop parsing and exposing the `model` field from skill frontmatter.
- Remove the skill model delegation types and instruction generation.

GitOrigin-RevId: 01198c68c095da5062e8abec417cc3539099d9d5
This commit is contained in:
felixxia-oai authored and copyberry committed 2026-08-17 20:19:04 +00:00
1 parent 51a9edc083
commit d24507a59b
17 files changed
+1 -360

No files matched your search

-11
View File
@@ -1,4 +1,3 @@
use crate::SkillModel;
use serde::Deserialize;
use thiserror::Error;
@@ -11,8 +10,6 @@ struct SkillFrontmatter {
#[serde(default)]
description: Option<String>,
#[serde(default)]
model: Option<serde_yaml::Value>,
#[serde(default)]
metadata: SkillFrontmatterMetadata,
}
@@ -28,7 +25,6 @@ pub struct ParsedSkillFrontmatter {
pub name: String,
pub description: String,
pub short_description: Option<String>,
pub model: Option<SkillModel>,
}
/// Error produced while parsing or validating `SKILL.md` metadata.
@@ -92,13 +88,6 @@ pub fn parse_skill_frontmatter_metadata(
name,
description,
short_description,
model: parsed.model.and_then(|model| {
serde_yaml::from_value(model)
.inspect_err(|error| {
tracing::warn!(%error, "ignoring invalid skill model annotation");
})
.ok()
}),
})
}