Skip to content

feat(weave): add wandb.agent_user_feedback feedback type#7184

Open
nikumar1206 wants to merge 7 commits into
masterfrom
nikhil/agent-reaction-feedback-type
Open

feat(weave): add wandb.agent_user_feedback feedback type#7184
nikumar1206 wants to merge 7 commits into
masterfrom
nikhil/agent-reaction-feedback-type

Conversation

@nikumar1206

@nikumar1206 nikumar1206 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What

Backend support for human reactions on agents.

  • New wandb.agent_user_feedback feedback type for human-applied tags (vs scorer-applied wandb.agent_monitor). The value is stored as a tag in scorer_tags.
  • The chat view now exposes each turn/message's agent name, version, and status, so the UI can attach them to a reaction (used for dashboard filtering).

Frontend: wandb/core#45619.

Testing

  • Manual
  • Unit
  • QA

@nikumar1206 nikumar1206 requested a review from a team as a code owner June 11, 2026 17:01
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/trace_server/feedback.py 50.00% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@wandbot-3000

wandbot-3000 Bot commented Jun 11, 2026

Copy link
Copy Markdown

@nikumar1206 nikumar1206 force-pushed the nikhil/agent-reaction-feedback-type branch from d16f1e6 to 3f564b6 Compare June 11, 2026 17:42
@nikumar1206 nikumar1206 changed the title feat(weave): add wandb.agent_reaction feedback type feat(weave): add wandb.agent_user_score feedback type Jun 11, 2026
@nikumar1206 nikumar1206 force-pushed the nikhil/agent-reaction-feedback-type branch from 3f564b6 to 432b9f6 Compare June 11, 2026 18:01
@nikumar1206 nikumar1206 changed the title feat(weave): add wandb.agent_user_score feedback type feat(weave): add wandb.agent_user_feedback feedback type Jun 11, 2026
Adds a human-applied feedback type for agents (vs scorer-applied wandb.agent_monitor). The value is stored as a tag in the existing scorer_tags column (e.g. an emoji glyph like ["👍"], or any manual label), with no scorer refs. Validation allows scorer_tags on this type and requires it non-empty; the type is multi-value so multiple tags per ref aggregate correctly.
@nikumar1206 nikumar1206 force-pushed the nikhil/agent-reaction-feedback-type branch from 432b9f6 to 8fcd562 Compare June 11, 2026 18:05
nikumar1206 and others added 6 commits June 11, 2026 14:40
AgentChatMessage now carries agent_version + status_code (from the message's span), and AgentTraceChatRes carries the root span's agent_name/agent_version/status_code. This lets the agents UI attach span_agent_name/version/status_code to human reaction feedback (wandb.agent_user_feedback) so reactions are filterable/groupable in the agent feedback aggregate endpoint.
Pins that the chat view surfaces agent_version + status_code (per-message and trace root) for reactions, and that an agent_user_feedback row round-trips the span_agent_name/version/status_code the UI attaches.
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