def test_create_feedback_parameter_validation(user_feedback):
    """Test parameter validation for feedback creation"""
    with pytest.raises(ValueError, match="annotation_task is required"):
        user_feedback.create(annotation_task="", entity_id="instance_456", tags={"sentiment": "positive"})

    with pytest.raises(ValueError, match="entity_id is required"):
        user_feedback.create(annotation_task="task_123", entity_id="", tags={"sentiment": "positive"})

    with pytest.raises(ValueError, match="tags cannot be empty"):
        user_feedback.create(annotation_task="task_123", entity_id="instance_456", tags={})
Test parameter validation for feedback creation
packages/traceloop-sdk/tests/test_user_feedback.py