def test_create_feedback_complex_tags(user_feedback, mock_http):
    """Test creating user feedback with complex tags"""
    tags = {"sentiment": "positive", "relevance": 0.95, "tones": ["happy", "nice"]}

    user_feedback.create(annotation_task="task_123", entity_id="instance_456", tags=tags)

    mock_http.post.assert_called_once_with(
        "annotation-tasks/task_123/annotations",
        {
            "entity_instance_id": "instance_456",
            "tags": tags,
            "source": "sdk",
            "flow": "user_feedback",
            "actor": {
                "type": "service",
                "id": "test-app",
            },
        },
    )
Test creating user feedback with complex tags
packages/traceloop-sdk/tests/test_user_feedback.py