# Function parseTemplateContent

Workflows exports - Workflow engine with parallel execution Split from index.ts for file size compliance (Issue #285)

- parseTemplateContent(
  content: string,
  filePath: string,
  ): Result<WorkflowDefinition, ParseError>

  Parse a YAML template string into a WorkflowDefinition.

  #### Parameters

  - content: string

    YAML content to parse

  - filePath: string

    Path to the file (for error messages)

  #### Returns Result<WorkflowDefinition, ParseError>

  Result with WorkflowDefinition or ParseError

  - Defined in packages/nexus-agents/src/workflows/template-loader.ts:138