gpt_engineer.tools.custom_steps.lite_gen

gpt_engineer.tools.custom_steps.lite_gen(ai: AI, prompt: Prompt, memory: MutableMapping[str | Path, str], preprompts_holder: PrepromptsHolder) FilesDict[source]

Executes the AI model using the main prompt and saves the generated results to the specified workspace.

Parameters:
  • ai (AI) – An instance of the AI model.

  • prompt (str) – The main prompt to feed to the AI model.

  • memory (BaseMemory) – The memory instance where the generated code log is saved.

  • preprompts_holder (PrepromptsHolder) – A holder for preprompt messages.

Returns:

A dictionary of file names to their contents generated by the AI.

Return type:

FilesDict

Notes

The function assumes the ai.start method and the to_files utility to be correctly set up and functional. Ensure these prerequisites before invoking lite_gen.