Here is the problem statement: I have an activity watcher system called kwatcher that…
- User
Here is the problem statement:
I have an activity watcher system called kwatcher that allows for the creation of small, modular watchers that provide information about a user's current activity.
There is a kwatcher-spotify watcher that reports spotify activity. (such as currently playing song) The plan is to have a kwatcher-media watcher that reports the currently playing media for a device based on the local media activity API (ex. MPRIS). This is rather redundant if I were to play something on Spotify. Ideally I would prefer the records from spotify since those would be more detailed (MPRIS and similar interfaces are intended to be generic and can't provide anywhere near as much metadata as the actual source). The idea I had was to handle these in a some sort of forum where, if the forum detects that two or more watchers are providing the same activity, it sends them a message to let them know that they should cease directly posting them to the heartbeat queue and instead publish them to a forum provided queue. The forum then takes in the data from all watchers and either aggregates them or just picks one of those to forward to the heartbeat queue. This might be accompanied with a quorum message sent back to every watcher to let them know if they should continue publishing events for those particular circumstances or they should idle until a potentially not conflicting event comes up (i.e the user starts playing something with WinAMP instead of Spotify.). I think there is two ways to handle this. Obviously forums need to be domain-specific (i.e media or maybe even just music.). The question is: Should the forum have knowledge of all media publishing watchers or should we rely on a robust protocol that can be used for content negotiation?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.