Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Improve error messaging for missing message fields in memory module #4779

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request enhances the error messaging in the memory module by providing clearer feedback when required fields are missing from a message. Specifically, it checks for the presence of session_id, sender, and sender_name, and if any are absent, it informs the user about the missing fields along with their expected formats. This improvement aims to facilitate better user understanding and reduce confusion when submitting messages.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Nov 22, 2024
@github-actions github-actions bot added refactor Maintenance tasks and housekeeping and removed enhancement New feature or request labels Nov 22, 2024
Copy link

codspeed-hq bot commented Nov 22, 2024

CodSpeed Performance Report

Merging #4779 will improve performances by 38.31%

Comparing message-error-improve (fba1adb) with main (ef2199b)

Summary

⚡ 2 improvements
✅ 13 untouched benchmarks

Benchmarks breakdown

Benchmark main message-error-improve Change
test_successful_run_with_input_type_any 323.4 ms 233.9 ms +38.31%
test_successful_run_with_output_type_any 311.8 ms 263 ms +18.56%

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 22, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) November 23, 2024 12:26
@ogabrielluiz ogabrielluiz merged commit e61fb96 into main Nov 23, 2024
28 checks passed
@ogabrielluiz ogabrielluiz deleted the message-error-improve branch November 23, 2024 13:04
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…y module (langflow-ai#4779)

* Improve error messaging for missing message fields in memory module

* fix: Simplify return statement in NotDiamondComponent's chat result method

* Update .gitignore to exclude all .db files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer refactor Maintenance tasks and housekeeping size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants