Imports an agent from a YAML string.
Parses the string using the yaml npm package and delegates to importAgent.
yaml
YAML string containing an AgentExportConfig.
A new Agent instance.
If the YAML is malformed or the config fails validation.
const agent = importAgentFromYAML(fs.readFileSync('agent.yaml', 'utf-8')); Copy
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.