def test_extract_citations_from_response():
    """Test that citations are extracted from LLM responses."""
    response_text = "This is a response with a citation [abc1234]."

    # Use the utility function directly
    citations = extract_citations(response_text)

    assert "abc1234" in citations, "Citation should be extracted from response"
Test that citations are extracted from LLM responses.
py/tests/unit/agent/test_agent_citations_old.py