Skip to content

0.1.0

Choose a tag to compare

@metantonio metantonio released this 22 Dec 13:24

Version 0.1.0

Check latest Version

Have implemented limits on the error message size and the history of failed attempts to ensure that the LLM context is not exceeded when the AI tries to fix code multiple times.

Changes Made

    1. Truncating stderr in ExecutorService
      I modified executor.py to truncate the standard error output (stderr) to the last 2000 characters before sending it to the AI for analysis or fixing. Usually, the most relevant traceback info is at the end of the error log.
    1. Limiting Error History Storage
      In executor.py, the error_history list now only stores the last 500 characters of each error message to keep the object size manageable.
    1. Pruning History in CodeAdaptationAgent
      In code_adaptor.py, the fix_code method now only includes the last 3 failed attempts in its prompt. This prevents the "history section" of the prompt from growing indefinitely.

QLX AI powered data science by Qualex

Engineer: Antonio Martínez