def test_process_streaming_content_incremental_with_current_object():
    """Test processing with existing current object."""
    current_person = Person(name="Jane", age=25)

    response = ChatResponse(
        message=ChatMessage(
            role=MessageRole.ASSISTANT,
            content='{"name": "John", "age": 30}',
        )
    )

    result = process_streaming_content_incremental(response, Person, current_person)
    assert isinstance(result, Person)
    assert result.name == "John"
    assert result.age == 30
Test processing with existing current object.
llama-index-core/tests/program/test_streaming_utils.py