Skip to content

feat(ai): update event data sent to LLM - #691

Open
neSpecc wants to merge 3 commits into
masterfrom
feat/ai-prompt-event-metadata
Open

neSpecc wants to merge 3 commits into
masterfrom
feat/ai-prompt-event-metadata

Conversation

@neSpecc

@neSpecc neSpecc commented Nov 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove payload.user before sending event data to the LLM to avoid leaking personal data to third-party services.
  • Include top-level event metadata in the Ask AI prompt: catcherType, firstOccurrenceTimestamp (originalTimestamp), currentRepetitionTimestamp (timestamp), totalCount, and usersAffected.
  • Update Event type in src/services/types.ts (derived from GroupedEventDBScheme) and update Ask AI unit tests.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

Comment thread src/services/types.ts Resolved
Comment thread test/services/askAi/service.test.ts Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants