Package dyntabs.ai.activity
package dyntabs.ai.activity
-
ClassDescriptionA reusable, lazily-evaluated description of "the recent activity to feed the assistant" — bind it to a
ActivityStoreonce, say which session/tab and how far back to look, then callActivityContext.render()at each AI call to get fresh prompt text reflecting the latest activity.Fluent builder forActivityContext.An immutable description of which slice of the activity timeline you want back from anActivityStore— a small set of filters (session, tab, age, category) plus a cap on how many of the most recent matches to return.Fluent builder forActivityQuery.The single application-facing entry point for writing to the ambient activity timeline — a thin facade over theActivityStorethat stamps each event with the current session and tab, so callers never have to figure out "where am I" themselves.Turns a slice of the activity timeline into the plain text that gets injected into an AI prompt — the bridge between structuredUserActivityEvents and the words the model actually reads.Holder for the stateless default renderer.Marks a business method (or a whole bean) whose invocation should be recorded onto the ambient activity timeline — the declarative way to feed the assistant's working memory without writing any capture code by hand.The interceptor that turns anActivityTrackedmethod call into a recordedUserActivityEvent— the runtime engine behind the declarative annotation.An immutable, lightweight pointer to one business entity the user just touched — not the entity itself, just enough to name it: atype(e.g.The defaultActivityStore: a process-local, bounded, per-session ring-buffer that keeps only the most recent slice of activity and forgets everything when the process stops.One immutable "the user just did something meaningful" entry in the Ambient Activity timeline — theUI → AIcounterpart toEasyAIEvent(which isAI → UI).Fluent builder forUserActivityEvent.The coarse category of a user act.