Open hasinaxp opened 1 week ago
The changes introduced in this pull request enhance the message dispatching logic in the async_callback
methods and integrate new functionality for handling live agent actions in the processor.py
file. Specifically, the modifications ensure that messages are dispatched only when valid data is available, and a new method for listing live agent actions has been added. Tests have also been updated to validate these new functionalities and ensure proper integration within the existing framework.
Files | Change Summary |
---|---|
kairon/async_callback/processor.py |
Enhanced conditional logic for dispatching messages to ensure bot_response or data is not empty or None before calling dispatch_message . |
kairon/shared/data/processor.py |
Added list_live_agent_actions method to fetch live agent actions and updated save_integrated_actions and load_action_configurations methods to include live agent actions. |
tests/unit_test/data_processor/data_processor_test.py |
Introduced test_list_live_agent_actions to validate live agent actions retrieval, updated expected outputs for test_download_data_files_with_actions and test_load_action_configurations to include live_agent_action . |
LiveAgent
class related to handling responses, which connects to the enhancements in message dispatching logic.Processor
class in the same file as the main PR, indicating potential overlap in functionality related to live agent actions.edit_live_agent
function, relevant to the message dispatching logic improvements in the main PR.async_callback
methods directly related to enhancements in message dispatching.edit_callback_action
method, which may relate to conditional logic improvements in the main PR.dispatch_message
function, relevant to the focus on enhancing message dispatching logic in the main PR.In the meadow where rabbits play,
New features hop in, brightening the day.
With messages sent, not a moment to waste,
Live agents now dance, no time to haste.
Let's celebrate changes, both big and small,
For in this code, we find joy for all! 🐇✨
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?
optional bot_response in callback action (log failure for no bot_response fix) added live agent in upload/download
Summary by CodeRabbit
New Features
Bug Fixes
Tests