Skip to content

[WIP] Add FeedbackPlugin for eval service integration#478

Draft
heyitsaamir wants to merge 1 commit intomainfrom
aamir/feedback-plugin
Draft

[WIP] Add FeedbackPlugin for eval service integration#478
heyitsaamir wants to merge 1 commit intomainfrom
aamir/feedback-plugin

Conversation

@heyitsaamir
Copy link
Collaborator

@heyitsaamir heyitsaamir commented Mar 23, 2026

Summary

  • New FeedbackPlugin — auto-captures AI traces (input/output) and Teams feedback (👍/👎), piping them to eval services via an IFeedbackProvider interface. Uses messageId as the correlation key between traces and feedback — no caching layer needed.
  • Fix AI example imports — replace relative dist path imports (../../../packages/common/dist/logging/logger) with proper package imports (@microsoft/teams.common).

How it works

  1. Plugin's onActivity stores the user's input per conversation
  2. Plugin's onActivitySent detects feedbackLoopEnabled responses and calls provider.logTrace() with the input/output pair
  3. When a user clicks 👍/👎 in Teams, the plugin intercepts the feedback invoke and calls provider.logFeedback() with the reaction

Developers just add the plugin and send messages with .addFeedback() — no manual feedback handler needed.

Test plan

  • cd packages/apps && npx jest plugins/feedback — 12 tests pass
  • cd packages/apps && npx tsc --noEmit — clean
  • cd examples/ai && npx tsc --noEmit — clean
  • Manual: run AI example, send feedback <query>, verify trace/feedback logging

@heyitsaamir heyitsaamir force-pushed the aamir/feedback-plugin branch from d51056d to 33278d8 Compare March 23, 2026 05:32
Introduces a FeedbackPlugin that auto-captures AI traces and user
feedback, piping them to eval services via an IFeedbackProvider
interface. Also fixes AI example imports to use package names instead
of relative dist paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@heyitsaamir heyitsaamir force-pushed the aamir/feedback-plugin branch from 33278d8 to b39752f Compare March 23, 2026 05:35
@heyitsaamir heyitsaamir changed the title Add FeedbackPlugin for eval service integration [WIP] Add FeedbackPlugin for eval service integration Mar 23, 2026
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.

1 participant