def test_update_tool_calls_id_only():
    """Test delta with no function data, just ID."""
    tool_calls = []
    delta = ChatCompletionDeltaToolCall(
        index=0, id="call_empty", function={"arguments": ""}
    )

    result = update_tool_calls(tool_calls, [delta])
    assert len(result) == 1
    assert result[0]["id"] == "call_empty"
    assert "function" in result[0]
Test delta with no function data, just ID.
llama-index-integrations/llms/llama-index-llms-litellm/tests/test_utils.py