Skip to main content

parse

Function parse 

Source
pub fn parse(
    text: &str,
    source_label: &str,
    kind: AgentKind,
) -> Result<AgentDef, LoadError>
Expand description

Turn the text of an agent.md into an AgentDef. pub so unit tests can reach it. kind must be provided by the caller — same contract as load_file.