add_optimization_feedback
Add feedback (thumbs up/down, comment, or both) on an optimization result. Feedback is stored per-agent and propagated as context to future optimizations. Use feedbackType 'reaction' for responses to a specific optimization, 'constraint' for standing rules (e.g., 'never remove the disclaimer'), and 'direction' for strategic guidance (e.g., 'focus on reducing hallucination').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rating | No | Thumbs up (positive) or thumbs down (negative) | |
| agentId | Yes | The agent ID to attach feedback to (required) | |
| comment | No | Free-text feedback comment (optional if rating is provided) | |
| variantId | No | The variant ID (optional, for variant-specific feedback) | |
| customerId | No | (Converra superadmin only) Target customer ID to act on behalf of | |
| feedbackType | Yes | Type of feedback: 'reaction' (response to optimization result), 'constraint' (standing rule for all future optimizations), 'direction' (strategic guidance) | |
| optimizationId | No | The optimization process ID (optional, for optimization-scoped reactions) |