bob_central.memory_daemon_node
Memory Daemon Node - Eva’s Volatile Short-Term Memory Hub.
Automatically fetches user history from CouchDB when a query is detected.
Classes
Broker between CouchDB and Eva's Context. |
Functions
|
Start the memory daemon node. |
Module Contents
- class bob_central.memory_daemon_node.MemoryDaemonNode
Bases:
rclpy.node.NodeBroker between CouchDB and Eva’s Context.
Maintains a volatile in-memory cache of recent user interactions.
- db_url
- cache_ttl
- history_limit
- user_cache
- user_regex
- pub_context
- query_callback(msg)
Extract user from query and fetch context if needed.
- fetch_user_history(username)
Query CouchDB for the latest messages from this user.
- clean_content(content, event_type)
Sanitize raw event data into human-readable strings.
- fetch_user_insights(username)
Perform a second query to get the oldest message and a random classic one.
- search_user_history(username, query=None, limit=10)
Search the entire CouchDB history for a specific user and optional keywords.
- broadcast_context(username, summary)
Publish the context for the orchestrator to consume with high priority.
- bob_central.memory_daemon_node.main(args=None)
Start the memory daemon node.