Skip to main content

detect_format

Function detect_format 

Source
pub fn detect_format(content: &str) -> Result<AgentFileFormat>
Expand description

Detect the format of an agent file from its raw content. Detection order: JSON → Copilot .agent.md frontmatter → YAML field sniffing