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

Handle Klat persona update events #10

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
Draft

Conversation

NeonDaniel
Copy link
Member

@NeonDaniel NeonDaniel commented Dec 3, 2024

Description

Adds docstrings and type annotations to persona-related modules
Adds handler for <name>_personas_input queue to manage updates from Klat
Modifies default behavior to not periodically sync with the database (all relevant changes will be handled individually)

Issues

Closes #8
Implements NeonGeckoCom/pyklatchat#107

Other Notes

This does not currently account for multiple concurrent updates. One possible solution is to include a timestamp with emitted changes and discard any messages containing changes that are older than what was most recently applied.

neon_llm_core/rmq.py Outdated Show resolved Hide resolved
NeonDaniel and others added 4 commits January 26, 2025 14:05
Adds docstrings and type annotations to persona-related modules
Adds handler for `<name>_personas_input` queue to manage updates from Klat
Modifies default behavior to not periodically sync with the database (all relevant changes will be handled individually)
@NeonKirill NeonKirill force-pushed the FEAT_PersonaUpdateEvents branch from a0be34c to d412032 Compare January 26, 2025 13:59
@NeonKirill NeonKirill marked this pull request as ready for review January 26, 2025 14:06
@NeonKirill NeonKirill marked this pull request as draft January 26, 2025 14:08
Streamline persona update and removal logic by introducing better handling for default personas, improved logging messages, and replacing unnecessary delays with helper methods. Removed redundant code to enhance readability and maintain consistency across the persona management workflow.
…ersState functionalities.

- Added a mock PersonaFactory for easier persona generation in tests.
- Improved persona validation and handling, ensuring proper setup and teardown of default and incoming personas.
Copy link
Member Author

@NeonDaniel NeonDaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some initial feedback; I can manually build some containers to test this after NeonGeckoCom/pyklatchat#107 is merged/deployed to alpha

@@ -0,0 +1,20 @@
import uuid
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New file needs license notice (also __init__.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Event-driven persona updates
3 participants