gpt_engineer.core.default.steps.gen_entrypoint

gpt_engineer.core.default.steps.gen_entrypoint(ai: AI, prompt: Prompt, files_dict: FilesDict, memory: MutableMapping[str | Path, str], preprompts_holder: PrepromptsHolder) FilesDict[source]

Generates an entrypoint for the codebase and returns the entrypoint files.

Parameters:
  • ai (AI) – The AI model used for generating the entrypoint.

  • files_dict (FilesDict) – The dictionary of file names to their respective source code content.

  • memory (BaseMemory) – The memory interface where the code and related data are stored.

  • preprompts_holder (PrepromptsHolder) – The holder for preprompt messages that guide the AI model.

Returns:

A dictionary containing the entrypoint file.

Return type:

FilesDict