Closed sfahad1414 closed 1 month ago
The recent changes enhance action prediction in the message processing component by preventing consecutive predictions of the same action, thus avoiding potential infinite loops. Additionally, the integration test has been simplified by removing redundant assertions, streamlining the test without affecting its functionality. These adjustments contribute to improved reliability and maintainability of the codebase.
File Path | Change Summary |
---|---|
kairon/chat/agent/message_processor.py | Modified _run_prediction_loop to track last predicted action, preventing consecutive duplicates. Raises ActionLimitReached exception on repeat predictions. |
tests/integration_test/action_service_test.py | Removed redundant timezone check in test_schedule_action_execution_schedule_time_from_slot , simplifying the test. |
In the meadow where rabbits play,
Actions now leap in a smarter way.
No more repeats, they dance in delight,
With each prediction, they take flight!
A hop, a skip, the code's now bright,
Burrowing deeper into the night! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes