Skip to main content

Module agent_md_loader

Module agent_md_loader 

Source
Expand description

Compat shim — the agent.md frontmatter loader (parse / load_file / load_dir / compute_body_hash / LoadError) moved to the sibling mlua-swarm-compile crate’s agent_md module (issue 4c4e3eb8 Phase 2). New code should reach into mlua_swarm_compile::agent_md directly; this module re-exports the same surface so pre-migration call sites keep compiling.

Enums§

LoadError
Errors specific to the agent.md loader.

Functions§

compute_body_hash
Compute the content hash of an agent body (its system_prompt).
load_dir
Load every *.md under dir. Sorted ascending by file name.
load_file
Turn a single agent.md file into an AgentDef.
parse
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.