# Function executeSpec

- executeSpec(
  markdown: string,
  options?: CompileOptions,
  ): Promise<Result<SpecExecutionResult, SpecExecutionError>>

  Executes a markdown specification end-to-end.

  #### Parameters

  - markdown: string
  - `Optional` options: CompileOptions

  #### Returns Promise<Result<SpecExecutionResult, SpecExecutionError>>

  - Defined in packages/nexus-agents/src/orchestration/spec-executor.ts:36