Skip to main content

extract_files

Function extract_files 

Source
pub fn extract_files(raw: &str, default_language: &str) -> Vec<GeneratedFile>
Expand description

Extract multiple files from a raw LLM response.

Recognizes these patterns before/inside code fences:

  • # filepath: app/config.py
  • ### app/models/user.py
  • **app/config.py**
  • <!-- file: src/index.ts -->
  • First line inside fence: # app/config.py (comment-style path)