gpt_engineer.tools.custom_steps.clarified_gen

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

Generates code based on clarifications obtained from the user and saves it to a specified workspace.

Parameters:
  • ai (AI) – An instance of the AI model, responsible for processing and generating the code.

  • prompt (str) – The user’s clarification prompt.

  • 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