gpt_engineer.applications.cli.learning.extract_learning
- gpt_engineer.applications.cli.learning.extract_learning(prompt: Prompt, model: str, temperature: float, config: Tuple[str, ...], memory: DiskMemory, review: Review) Learning[source]
Constructs a Learning object containing the session’s metadata and user feedback.
- Parameters:
prompt (str) – The initial prompt provided to the GPT Engineer.
model (str) – The name of the model used during the session.
temperature (float) – The temperature setting used for the model’s responses.
config (Tuple[str, ...]) – A tuple representing the configuration settings for the session.
memory (DiskMemory) – An object representing the disk memory used during the session.
review (Review) – The user’s review of the generated code.
- Returns:
An instance of Learning containing all the session details and user feedback.
- Return type:
Learning