The agent (or agency) instance to export.
Optional metadata: { Optional human-readable metadata to attach.
Optional name?: stringOptional description?: stringOptional author?: stringOptional tags?: string[]YAML-formatted string.
const yamlStr = exportAgentConfigYAML(myAgent);
fs.writeFileSync('agent.yaml', yamlStr);
Exports an agent's configuration as a YAML string.
Uses the
yamlnpm package for consistent, human-readable output.