### What problem does this PR solve? Feat: Add the history field to the agent's system variables. #7322 ### Type of change - [x] New Feature (non-breaking change which adds functionality)