def mock_extraction_llm():
    """Create a mock LLM with extraction responses."""
    return MyMockLLM(
        responses=[
            ChatResponse(
                message=ChatMessage(
                    content="<facts><fact>John lives in New York</fact><fact>John is a software engineer</fact></facts>"
                )
            ),
        ]
    )
Create a mock LLM with extraction responses.
llama-index-core/tests/memory/blocks/test_fact.py