-
-
Notifications
You must be signed in to change notification settings - Fork 464
feat: add eval feedback helper for onResult callbacks and VoltOps fee… #952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 6b757ab The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughAdds VoltOps feedback support to the agent evaluation system. Introduces new types for feedback creation and helper objects, adds Changes
Sequence DiagramsequenceDiagram
participant Scorer as Eval Scorer
participant EvalHost as Evaluation Host
participant FeedbackHelper as Feedback Helper
participant VoltOpsClient as VoltOps Client
participant API as /api/public/feedback
Scorer->>EvalHost: produce evaluation result
EvalHost->>FeedbackHelper: createEvalFeedbackHelper(host, result)
EvalHost->>EvalHost: invokeEvalResultCallback(AgentEvalResultCallbackArgs)
Note over EvalHost: onResult callback invoked<br/>with result + feedback helper
EvalHost->>FeedbackHelper: user calls feedback.save(input)
FeedbackHelper->>FeedbackHelper: validate key & traceId
FeedbackHelper->>EvalHost: resolveEvalFeedbackClient(host)
EvalHost->>VoltOpsClient: getVoltOpsClient()
VoltOpsClient-->>FeedbackHelper: return validated client
FeedbackHelper->>VoltOpsClient: createFeedback(payload)
VoltOpsClient->>API: POST with traceId, key, score, etc.
API-->>VoltOpsClient: return VoltOpsFeedback
VoltOpsClient-->>FeedbackHelper: return persisted feedback
FeedbackHelper-->>EvalHost: Promise<VoltOpsFeedback | null>
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
🧰 Additional context used📓 Path-based instructions (1)**/*.ts📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-01-07T05:09:23.227ZApplied to files:
📚 Learning: 2026-01-07T05:09:23.227ZApplied to files:
🧬 Code graph analysis (3)packages/core/src/agent/eval.ts (3)
packages/core/src/agent/types.ts (3)
packages/core/src/agent/agent.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
🔇 Additional comments (23)
✏️ Tip: You can disable this entire section by setting Comment |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 9 files
Deploying voltagent with
|
| Latest commit: |
6b757ab
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bd5bf008.voltagent.pages.dev |
| Branch Preview URL: | https://feat-feedback-scorers.voltagent.pages.dev |
…dback
PR Checklist
Please check if your PR fulfills the following requirements:
Bugs / Features
What is the current behavior?
What is the new behavior?
fixes (issue)
Notes for reviewers
Summary by cubic
Adds a feedback helper to eval scorer onResult callbacks and VoltOps feedback API support, so scorers can save feedback to VoltOps with one call. Updates examples and exports the new types.
New Features
Migration
Written for commit 6b757ab. Summary will update on new commits.
Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.