YAML string containing an AgentExportConfig.
Optional options: ImportAgentOptionsValues for what the export redacted or replaced.
A new Agent instance.
If the YAML is malformed, the config fails validation, or it holds a value import cannot restore.
const agent = importAgentFromYAML(fs.readFileSync('agent.yaml', 'utf-8'));
Imports an agent from a YAML string.
Parses the string using the
yamlnpm package and delegates to importAgent.