def test_create_artifact_with_nested_object(editor: ArtifactEditorToolSpec):
    """Test creating artifact with nested objects."""
    address_data = {
        "street": "123 Main St",
        "city": "Springfield",
        "zipcode": "12345",
        "country": None,
    }

    result = editor.create_artifact(name="Jane Doe", age=25, address=address_data)

    assert result["address"] == address_data
    assert isinstance(editor.current_artifact.address, Address)
Test creating artifact with nested objects.
llama-index-integrations/tools/llama-index-tools-artifact-editor/tests/test_artifact_editor.py